@agilebot/eslint-config 0.5.6 → 0.6.1
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 +5 -15
- package/package.json +13 -13
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.1
|
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
|
}
|
@@ -524,6 +525,8 @@ function react(opts) {
|
|
524
525
|
"error",
|
525
526
|
{ allowExpressions: true }
|
526
527
|
],
|
528
|
+
"@eslint-react/jsx-uses-vars": "error",
|
529
|
+
"@eslint-react/jsx-no-duplicate-props": "error",
|
527
530
|
// recommended rules from @eslint-react/dom
|
528
531
|
"@eslint-react/dom/no-children-in-void-dom-elements": "error",
|
529
532
|
"@eslint-react/dom/no-unsafe-target-blank": "error",
|
@@ -582,7 +585,6 @@ function reactJsOnly() {
|
|
582
585
|
"react/jsx-no-duplicate-props": "error",
|
583
586
|
"react/jsx-no-undef": "error",
|
584
587
|
"react/jsx-uses-react": "error",
|
585
|
-
"react/jsx-uses-vars": "error",
|
586
588
|
"react/no-unescaped-entities": "error",
|
587
589
|
"react/no-unknown-property": "error",
|
588
590
|
"react/react-in-jsx-scope": "error",
|
@@ -661,17 +663,6 @@ function comments() {
|
|
661
663
|
};
|
662
664
|
}
|
663
665
|
|
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
666
|
// src/configs/cspell.ts
|
676
667
|
function cspell(opts) {
|
677
668
|
return {
|
@@ -845,7 +836,6 @@ function factory(root, options) {
|
|
845
836
|
ts: true
|
846
837
|
}) : {},
|
847
838
|
(options == null ? void 0 : options.lodash) ? lodash() : {},
|
848
|
-
deprecation(),
|
849
839
|
(options == null ? void 0 : options.cspell) ? cspell(options.cspell) : {},
|
850
840
|
...commonConfigs,
|
851
841
|
agilebot({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.1",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -18,36 +18,36 @@
|
|
18
18
|
},
|
19
19
|
"homepage": "https://github.com/sh-agilebot/frontend-toolkit/tree/master/packages/eslint-config#readme",
|
20
20
|
"dependencies": {
|
21
|
-
"@cspell/eslint-plugin": "^8.
|
21
|
+
"@cspell/eslint-plugin": "^8.16.0",
|
22
22
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
23
|
-
"@eslint-react/eslint-plugin": "^1.
|
24
|
-
"@stylistic/eslint-plugin": "^2.
|
25
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
26
|
-
"@typescript-eslint/parser": "~8.
|
23
|
+
"@eslint-react/eslint-plugin": "^1.16.2",
|
24
|
+
"@stylistic/eslint-plugin": "^2.11.0",
|
25
|
+
"@typescript-eslint/eslint-plugin": "~8.15.0",
|
26
|
+
"@typescript-eslint/parser": "~8.15.0",
|
27
27
|
"eslint-config-godaddy": "^6.0.0",
|
28
28
|
"eslint-config-prettier": "^9.1.0",
|
29
29
|
"eslint-import-resolver-oxc": "^0.4.0",
|
30
30
|
"eslint-import-resolver-typescript": "^3.6.3",
|
31
31
|
"eslint-plugin-file-progress": "^1.5.0",
|
32
|
-
"eslint-plugin-import-x": "^4.
|
33
|
-
"eslint-plugin-jsdoc": "^50.
|
32
|
+
"eslint-plugin-import-x": "^4.4.2",
|
33
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
35
|
-
"eslint-plugin-n": "^17.
|
35
|
+
"eslint-plugin-n": "^17.13.2",
|
36
36
|
"eslint-plugin-no-relative-import-paths": "^1.5.5",
|
37
37
|
"eslint-plugin-prefer-arrow-functions": "^3.4.1",
|
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
41
|
"eslint-plugin-react-hooks": "^5.0.0",
|
42
|
-
"eslint-plugin-unicorn": "^
|
42
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
43
43
|
"eslint-plugin-unused-imports": "^4.1.4",
|
44
|
-
"eslint-plugin-vue": "^9.
|
44
|
+
"eslint-plugin-vue": "^9.31.0",
|
45
45
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
|
46
46
|
"find-up": "^5.0.0",
|
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.1"
|
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.1"
|
59
59
|
},
|
60
60
|
"files": [
|
61
61
|
"bin",
|