Skip to content

Commit fa9b9db

Browse files
committed
fix: types deps
1 parent f17348c commit fa9b9db

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.eslintrc.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ module.exports = {
22
root: true,
33
parser: '@typescript-eslint/parser',
44
parserOptions: {
5-
ecmaVersion: 6,
6-
sourceType: 'module'
5+
ecmaVersion: 6,
6+
sourceType: 'module'
77
},
88
env: {
9-
es6: true,
10-
browser: true,
11-
jest: true,
12-
commonjs: true,
13-
node: true
9+
es6: true,
10+
browser: true,
11+
jest: true,
12+
commonjs: true,
13+
node: true
1414
},
1515
plugins: [
1616
'@typescript-eslint',
1717
'prettier'
1818
],
1919
extends: [
20-
'eslint:recommended',
21-
'plugin:@typescript-eslint/eslint-recommended',
22-
'plugin:@typescript-eslint/recommended',
23-
'prettier/@typescript-eslint'
20+
'eslint:recommended',
21+
'plugin:@typescript-eslint/eslint-recommended',
22+
'plugin:@typescript-eslint/recommended',
23+
'prettier/@typescript-eslint'
2424
],
2525
globals: {
26-
wx: true,
27-
App: true,
28-
Page: true,
29-
Component: true
26+
wx: true,
27+
App: true,
28+
Page: true,
29+
Component: true
3030
},
3131
rules: {
32-
'prettier/prettier': 'error',
33-
'@typescript-eslint/ban-ts-ignore': 'off',
34-
'@typescript-eslint/no-empty-function': 'off',
35-
'@typescript-eslint/explicit-function-return-type': 'off',
36-
'@typescript-eslint/no-explicit-any': 'off',
37-
'@typescript-eslint/no-non-null-assertion':'off'
32+
'prettier/prettier': 'error',
33+
'@typescript-eslint/ban-ts-ignore': 'off',
34+
'@typescript-eslint/no-empty-function': 'off',
35+
'@typescript-eslint/explicit-function-return-type': 'off',
36+
'@typescript-eslint/no-explicit-any': 'off',
37+
'@typescript-eslint/no-non-null-assertion': 'off'
3838
},
3939
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"@swc/core": "^1.2.80",
3535
"@types/jest": "^27.0.1",
3636
"@types/rfdc": "^1.1.0",
37-
"@types/wechat-miniprogram": "^3.0.0",
3837
"@typescript-eslint/eslint-plugin": "^2.23.0",
3938
"@typescript-eslint/parser": "^2.23.0",
4039
"codecov": "^3.7.0",
@@ -64,7 +63,8 @@
6463
},
6564
"dependencies": {
6665
"fast-deep-equal": "^2.0.1",
67-
"rfdc": "^1.1.4"
66+
"rfdc": "^1.1.4",
67+
"@types/wechat-miniprogram": "^3.0.0"
6868
},
6969
"husky": {
7070
"hooks": {

0 commit comments

Comments
 (0)