@shakuroinc/eslint-config-react 2.1.0 → 3.0.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.js +31 -0
- package/package.json +23 -23
package/.eslintrc.js
CHANGED
|
@@ -69,6 +69,7 @@ module.exports = {
|
|
|
69
69
|
aspects: ['invalidHref', 'preferButton'],
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
|
+
curly: ['error', 'multi-line'],
|
|
72
73
|
'no-duplicate-imports': 2,
|
|
73
74
|
'react-hooks/exhaustive-deps': 2,
|
|
74
75
|
'react-hooks/rules-of-hooks': 2,
|
|
@@ -117,4 +118,34 @@ module.exports = {
|
|
|
117
118
|
],
|
|
118
119
|
'simple-import-sort/exports': 1,
|
|
119
120
|
},
|
|
121
|
+
|
|
122
|
+
overrides: [
|
|
123
|
+
{
|
|
124
|
+
files: ['*.md'],
|
|
125
|
+
extends: ['plugin:mdx/overrides'],
|
|
126
|
+
rules: {
|
|
127
|
+
'@typescript-eslint/naming-convention': 0,
|
|
128
|
+
'prettier/prettier': [
|
|
129
|
+
2,
|
|
130
|
+
{
|
|
131
|
+
parser: 'markdown',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
files: ['*.mdx'],
|
|
138
|
+
extends: ['plugin:mdx/overrides'],
|
|
139
|
+
rules: {
|
|
140
|
+
'@typescript-eslint/naming-convention': 0,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
files: '**/*.{md,mdx}/**',
|
|
145
|
+
extends: ['plugin:mdx/code-blocks', 'plugin:mdx/recommended'],
|
|
146
|
+
rules: {
|
|
147
|
+
'@typescript-eslint/naming-convention': 0,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
120
151
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakuroinc/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": ".eslintrc.js",
|
|
5
5
|
"author": "Shakuro team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,33 +10,33 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
14
|
-
"@typescript-eslint/parser": "^
|
|
15
|
-
"eslint": "^
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
15
|
+
"eslint": "^8.4.0",
|
|
16
16
|
"eslint-config-prettier": "^8.3.0",
|
|
17
|
-
"eslint-mdx": "^1.
|
|
18
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
19
|
-
"eslint-plugin-mdx": "^1.
|
|
20
|
-
"eslint-plugin-prettier": "^
|
|
21
|
-
"eslint-plugin-react": "^7.
|
|
22
|
-
"eslint-plugin-react-hooks": "^4.
|
|
17
|
+
"eslint-mdx": "^1.16.0",
|
|
18
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
19
|
+
"eslint-plugin-mdx": "^1.16.0",
|
|
20
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
21
|
+
"eslint-plugin-react": "^7.27.1",
|
|
22
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
23
23
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
24
|
-
"prettier": "^2.
|
|
24
|
+
"prettier": "^2.5.1",
|
|
25
25
|
"prettier-plugin-tailwind": "^2.2.12"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
29
|
-
"@typescript-eslint/parser": "^
|
|
30
|
-
"eslint": "^
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
30
|
+
"eslint": "^8.4.0",
|
|
31
31
|
"eslint-config-prettier": "^8.3.0",
|
|
32
|
-
"eslint-mdx": "^1.
|
|
33
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
34
|
-
"eslint-plugin-mdx": "^1.
|
|
35
|
-
"eslint-plugin-prettier": "^
|
|
36
|
-
"eslint-plugin-react": "^7.
|
|
37
|
-
"eslint-plugin-react-hooks": "^4.
|
|
32
|
+
"eslint-mdx": "^1.16.0",
|
|
33
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
34
|
+
"eslint-plugin-mdx": "^1.16.0",
|
|
35
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
36
|
+
"eslint-plugin-react": "^7.27.1",
|
|
37
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
38
38
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
39
|
-
"prettier": "^2.
|
|
39
|
+
"prettier": "^2.5.1",
|
|
40
40
|
"prettier-plugin-tailwind": "^2.2.12"
|
|
41
41
|
},
|
|
42
42
|
"lint-staged": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"volta": {
|
|
51
|
-
"node": "
|
|
52
|
-
"yarn": "1.
|
|
51
|
+
"node": "16.13.0",
|
|
52
|
+
"yarn": "1.18.0"
|
|
53
53
|
}
|
|
54
54
|
}
|