@4mbl/lint 0.0.0-beta.a4700d7 → 0.0.0-beta.ad386ce
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/README.md +2 -2
- package/package.json +3 -3
- package/src/next.ts +1 -1
- package/src/node.ts +2 -2
- package/src/react.ts +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,9 +19,9 @@ npm install -D @4mbl/lint
|
|
|
19
19
|
Create a `eslint.config.ts` file in the root of your project with the desired configuration. This package currently uses eslint. That might change in a future major release.
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
|
-
import defaultConfig, {
|
|
22
|
+
import defaultConfig, { defineConfig } from '@4mbl/lint/next'; // <-- change `next` to the desired template
|
|
23
23
|
|
|
24
|
-
export default [...defaultConfig]
|
|
24
|
+
export default defineConfig([...defaultConfig]);
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Set a script that uses the linting package.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4mbl/lint",
|
|
3
|
-
"version": "0.0.0-beta.
|
|
3
|
+
"version": "0.0.0-beta.ad386ce",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint/js": "^9.39.1",
|
|
30
30
|
"eslint": "^9.39.1",
|
|
31
|
-
"eslint-config-next": "^16.0.
|
|
31
|
+
"eslint-config-next": "^16.0.4",
|
|
32
32
|
"eslint-config-prettier": "^10.1.8",
|
|
33
33
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
34
34
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
35
35
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
36
36
|
"globals": "^16.5.0",
|
|
37
37
|
"jiti": "^2.6.1",
|
|
38
|
-
"typescript-eslint": "^8.
|
|
38
|
+
"typescript-eslint": "^8.48.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {}
|
|
41
41
|
}
|
package/src/next.ts
CHANGED
|
@@ -8,7 +8,7 @@ import reactHooks from 'eslint-plugin-react-hooks';
|
|
|
8
8
|
import { Config, defineConfig, globalIgnores } from 'eslint/config';
|
|
9
9
|
import tseslint from 'typescript-eslint';
|
|
10
10
|
|
|
11
|
-
export { Config };
|
|
11
|
+
export { Config, defineConfig };
|
|
12
12
|
|
|
13
13
|
export default defineConfig([
|
|
14
14
|
js.configs.recommended,
|
package/src/node.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { defineConfig, globalIgnores, type Config } from 'eslint/config';
|
|
|
3
3
|
import globals from 'globals';
|
|
4
4
|
import tseslint from 'typescript-eslint';
|
|
5
5
|
|
|
6
|
-
export { Config };
|
|
6
|
+
export { Config, defineConfig };
|
|
7
7
|
|
|
8
8
|
export default defineConfig([
|
|
9
9
|
globalIgnores(['dist/**']),
|
|
@@ -11,4 +11,4 @@ export default defineConfig([
|
|
|
11
11
|
{ languageOptions: { globals: globals.node } },
|
|
12
12
|
js.configs.recommended,
|
|
13
13
|
...tseslint.configs.recommended,
|
|
14
|
-
]);
|
|
14
|
+
]) satisfies Config[];
|
package/src/react.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { defineConfig, globalIgnores, type Config } from 'eslint/config';
|
|
|
6
6
|
import globals from 'globals';
|
|
7
7
|
import tseslint from 'typescript-eslint';
|
|
8
8
|
|
|
9
|
-
export { Config };
|
|
9
|
+
export { Config, defineConfig };
|
|
10
10
|
|
|
11
11
|
export default defineConfig([
|
|
12
12
|
js.configs.recommended,
|
|
@@ -31,4 +31,4 @@ export default defineConfig([
|
|
|
31
31
|
},
|
|
32
32
|
|
|
33
33
|
prettier,
|
|
34
|
-
]);
|
|
34
|
+
]) satisfies Config[];
|