@4mbl/lint 0.0.0-beta.1debea4 → 0.0.0-beta.21ef87d

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.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +2 -2
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) npm package.
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.0.0-beta.1debea4",
3
+ "version": "0.0.0-beta.21ef87d",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -31,7 +31,7 @@
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.46.2"
34
+ "typescript-eslint": "^8.47.0"
35
35
  },
36
36
  "scripts": {}
37
37
  }