@theholocron/eslint-config 8.9.0-alpha.15 → 8.9.0-alpha.16
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/README.md
CHANGED
|
@@ -51,6 +51,11 @@ import { base, typescript } from "@theholocron/eslint-config";
|
|
|
51
51
|
export default [...base(), ...typescript()];
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
`node()` pins `n/no-unsupported-features/node-builtins` and `es-builtins` to the org-wide Node floor (`>=22.0.0`)
|
|
55
|
+
instead of reading `engines.node`, so a run with no `package.json` to read (Sentinel's in-memory check) does not fall
|
|
56
|
+
back to `>=16.0.0` and flag `Object.hasOwn` or `Response`. `packageJson()` turns both off (a JSON file has no global
|
|
57
|
+
scope), and so does `library({ browserPackages })` for the packages it names.
|
|
58
|
+
|
|
54
59
|
All other presets use subpath imports:
|
|
55
60
|
|
|
56
61
|
```javascript
|
|
@@ -3,7 +3,7 @@ import { Linter } from "eslint";
|
|
|
3
3
|
export interface LibraryOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Package (or path) globs whose code runs in the browser, not Node —
|
|
6
|
-
* `n/no-unsupported-features/node-builtins` false-
|
|
6
|
+
* `n/no-unsupported-features/node-builtins` and `es-builtins` (both pinned to the Node floor) false-positive on browser
|
|
7
7
|
* APIs (`navigator`, `sessionStorage`, `KeyboardEvent`, …) it doesn't
|
|
8
8
|
* recognize. Each entry gets a `<glob>/**` files match with the rule
|
|
9
9
|
* turned off. Rare — most repos need nothing here (`utils/` in
|
package/dist/bundles/library.js
CHANGED
|
@@ -43,7 +43,10 @@ function library(options = {}) {
|
|
|
43
43
|
...options.browserPackages?.length ? [{
|
|
44
44
|
name: "@theholocron/library/browser-packages",
|
|
45
45
|
files: options.browserPackages.map((pkg) => `${pkg}/**`),
|
|
46
|
-
rules: {
|
|
46
|
+
rules: {
|
|
47
|
+
"n/no-unsupported-features/node-builtins": "off",
|
|
48
|
+
"n/no-unsupported-features/es-builtins": "off"
|
|
49
|
+
}
|
|
47
50
|
}] : []
|
|
48
51
|
];
|
|
49
52
|
}
|
package/dist/configs/node.js
CHANGED
|
@@ -11,7 +11,8 @@ function node() {
|
|
|
11
11
|
"n/no-process-exit": "off",
|
|
12
12
|
"n/no-missing-import": "off",
|
|
13
13
|
"n/no-unsupported-features/es-syntax": "off",
|
|
14
|
-
"n/no-unsupported-features/node-builtins": ["error", { version: ">=22.0.0" }]
|
|
14
|
+
"n/no-unsupported-features/node-builtins": ["error", { version: ">=22.0.0" }],
|
|
15
|
+
"n/no-unsupported-features/es-builtins": ["error", { version: ">=22.0.0" }]
|
|
15
16
|
}
|
|
16
17
|
}];
|
|
17
18
|
}
|
|
@@ -12,6 +12,7 @@ function packageJson() {
|
|
|
12
12
|
"package-json/no-workspace-protocol-in-published-package": "off",
|
|
13
13
|
"no-irregular-whitespace": "off",
|
|
14
14
|
"n/no-unsupported-features/node-builtins": "off",
|
|
15
|
+
"n/no-unsupported-features/es-builtins": "off",
|
|
15
16
|
"n/no-extraneous-require": "off",
|
|
16
17
|
"package-json/no-nested-exports": "off",
|
|
17
18
|
"package-json/sort-properties": ["error", { order: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/eslint-config",
|
|
3
|
-
"version": "8.9.0-alpha.
|
|
3
|
+
"version": "8.9.0-alpha.16",
|
|
4
4
|
"description": "A ESLint configuration for writing well-formed Javascript within the Galaxy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
120
|
"typescript-eslint": "^8.72.1",
|
|
121
121
|
"vitest": "^5.1.0",
|
|
122
|
-
"@theholocron/tsconfig": "8.9.0-alpha.
|
|
123
|
-
"@theholocron/vitest-config": "8.9.0-alpha.
|
|
122
|
+
"@theholocron/tsconfig": "8.9.0-alpha.16",
|
|
123
|
+
"@theholocron/vitest-config": "8.9.0-alpha.16"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"@eslint/js": "^10",
|