@agilebot/eslint-config 0.5.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -14
- package/package.json +4 -4
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-config v0.
|
2
|
+
* @license @agilebot/eslint-config v0.6.0
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -279,7 +279,8 @@ function ts() {
|
|
279
279
|
{
|
280
280
|
checksVoidReturn: false
|
281
281
|
}
|
282
|
-
]
|
282
|
+
],
|
283
|
+
"@typescript-eslint/no-deprecated": "error"
|
283
284
|
}
|
284
285
|
};
|
285
286
|
}
|
@@ -661,17 +662,6 @@ function comments() {
|
|
661
662
|
};
|
662
663
|
}
|
663
664
|
|
664
|
-
// src/configs/deprecation.ts
|
665
|
-
function deprecation() {
|
666
|
-
return {
|
667
|
-
plugins: ["@agilebot"],
|
668
|
-
rules: {
|
669
|
-
// 禁止使用带有deprecation标记的方法或属性
|
670
|
-
"@agilebot/deprecation": "error"
|
671
|
-
}
|
672
|
-
};
|
673
|
-
}
|
674
|
-
|
675
665
|
// src/configs/cspell.ts
|
676
666
|
function cspell(opts) {
|
677
667
|
return {
|
@@ -845,7 +835,6 @@ function factory(root, options) {
|
|
845
835
|
ts: true
|
846
836
|
}) : {},
|
847
837
|
(options == null ? void 0 : options.lodash) ? lodash() : {},
|
848
|
-
deprecation(),
|
849
838
|
(options == null ? void 0 : options.cspell) ? cspell(options.cspell) : {},
|
850
839
|
...commonConfigs,
|
851
840
|
agilebot({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.0",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"eslint-plugin-prettier": "^5.2.1",
|
39
39
|
"eslint-plugin-promise": "^7.1.0",
|
40
40
|
"eslint-plugin-react": "^7.37.2",
|
41
|
-
"eslint-plugin-react-hooks": "^
|
41
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
42
42
|
"eslint-plugin-unicorn": "^55.0.0",
|
43
43
|
"eslint-plugin-unused-imports": "^4.1.4",
|
44
44
|
"eslint-plugin-vue": "^9.28.0",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"picocolors": "^1.1.0",
|
48
48
|
"vue-eslint-parser": "^9.4.3",
|
49
49
|
"yargs": "^17.7.2",
|
50
|
-
"@agilebot/eslint-utils": "0.
|
50
|
+
"@agilebot/eslint-utils": "0.6.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
53
|
"@types/yargs": "^17.0.33",
|
@@ -55,7 +55,7 @@
|
|
55
55
|
},
|
56
56
|
"peerDependencies": {
|
57
57
|
"eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
58
|
-
"@agilebot/eslint-plugin": "0.
|
58
|
+
"@agilebot/eslint-plugin": "0.6.0"
|
59
59
|
},
|
60
60
|
"files": [
|
61
61
|
"bin",
|