@4mbl/lint 0.1.1 → 0.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/CHANGELOG.md +7 -0
- package/package.json +3 -1
- package/src/next.ts +5 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4mbl/lint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"@eslint/js": "^9.38.0",
|
|
28
28
|
"eslint": "^9.38.0",
|
|
29
29
|
"eslint-config-next": "^16.0.1",
|
|
30
|
+
"eslint-config-prettier": "^10.1.8",
|
|
30
31
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
32
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
31
33
|
"jiti": "^2.6.1",
|
|
32
34
|
"typescript-eslint": "^8.46.2"
|
|
33
35
|
},
|
package/src/next.ts
CHANGED
|
@@ -5,6 +5,8 @@ import nextTs from 'eslint-config-next/typescript';
|
|
|
5
5
|
import * as reactCompiler from 'eslint-plugin-react-compiler';
|
|
6
6
|
import { defineConfig, globalIgnores, Config } from 'eslint/config';
|
|
7
7
|
import tseslint from 'typescript-eslint';
|
|
8
|
+
import prettier from 'eslint-config-prettier/flat';
|
|
9
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
8
10
|
|
|
9
11
|
export { Config };
|
|
10
12
|
|
|
@@ -20,11 +22,13 @@ export default defineConfig([
|
|
|
20
22
|
},
|
|
21
23
|
...nextVitals,
|
|
22
24
|
...nextTs,
|
|
23
|
-
|
|
25
|
+
reactHooks.configs.recommended,
|
|
24
26
|
reactCompiler.configs.recommended,
|
|
25
27
|
{
|
|
26
28
|
rules: {
|
|
27
29
|
'react-compiler/react-compiler': 'error',
|
|
28
30
|
},
|
|
29
31
|
},
|
|
32
|
+
prettier,
|
|
33
|
+
globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts']),
|
|
30
34
|
]) satisfies Config[];
|