@agilebot/eslint-config 0.3.6 → 0.3.8
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 +14 -5
- package/package.json +3 -3
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-config v0.3.
|
2
|
+
* @license @agilebot/eslint-config v0.3.8
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -843,10 +843,11 @@ function react(opts) {
|
|
843
843
|
"react/require-render-return": "error",
|
844
844
|
// recommended rules from @eslint-react
|
845
845
|
"@eslint-react/no-direct-mutation-state": "error",
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
846
|
+
// Children API
|
847
|
+
// '@eslint-react/no-children-count': 'warn',
|
848
|
+
// '@eslint-react/no-children-for-each': 'warn',
|
849
|
+
// '@eslint-react/no-children-map': 'warn',
|
850
|
+
// '@eslint-react/no-children-only': 'warn',
|
850
851
|
"@eslint-react/no-children-prop": "error",
|
851
852
|
"@eslint-react/no-children-to-array": "warn",
|
852
853
|
"@eslint-react/no-clone-element": "warn",
|
@@ -886,6 +887,8 @@ function react(opts) {
|
|
886
887
|
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
887
888
|
// recommended rules react-hooks
|
888
889
|
"react-hooks/rules-of-hooks": "error",
|
890
|
+
// recommended rules from @eslint-react/naming-convention
|
891
|
+
"@eslint-react/naming-convention/component-name": "error",
|
889
892
|
// 以下是自定义规则
|
890
893
|
"react/jsx-handler-names": [
|
891
894
|
"error",
|
@@ -1060,6 +1063,12 @@ function agilebot(opts) {
|
|
1060
1063
|
}
|
1061
1064
|
}
|
1062
1065
|
}
|
1066
|
+
],
|
1067
|
+
"@agilebot/func-naming": [
|
1068
|
+
"error",
|
1069
|
+
{
|
1070
|
+
format: "camelCase"
|
1071
|
+
}
|
1063
1072
|
]
|
1064
1073
|
},
|
1065
1074
|
settings: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.8",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -44,14 +44,14 @@
|
|
44
44
|
"eslint-plugin-vue": "^9.26.0",
|
45
45
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
|
46
46
|
"vue-eslint-parser": "^9.4.2",
|
47
|
-
"@agilebot/eslint-utils": "0.3.
|
47
|
+
"@agilebot/eslint-utils": "0.3.8"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
50
|
"eslint-config-love": "^47.0.0"
|
51
51
|
},
|
52
52
|
"peerDependencies": {
|
53
53
|
"eslint": "^7.0.0 || ^8.0.0",
|
54
|
-
"@agilebot/eslint-plugin": "0.3.
|
54
|
+
"@agilebot/eslint-plugin": "0.3.8"
|
55
55
|
},
|
56
56
|
"files": [
|
57
57
|
"bin",
|