@shakuroinc/eslint-config-react 4.0.0 → 4.3.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 +30 -0
- package/package.json +23 -21
- package/prettier.config.js +1 -0
package/.eslintrc.js
CHANGED
|
@@ -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: {
|
|
@@ -72,6 +75,30 @@ module.exports = {
|
|
|
72
75
|
curly: ['error', 'multi-line'],
|
|
73
76
|
'import/order': 0,
|
|
74
77
|
'no-duplicate-imports': 2,
|
|
78
|
+
'no-restricted-imports': [
|
|
79
|
+
'error',
|
|
80
|
+
{
|
|
81
|
+
paths: ['ui'],
|
|
82
|
+
patterns: [
|
|
83
|
+
{
|
|
84
|
+
group: ['@sh/app', '@sh/app/*'],
|
|
85
|
+
message: 'Importing from `app` package is disallowed for architecture reasons',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
'import/no-restricted-paths': [
|
|
91
|
+
'error',
|
|
92
|
+
{
|
|
93
|
+
zones: [
|
|
94
|
+
{
|
|
95
|
+
target: 'ui',
|
|
96
|
+
from: 'app',
|
|
97
|
+
message: 'Importing from `app` package is disallowed for architecture reasons',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
75
102
|
'react-hooks/exhaustive-deps': 2,
|
|
76
103
|
'react-hooks/rules-of-hooks': 2,
|
|
77
104
|
'react/button-has-type': 2,
|
|
@@ -128,6 +155,7 @@ module.exports = {
|
|
|
128
155
|
extends: ['plugin:mdx/overrides'],
|
|
129
156
|
rules: {
|
|
130
157
|
'@typescript-eslint/naming-convention': 0,
|
|
158
|
+
'max-lines': 0,
|
|
131
159
|
'prettier/prettier': [
|
|
132
160
|
2,
|
|
133
161
|
{
|
|
@@ -141,6 +169,7 @@ module.exports = {
|
|
|
141
169
|
extends: ['plugin:mdx/overrides'],
|
|
142
170
|
rules: {
|
|
143
171
|
'@typescript-eslint/naming-convention': 0,
|
|
172
|
+
'max-lines': 0,
|
|
144
173
|
},
|
|
145
174
|
},
|
|
146
175
|
{
|
|
@@ -148,6 +177,7 @@ module.exports = {
|
|
|
148
177
|
extends: ['plugin:mdx/code-blocks', 'plugin:mdx/recommended'],
|
|
149
178
|
rules: {
|
|
150
179
|
'@typescript-eslint/naming-convention': 0,
|
|
180
|
+
'max-lines': 0,
|
|
151
181
|
},
|
|
152
182
|
},
|
|
153
183
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakuroinc/eslint-config-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.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.
|
|
17
|
-
"eslint-mdx": "^1.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
15
|
+
"eslint": "^8.14.0",
|
|
16
|
+
"eslint-config-prettier": "^8.5.0",
|
|
17
|
+
"eslint-mdx": "^1.17.0",
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
19
|
-
"eslint-plugin-mdx": "^1.
|
|
19
|
+
"eslint-plugin-mdx": "^1.17.0",
|
|
20
20
|
"eslint-plugin-prettier": "^4.0.0",
|
|
21
|
-
"eslint-plugin-react": "
|
|
22
|
-
"eslint-plugin-react-hooks": "^4.
|
|
21
|
+
"eslint-plugin-react": "7.29.4",
|
|
22
|
+
"eslint-plugin-react-hooks": "^4.5.0",
|
|
23
23
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
24
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
25
|
-
"prettier": "^2.
|
|
24
|
+
"eslint-plugin-tailwindcss": "^3.5.0",
|
|
25
|
+
"prettier": "^2.6.2",
|
|
26
|
+
"prettier-plugin-tailwindcss": "^0.1.10"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
29
|
-
"@typescript-eslint/parser": "^5.
|
|
30
|
-
"eslint": "^8.
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
32
|
-
"eslint-mdx": "^1.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
30
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
31
|
+
"eslint": "^8.14.0",
|
|
32
|
+
"eslint-config-prettier": "^8.5.0",
|
|
33
|
+
"eslint-mdx": "^1.17.0",
|
|
33
34
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
34
|
-
"eslint-plugin-mdx": "^1.
|
|
35
|
+
"eslint-plugin-mdx": "^1.17.0",
|
|
35
36
|
"eslint-plugin-prettier": "^4.0.0",
|
|
36
|
-
"eslint-plugin-react": "
|
|
37
|
-
"eslint-plugin-react-hooks": "^4.
|
|
37
|
+
"eslint-plugin-react": "7.29.4",
|
|
38
|
+
"eslint-plugin-react-hooks": "^4.5.0",
|
|
38
39
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
39
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
40
|
-
"prettier": "^2.
|
|
40
|
+
"eslint-plugin-tailwindcss": "^3.5.0",
|
|
41
|
+
"prettier": "^2.6.2",
|
|
42
|
+
"prettier-plugin-tailwindcss": "^0.1.10"
|
|
41
43
|
},
|
|
42
44
|
"lint-staged": {
|
|
43
45
|
"*.{js,ts,tsx}": "eslint"
|