@shakuroinc/eslint-config-react 3.0.0 → 4.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 +6 -3
- package/package.json +11 -11
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',
|
|
@@ -70,17 +70,17 @@ module.exports = {
|
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
curly: ['error', 'multi-line'],
|
|
73
|
+
'import/order': 0,
|
|
73
74
|
'no-duplicate-imports': 2,
|
|
74
75
|
'react-hooks/exhaustive-deps': 2,
|
|
75
76
|
'react-hooks/rules-of-hooks': 2,
|
|
77
|
+
'react/button-has-type': 2,
|
|
76
78
|
'react/display-name': 0,
|
|
77
79
|
'react/no-unescaped-entities': 0,
|
|
78
80
|
'react/prop-types': 0,
|
|
79
81
|
'react/react-in-jsx-scope': 0,
|
|
80
82
|
'react/self-closing-comp': 1,
|
|
81
|
-
'import/order': 0,
|
|
82
83
|
'sort-imports': 0,
|
|
83
|
-
'react/button-has-type': 2,
|
|
84
84
|
'react/function-component-definition': [
|
|
85
85
|
2,
|
|
86
86
|
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
@@ -117,6 +117,9 @@ module.exports = {
|
|
|
117
117
|
},
|
|
118
118
|
],
|
|
119
119
|
'simple-import-sort/exports': 1,
|
|
120
|
+
'tailwindcss/classnames-order': 2,
|
|
121
|
+
'tailwindcss/no-contradicting-classname': 2,
|
|
122
|
+
'tailwindcss/no-custom-classname': 1,
|
|
120
123
|
},
|
|
121
124
|
|
|
122
125
|
overrides: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakuroinc/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"main": ".eslintrc.js",
|
|
5
5
|
"author": "Shakuro team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
14
|
-
"@typescript-eslint/parser": "^5.
|
|
15
|
-
"eslint": "^8.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.7.0",
|
|
15
|
+
"eslint": "^8.5.0",
|
|
16
16
|
"eslint-config-prettier": "^8.3.0",
|
|
17
17
|
"eslint-mdx": "^1.16.0",
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
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
|
-
"
|
|
25
|
-
"prettier
|
|
24
|
+
"eslint-plugin-tailwindcss": "^3.0.0-beta.0",
|
|
25
|
+
"prettier": "^2.5.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
29
|
-
"@typescript-eslint/parser": "^5.
|
|
30
|
-
"eslint": "^8.
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.7.0",
|
|
30
|
+
"eslint": "^8.5.0",
|
|
31
31
|
"eslint-config-prettier": "^8.3.0",
|
|
32
32
|
"eslint-mdx": "^1.16.0",
|
|
33
33
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"eslint-plugin-react": "^7.27.1",
|
|
37
37
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
38
38
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
39
|
-
"
|
|
40
|
-
"prettier
|
|
39
|
+
"eslint-plugin-tailwindcss": "^3.0.0-beta.0",
|
|
40
|
+
"prettier": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"lint-staged": {
|
|
43
43
|
"*.{js,ts,tsx}": "eslint"
|