@agilebot/eslint-config 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/cli.js +1 -1
- package/lib/configs/agilebot.js +1 -10
- package/lib/configs/ts.js +5 -1
- package/package.json +8 -11
package/lib/cli.js
CHANGED
package/lib/configs/agilebot.js
CHANGED
@@ -1,12 +1,3 @@
|
|
1
1
|
module.exports = {
|
2
|
-
extends: ['plugin:@agilebot/recommended']
|
3
|
-
rules: {
|
4
|
-
// 禁止使用inline style,应该使用mui的sx属性或tss或styled-component
|
5
|
-
'@agilebot/react/no-inline-styles': [
|
6
|
-
'error',
|
7
|
-
{
|
8
|
-
allowedFor: ['Grow']
|
9
|
-
}
|
10
|
-
]
|
11
|
-
}
|
2
|
+
extends: ['plugin:@agilebot/recommended']
|
12
3
|
};
|
package/lib/configs/ts.js
CHANGED
@@ -13,7 +13,11 @@ module.exports = {
|
|
13
13
|
// Allow camelCase variables (23.2), PascalCase variables (23.8), and UPPER_CASE variables (23.10)
|
14
14
|
{
|
15
15
|
selector: 'variable',
|
16
|
-
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
|
16
|
+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
17
|
+
filter: {
|
18
|
+
regex: '^(__dirname|__filename)$',
|
19
|
+
match: false
|
20
|
+
}
|
17
21
|
},
|
18
22
|
// Allow camelCase functions (23.2), and PascalCase functions (23.8)
|
19
23
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.6",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -16,16 +16,13 @@
|
|
16
16
|
"directory": "packages/eslint-config"
|
17
17
|
},
|
18
18
|
"homepage": "https://github.com/sh-agilebot/frontend-toolkit/tree/master/packages/eslint-config#readme",
|
19
|
-
"engines": {
|
20
|
-
"node": "^18.0.0"
|
21
|
-
},
|
22
19
|
"dependencies": {
|
23
|
-
"@cspell/eslint-plugin": "^8.
|
20
|
+
"@cspell/eslint-plugin": "^8.7.0",
|
24
21
|
"@stylistic/eslint-plugin": "^1.7.0",
|
25
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
26
|
-
"@typescript-eslint/parser": "^7.
|
22
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
23
|
+
"@typescript-eslint/parser": "^7.6.0",
|
27
24
|
"eslint-config-godaddy": "^6.0.0",
|
28
|
-
"eslint-config-love": "^
|
25
|
+
"eslint-config-love": "^47.0.0",
|
29
26
|
"eslint-config-prettier": "^9.1.0",
|
30
27
|
"eslint-import-resolver-typescript": "^3.6.1",
|
31
28
|
"eslint-plugin-deprecation": "^2.0.0",
|
@@ -34,14 +31,14 @@
|
|
34
31
|
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
35
32
|
"eslint-plugin-jsdoc": "^48.2.1",
|
36
33
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
37
|
-
"eslint-plugin-n": "^
|
38
|
-
"eslint-plugin-no-relative-import-paths": "^1.5.
|
34
|
+
"eslint-plugin-n": "^17.2.0",
|
35
|
+
"eslint-plugin-no-relative-import-paths": "^1.5.4",
|
39
36
|
"eslint-plugin-prettier": "^5.1.3",
|
40
37
|
"eslint-plugin-promise": "^6.0.0",
|
41
38
|
"eslint-plugin-react": "^7.34.1",
|
42
39
|
"eslint-plugin-react-hooks": "^4.6.0",
|
43
40
|
"eslint-plugin-react-prefer-function-component": "^3.3.0",
|
44
|
-
"eslint-plugin-unicorn": "^
|
41
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
45
42
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0"
|
46
43
|
},
|
47
44
|
"peerDependencies": {
|