@4mbl/lint 0.0.0-beta.6d969e6 → 0.0.0-beta.876bcbb
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 +48 -0
- package/README.md +6 -5
- package/package.json +9 -7
- package/src/next.ts +2 -2
- package/src/node.ts +14 -0
- package/src/react.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @4mbl/lint
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8e46d6b: Upgrade config dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8e46d6b: Re-export types with type-keyword to fix verbatimModuleSyntax
|
|
12
|
+
|
|
13
|
+
## 0.6.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 46d0443: Upgrade config dependencies
|
|
18
|
+
|
|
19
|
+
## 0.5.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 55c3db6: Export `defineConfig` from eslint
|
|
24
|
+
- f7d30bb: Upgrade config dependencies
|
|
25
|
+
|
|
26
|
+
## 0.4.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- 00cfefd: Add node template
|
|
31
|
+
|
|
32
|
+
## 0.3.2
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- df1c48b: Re-export eslint Config type from react template
|
|
37
|
+
|
|
38
|
+
## 0.3.1
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- d17fc69: Fix react template export
|
|
43
|
+
|
|
44
|
+
## 0.3.0
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- 6d969e6: Add react template
|
|
49
|
+
- 6d969e6: Upgrade eslint and config dependencies
|
|
50
|
+
|
|
3
51
|
## 0.2.1
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
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.
|
|
@@ -41,10 +41,11 @@ publicHoistPattern:
|
|
|
41
41
|
|
|
42
42
|
## Available templates
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
These are the currently available config templates.
|
|
45
45
|
|
|
46
|
-
- **Next** -
|
|
47
|
-
- **
|
|
46
|
+
- **Next** - Extending the Next.js linting config.
|
|
47
|
+
- **Node** - Linting configuration for Node.js.
|
|
48
|
+
- **React** - Extending the Vite-React linting config.
|
|
48
49
|
|
|
49
50
|
## Versioning
|
|
50
51
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4mbl/lint",
|
|
3
|
-
"version": "0.0.0-beta.
|
|
3
|
+
"version": "0.0.0-beta.876bcbb",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/4mbl/config/tree/main/packages/lint#readme",
|
|
9
9
|
"exports": {
|
|
10
|
-
"./next": "./src/next.ts"
|
|
10
|
+
"./next": "./src/next.ts",
|
|
11
|
+
"./node": "./src/node.ts",
|
|
12
|
+
"./react": "./src/react.ts"
|
|
11
13
|
},
|
|
12
14
|
"files": [
|
|
13
15
|
"src",
|
|
@@ -24,16 +26,16 @@
|
|
|
24
26
|
"lint"
|
|
25
27
|
],
|
|
26
28
|
"dependencies": {
|
|
27
|
-
"@eslint/js": "^9.39.
|
|
28
|
-
"eslint": "^9.39.
|
|
29
|
-
"eslint-config-next": "^16.0.
|
|
29
|
+
"@eslint/js": "^9.39.2",
|
|
30
|
+
"eslint": "^9.39.2",
|
|
31
|
+
"eslint-config-next": "^16.0.10",
|
|
30
32
|
"eslint-config-prettier": "^10.1.8",
|
|
31
33
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
32
34
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
33
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
35
|
+
"eslint-plugin-react-refresh": "^0.4.25",
|
|
34
36
|
"globals": "^16.5.0",
|
|
35
37
|
"jiti": "^2.6.1",
|
|
36
|
-
"typescript-eslint": "^8.
|
|
38
|
+
"typescript-eslint": "^8.50.0"
|
|
37
39
|
},
|
|
38
40
|
"scripts": {}
|
|
39
41
|
}
|
package/src/next.ts
CHANGED
|
@@ -5,10 +5,10 @@ import nextTs from 'eslint-config-next/typescript';
|
|
|
5
5
|
import prettier from 'eslint-config-prettier/flat';
|
|
6
6
|
import * as reactCompiler from 'eslint-plugin-react-compiler';
|
|
7
7
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
8
|
-
import { Config, defineConfig, globalIgnores } from 'eslint/config';
|
|
8
|
+
import { type Config, defineConfig, globalIgnores } from 'eslint/config';
|
|
9
9
|
import tseslint from 'typescript-eslint';
|
|
10
10
|
|
|
11
|
-
export { Config };
|
|
11
|
+
export { type Config, defineConfig };
|
|
12
12
|
|
|
13
13
|
export default defineConfig([
|
|
14
14
|
js.configs.recommended,
|
package/src/node.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import { defineConfig, globalIgnores, type Config } from 'eslint/config';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
export { type Config, defineConfig };
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist/**']),
|
|
10
|
+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
|
|
11
|
+
{ languageOptions: { globals: globals.node } },
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
...tseslint.configs.recommended,
|
|
14
|
+
]) satisfies Config[];
|
package/src/react.ts
CHANGED
|
@@ -2,10 +2,12 @@ import js from '@eslint/js';
|
|
|
2
2
|
import prettier from 'eslint-config-prettier/flat';
|
|
3
3
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
4
|
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
5
|
-
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
5
|
+
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 { type Config, defineConfig };
|
|
10
|
+
|
|
9
11
|
export default defineConfig([
|
|
10
12
|
js.configs.recommended,
|
|
11
13
|
tseslint.configs.recommended,
|
|
@@ -29,4 +31,4 @@ export default defineConfig([
|
|
|
29
31
|
},
|
|
30
32
|
|
|
31
33
|
prettier,
|
|
32
|
-
]);
|
|
34
|
+
]) satisfies Config[];
|