@viclafouch/eslint-config-viclafouch 3.3.4 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc-base.js +20 -0
- package/package.json +19 -19
- package/typescript.js +1 -0
package/.eslintrc-base.js
CHANGED
|
@@ -11,6 +11,26 @@ module.exports = {
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
rules: {
|
|
14
|
+
'id-length': [
|
|
15
|
+
'error',
|
|
16
|
+
{ min: 2, max: Infinity, exceptions: ['t', '_'], properties: 'never' }
|
|
17
|
+
],
|
|
18
|
+
'id-denylist': [
|
|
19
|
+
'error',
|
|
20
|
+
'err',
|
|
21
|
+
'cb',
|
|
22
|
+
'arr',
|
|
23
|
+
'acc',
|
|
24
|
+
'idx',
|
|
25
|
+
'ctx',
|
|
26
|
+
'res',
|
|
27
|
+
'val',
|
|
28
|
+
'obj',
|
|
29
|
+
'src',
|
|
30
|
+
'el',
|
|
31
|
+
'elem',
|
|
32
|
+
'req'
|
|
33
|
+
],
|
|
14
34
|
'react/prop-types': 'off',
|
|
15
35
|
'simple-import-sort/imports': 'error',
|
|
16
36
|
'react/jsx-props-no-spreading': 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viclafouch/eslint-config-viclafouch",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "ESLint and Prettier Config from Victor de la Fouchardiere",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -24,41 +24,41 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"homepage": "https://github.com/viclafouch/eslint-config-viclafouch#readme",
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@babel/core": "7.
|
|
28
|
-
"@babel/eslint-parser": "7.
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
30
|
-
"@typescript-eslint/parser": "5.
|
|
31
|
-
"eslint": "8.
|
|
27
|
+
"@babel/core": "7.17.5",
|
|
28
|
+
"@babel/eslint-parser": "7.17.0",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
30
|
+
"@typescript-eslint/parser": "5.14.0",
|
|
31
|
+
"eslint": "8.11.0",
|
|
32
32
|
"eslint-config-airbnb": "19.0.4",
|
|
33
|
-
"eslint-config-airbnb-typescript": "16.1.
|
|
34
|
-
"eslint-config-prettier": "^8.
|
|
33
|
+
"eslint-config-airbnb-typescript": "16.1.1",
|
|
34
|
+
"eslint-config-prettier": "^8.5.0",
|
|
35
35
|
"eslint-plugin-import": "2.25.4",
|
|
36
36
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
37
37
|
"eslint-plugin-prettier": "^4.0.0",
|
|
38
|
-
"eslint-plugin-react": "7.
|
|
38
|
+
"eslint-plugin-react": "7.29.3",
|
|
39
39
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
40
40
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
41
41
|
"prettier": "^2.5.1",
|
|
42
|
-
"typescript": "4.
|
|
42
|
+
"typescript": "4.6.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@babel/core": "7.
|
|
46
|
-
"@babel/eslint-parser": "7.
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
48
|
-
"@typescript-eslint/parser": "5.
|
|
49
|
-
"eslint": "8.
|
|
45
|
+
"@babel/core": "7.17.5",
|
|
46
|
+
"@babel/eslint-parser": "7.17.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
48
|
+
"@typescript-eslint/parser": "5.14.0",
|
|
49
|
+
"eslint": "8.11.0",
|
|
50
50
|
"eslint-config-airbnb": "19.0.4",
|
|
51
|
-
"eslint-config-airbnb-typescript": "16.1.
|
|
52
|
-
"eslint-config-prettier": "^8.
|
|
51
|
+
"eslint-config-airbnb-typescript": "16.1.1",
|
|
52
|
+
"eslint-config-prettier": "^8.5.0",
|
|
53
53
|
"eslint-plugin-import": "2.25.4",
|
|
54
54
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
55
55
|
"eslint-plugin-prettier": "^4.0.0",
|
|
56
|
-
"eslint-plugin-react": "7.
|
|
56
|
+
"eslint-plugin-react": "7.29.3",
|
|
57
57
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
58
58
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
59
59
|
"prettier": "^2.5.1",
|
|
60
60
|
"standard-version": "9.3.2",
|
|
61
|
-
"typescript": "4.
|
|
61
|
+
"typescript": "4.6.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"lint": "eslint .",
|