@4mbl/lint 0.0.0-beta.c4e49f3 → 0.0.0-beta.d55fc18
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 +13 -0
- package/README.md +19 -4
- package/package.json +5 -5
- package/src/next.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @4mbl/lint
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3a223fe: Use flat config version of eslint-plugin-react-hooks
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c4e49f3: Add eslint-plugin-react-hooks
|
|
14
|
+
- c4e49f3: Add eslint-config-prettier
|
|
15
|
+
|
|
3
16
|
## 0.1.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Install the [`@4mbl/lint`](https://www.npmjs.com/package/@4mbl/lint)
|
|
13
|
+
Install the [`@4mbl/lint`](https://www.npmjs.com/package/@4mbl/lint) package.
|
|
14
14
|
|
|
15
15
|
```shell
|
|
16
16
|
npm install -D @4mbl/lint
|
|
@@ -24,6 +24,21 @@ import defaultConfig, { type Config } from '@4mbl/lint/next'; // <-- change `nex
|
|
|
24
24
|
export default [...defaultConfig] satisfies Config[];
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
Set a script that uses the linting package.
|
|
28
|
+
|
|
29
|
+
```shell
|
|
30
|
+
npm pkg set scripts.lint="eslint src"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
You may need to explicitly allow the underlying linting packages to be used by your scripts.
|
|
34
|
+
|
|
35
|
+
For example, when using pnpm, you need to set `publicHoistPattern` in your `pnpm-workspace.yaml` for ESLint.
|
|
36
|
+
|
|
37
|
+
```yaml
|
|
38
|
+
publicHoistPattern:
|
|
39
|
+
- eslint
|
|
40
|
+
```
|
|
41
|
+
|
|
27
42
|
## Available templates
|
|
28
43
|
|
|
29
44
|
There is currently one config template.
|
|
@@ -32,10 +47,10 @@ There is currently one config template.
|
|
|
32
47
|
|
|
33
48
|
## Versioning
|
|
34
49
|
|
|
35
|
-
|
|
50
|
+
**Until v1.0.0 is released, breaking changes may be introduced in minor releases without prior warnings.**
|
|
36
51
|
|
|
37
|
-
The package follows the following versioning scheme: `X.Y.Z
|
|
52
|
+
The package follows the following versioning scheme: `X.Y.Z`.
|
|
38
53
|
|
|
39
|
-
- `X` - Reserved for linting provider changes as those might cause wider backwards
|
|
54
|
+
- `X` - Reserved for linting provider changes as those might cause wider backwards compatibility issues.
|
|
40
55
|
- `Y` - New linting rules. New rules are first added as warnings, and if error is preferred, the rule is promoted to produce errors in the next minor release.
|
|
41
56
|
- `Z` - Minor fixes that make the previous release unusable.
|
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.d55fc18",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"lint"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@eslint/js": "^9.
|
|
28
|
-
"eslint": "^9.
|
|
29
|
-
"eslint-config-next": "^16.0.
|
|
27
|
+
"@eslint/js": "^9.39.1",
|
|
28
|
+
"eslint": "^9.39.1",
|
|
29
|
+
"eslint-config-next": "^16.0.3",
|
|
30
30
|
"eslint-config-prettier": "^10.1.8",
|
|
31
31
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
32
32
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
33
33
|
"jiti": "^2.6.1",
|
|
34
|
-
"typescript-eslint": "^8.
|
|
34
|
+
"typescript-eslint": "^8.47.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {}
|
|
37
37
|
}
|