@zukhruf/eslint 0.8.12 → 0.8.13

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 +1 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -273,7 +273,7 @@ If the app installs an npm polyfill that has a Node module's name, allow it: `'i
273
273
 
274
274
  Node and JavaScript add APIs that replace older code. `modern-node/recommended` reports the older code on each lint run, so a repo learns about a replacement and no person has to look for it.
275
275
 
276
- The config is for code that runs on Node. Keep a browser bundle out of it with `ignores`. `Error.isError` and `Uint8Array.prototype.toHex` do not work in all the browsers that people use, so the fix can throw in a browser.
276
+ The config is for code that runs on Node. Keep a browser bundle out of it. When a project has its own `eslint.config` that spreads the root config, ESLint resolves each glob from the folder of the project, so `ignores` in the root does not apply there. In that repo, add this config to the config of each Node project. Check the result with `eslint --print-config` in a browser project. `Error.isError` and `Uint8Array.prototype.toHex` do not work in all the browsers that people use, so the fix can throw in a browser.
277
277
 
278
278
  `@zukhruf/eslint/modern-node` needs `@e18e/eslint-plugin` and `eslint-plugin-unicorn`. `eslint-plugin-unicorn` 79 needs ESLint 10.4 or later.
279
279
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/eslint",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "ESLint rules and configs shared across workspaces. Every check is its own named rule, so a repo's own config cannot silently erase it.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -68,7 +68,7 @@
68
68
  "ts-api-utils": "^2.5.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@zukhruf/testing": "^0.8.12"
71
+ "@zukhruf/testing": "^0.8.13"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@e18e/eslint-plugin": "^0.8.1",