@shakuroinc/eslint-config-react 3.0.0 → 4.2.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 +12 -3
- package/package.json +15 -13
- package/prettier.config.js +1 -0
package/.eslintrc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
parser: '@typescript-eslint/parser',
|
|
3
3
|
|
|
4
|
-
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'simple-import-sort'],
|
|
4
|
+
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'simple-import-sort', 'tailwindcss'],
|
|
5
5
|
|
|
6
6
|
extends: [
|
|
7
7
|
'plugin:@typescript-eslint/recommended',
|
|
@@ -22,6 +22,9 @@ module.exports = {
|
|
|
22
22
|
react: {
|
|
23
23
|
version: 'detect',
|
|
24
24
|
},
|
|
25
|
+
tailwindcss: {
|
|
26
|
+
officialSorting: true,
|
|
27
|
+
},
|
|
25
28
|
},
|
|
26
29
|
|
|
27
30
|
rules: {
|
|
@@ -70,17 +73,17 @@ module.exports = {
|
|
|
70
73
|
},
|
|
71
74
|
],
|
|
72
75
|
curly: ['error', 'multi-line'],
|
|
76
|
+
'import/order': 0,
|
|
73
77
|
'no-duplicate-imports': 2,
|
|
74
78
|
'react-hooks/exhaustive-deps': 2,
|
|
75
79
|
'react-hooks/rules-of-hooks': 2,
|
|
80
|
+
'react/button-has-type': 2,
|
|
76
81
|
'react/display-name': 0,
|
|
77
82
|
'react/no-unescaped-entities': 0,
|
|
78
83
|
'react/prop-types': 0,
|
|
79
84
|
'react/react-in-jsx-scope': 0,
|
|
80
85
|
'react/self-closing-comp': 1,
|
|
81
|
-
'import/order': 0,
|
|
82
86
|
'sort-imports': 0,
|
|
83
|
-
'react/button-has-type': 2,
|
|
84
87
|
'react/function-component-definition': [
|
|
85
88
|
2,
|
|
86
89
|
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
@@ -117,6 +120,9 @@ module.exports = {
|
|
|
117
120
|
},
|
|
118
121
|
],
|
|
119
122
|
'simple-import-sort/exports': 1,
|
|
123
|
+
'tailwindcss/classnames-order': 2,
|
|
124
|
+
'tailwindcss/no-contradicting-classname': 2,
|
|
125
|
+
'tailwindcss/no-custom-classname': 1,
|
|
120
126
|
},
|
|
121
127
|
|
|
122
128
|
overrides: [
|
|
@@ -125,6 +131,7 @@ module.exports = {
|
|
|
125
131
|
extends: ['plugin:mdx/overrides'],
|
|
126
132
|
rules: {
|
|
127
133
|
'@typescript-eslint/naming-convention': 0,
|
|
134
|
+
'max-lines': 0,
|
|
128
135
|
'prettier/prettier': [
|
|
129
136
|
2,
|
|
130
137
|
{
|
|
@@ -138,6 +145,7 @@ module.exports = {
|
|
|
138
145
|
extends: ['plugin:mdx/overrides'],
|
|
139
146
|
rules: {
|
|
140
147
|
'@typescript-eslint/naming-convention': 0,
|
|
148
|
+
'max-lines': 0,
|
|
141
149
|
},
|
|
142
150
|
},
|
|
143
151
|
{
|
|
@@ -145,6 +153,7 @@ module.exports = {
|
|
|
145
153
|
extends: ['plugin:mdx/code-blocks', 'plugin:mdx/recommended'],
|
|
146
154
|
rules: {
|
|
147
155
|
'@typescript-eslint/naming-convention': 0,
|
|
156
|
+
'max-lines': 0,
|
|
148
157
|
},
|
|
149
158
|
},
|
|
150
159
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakuroinc/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"main": ".eslintrc.js",
|
|
5
5
|
"author": "Shakuro team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,34 +10,36 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
14
|
-
"@typescript-eslint/parser": "^5.
|
|
15
|
-
"eslint": "^8.
|
|
16
|
-
"eslint-config-prettier": "^8.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
15
|
+
"eslint": "^8.10.0",
|
|
16
|
+
"eslint-config-prettier": "^8.5.0",
|
|
17
17
|
"eslint-mdx": "^1.16.0",
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
19
19
|
"eslint-plugin-mdx": "^1.16.0",
|
|
20
20
|
"eslint-plugin-prettier": "^4.0.0",
|
|
21
|
-
"eslint-plugin-react": "
|
|
21
|
+
"eslint-plugin-react": "7.27.1",
|
|
22
22
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
23
23
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
24
|
+
"eslint-plugin-tailwindcss": "^3.5.0",
|
|
24
25
|
"prettier": "^2.5.1",
|
|
25
|
-
"prettier-plugin-
|
|
26
|
+
"prettier-plugin-tailwindcss": "^0.1.8"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
29
|
-
"@typescript-eslint/parser": "^5.
|
|
30
|
-
"eslint": "^8.
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
30
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
31
|
+
"eslint": "^8.10.0",
|
|
32
|
+
"eslint-config-prettier": "^8.5.0",
|
|
32
33
|
"eslint-mdx": "^1.16.0",
|
|
33
34
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
34
35
|
"eslint-plugin-mdx": "^1.16.0",
|
|
35
36
|
"eslint-plugin-prettier": "^4.0.0",
|
|
36
|
-
"eslint-plugin-react": "
|
|
37
|
+
"eslint-plugin-react": "7.27.1",
|
|
37
38
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
38
39
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
40
|
+
"eslint-plugin-tailwindcss": "^3.5.0",
|
|
39
41
|
"prettier": "^2.5.1",
|
|
40
|
-
"prettier-plugin-
|
|
42
|
+
"prettier-plugin-tailwindcss": "^0.1.8"
|
|
41
43
|
},
|
|
42
44
|
"lint-staged": {
|
|
43
45
|
"*.{js,ts,tsx}": "eslint"
|