@fullstacksjs/eslint-config 9.5.0 → 9.5.2
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/README.md +8 -3
- package/next.js +4 -0
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ module.exports = init({
|
|
|
30
30
|
auto: true, // If you need auto module detection (refer to Auto Module Detection).
|
|
31
31
|
// Modules configuration check (optional). (refer to Module API)
|
|
32
32
|
},
|
|
33
|
-
//
|
|
33
|
+
// Other ESLint configurations
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
```
|
|
@@ -66,6 +66,8 @@ interface Modules {
|
|
|
66
66
|
test?: boolean; // controls jest/vitest plugin
|
|
67
67
|
cypress?: boolean; // controls cypress plugin
|
|
68
68
|
storybook?: boolean; // controls storybook plugin
|
|
69
|
+
tailwind?: boolean; // controls tailwindcss plugin
|
|
70
|
+
next?: boolean; // controls next plugin
|
|
69
71
|
}
|
|
70
72
|
```
|
|
71
73
|
|
|
@@ -88,7 +90,7 @@ React/NextJS configuration should automatically work with Auto Module Detection,
|
|
|
88
90
|
```js
|
|
89
91
|
module.exports = init({
|
|
90
92
|
modules: {
|
|
91
|
-
react:
|
|
93
|
+
react: true // for React/CRA/Vite
|
|
92
94
|
},
|
|
93
95
|
});
|
|
94
96
|
```
|
|
@@ -98,7 +100,8 @@ and
|
|
|
98
100
|
```js
|
|
99
101
|
module.exports = init({
|
|
100
102
|
modules: {
|
|
101
|
-
react:
|
|
103
|
+
react: true,
|
|
104
|
+
next: true // for NextJS
|
|
102
105
|
},
|
|
103
106
|
});
|
|
104
107
|
```
|
|
@@ -164,6 +167,8 @@ v9 does not have any breaking change, which means the current configuration you
|
|
|
164
167
|
* [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise)
|
|
165
168
|
* [eslint-plugin-storybook](https://github.com/storybookjs/eslint-plugin-storybook#readme)
|
|
166
169
|
* [eslint-plugin-graphql](https://github.com/apollographql/eslint-plugin-graphql)
|
|
170
|
+
* [eslint-config-next](https://github.com/vercel/next.js/tree/canary/packages/eslint-config-next)
|
|
171
|
+
* [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
|
|
167
172
|
|
|
168
173
|
That's all. Feel free to use 💛
|
|
169
174
|
|
package/next.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -19,19 +19,20 @@
|
|
|
19
19
|
"graphql.js",
|
|
20
20
|
"import.js",
|
|
21
21
|
"index.d.ts",
|
|
22
|
-
"init.js",
|
|
23
22
|
"init.d.ts",
|
|
23
|
+
"init.js",
|
|
24
24
|
"jest.js",
|
|
25
25
|
"naming-convention.js",
|
|
26
|
+
"next.js",
|
|
26
27
|
"node.js",
|
|
27
28
|
"packages.js",
|
|
28
29
|
"prettier.js",
|
|
29
30
|
"promise.js",
|
|
30
31
|
"react.js",
|
|
31
|
-
"tailwind.js",
|
|
32
32
|
"registerOpts.js",
|
|
33
33
|
"storybook.js",
|
|
34
34
|
"strict.js",
|
|
35
|
+
"tailwind.js",
|
|
35
36
|
"test.js",
|
|
36
37
|
"typecheck.js",
|
|
37
38
|
"typescript.js",
|
|
@@ -49,8 +50,8 @@
|
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@fullstacksjs/toolbox": "3.0.2",
|
|
51
52
|
"@graphql-eslint/eslint-plugin": "3.19.1",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "5.59.
|
|
53
|
-
"@typescript-eslint/parser": "5.59.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "5.59.8",
|
|
54
|
+
"@typescript-eslint/parser": "5.59.8",
|
|
54
55
|
"deepmerge": "4.3.1",
|
|
55
56
|
"eslint-config-next": "13.4.4",
|
|
56
57
|
"eslint-config-prettier": "8.8.0",
|
|
@@ -72,20 +73,20 @@
|
|
|
72
73
|
"read-pkg-up": "7.0.1"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
|
-
"@semantic-release/github": "
|
|
76
|
+
"@semantic-release/github": "9.0.2",
|
|
76
77
|
"@semantic-release/npm": "10.0.3",
|
|
77
78
|
"@semantic-release/release-notes-generator": "11.0.2",
|
|
78
79
|
"cspell": "6.31.1",
|
|
79
|
-
"eslint": "8.
|
|
80
|
+
"eslint": "8.42.0",
|
|
80
81
|
"eslint-find-rules": "4.1.0",
|
|
81
82
|
"husky": "8.0.3",
|
|
82
83
|
"lint-staged": "13.2.2",
|
|
83
|
-
"np": "
|
|
84
|
+
"np": "8.0.2",
|
|
84
85
|
"npm-run-all": "4.1.5",
|
|
85
86
|
"pinst": "3.0.0",
|
|
86
87
|
"prettier": "2.8.8",
|
|
87
|
-
"semantic-release": "21.0.
|
|
88
|
-
"typescript": "5.
|
|
88
|
+
"semantic-release": "21.0.3",
|
|
89
|
+
"typescript": "5.1.3"
|
|
89
90
|
},
|
|
90
91
|
"peerDependencies": {
|
|
91
92
|
"cypress": ">=8",
|