Skip to content

Commit dee62c2

Browse files
authored
Update eslint rule
1 parent c579970 commit dee62c2

File tree

3 files changed

+177
-726
lines changed

3 files changed

+177
-726
lines changed

.eslintrc.json

+12-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
{
2-
"env": {
3-
"es2021": true,
4-
"mocha": true,
5-
"node": true
6-
},
7-
"extends": ["standard-with-typescript", "prettier"],
8-
"parserOptions": {
9-
"ecmaVersion": 2021,
10-
"project": "tsconfig.json",
11-
"sourceType": "module"
12-
},
13-
"plugins": ["@typescript-eslint"],
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"prettier"
6+
],
147
"rules": {
15-
"@typescript-eslint/explicit-function-return-type": "off",
16-
"@typescript-eslint/naming-convention": "off",
17-
"@typescript-eslint/no-namespace": "off",
18-
"@typescript-eslint/restrict-plus-operands": "off",
19-
"@typescript-eslint/restrict-template-expressions": "off",
20-
"@typescript-eslint/strict-boolean-expressions": "off"
8+
"@typescript-eslint/no-explicit-any": "off"
9+
// "@typescript-eslint/explicit-function-return-type": "off",
10+
// "@typescript-eslint/naming-convention": "off",
11+
// "@typescript-eslint/no-namespace": "off",
12+
// "@typescript-eslint/restrict-plus-operands": "off",
13+
// "@typescript-eslint/restrict-template-expressions": "off",
14+
// "@typescript-eslint/strict-boolean-expressions": "off"
2115
}
2216
}

package.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,18 @@
2525
"sync": "curl -X PUT 'https://npm.taobao.org/sync/coa-wx-isv?sync_upstream=true'"
2626
},
2727
"dependencies": {
28-
"coa-echo": "^1.1.1",
28+
"coa-echo": "^1.2.0",
2929
"coa-error": "^1.5.2",
3030
"coa-helper": "^1.2.1",
3131
"coa-xml": "^1.1.0"
3232
},
3333
"devDependencies": {
34-
"@types/node": "^15.12.5",
35-
"@typescript-eslint/eslint-plugin": "^4.28.0",
36-
"eslint": "^7.29.0",
34+
"@types/node": "^16.9.6",
35+
"@typescript-eslint/eslint-plugin": "^4.31.2",
36+
"@typescript-eslint/parser": "^4.31.2",
37+
"eslint": "^7.32.0",
3738
"eslint-config-prettier": "^8.3.0",
38-
"eslint-config-standard-with-typescript": "^20.0.0",
39-
"eslint-plugin-import": "^2.23.4",
40-
"eslint-plugin-node": "^11.1.0",
41-
"eslint-plugin-promise": "^5.1.0",
42-
"prettier": "^2.3.2",
43-
"typescript": "^4.3.4"
39+
"prettier": "^2.4.1",
40+
"typescript": "^4.4.3"
4441
}
4542
}

0 commit comments

Comments
 (0)