eslint-config-nick2bad4u 1.2.12 → 1.2.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.
- package/LICENSE +1 -1
- package/README.md +8 -8
- package/package.json +20 -20
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eslint-config-nick2bad4u
|
|
2
2
|
|
|
3
|
-
[](https://github.com/Nick2bad4u/eslint-config-nick2bad4u/blob/main/LICENSE) [](https://www.npmjs.com/package/eslint-config-nick2bad4u) [](https://github.com/Nick2bad4u/eslint-config-nick2bad4u/releases) [](https://github.com/Nick2bad4u/eslint-config-nick2bad4u/stargazers) [](https://github.com/Nick2bad4u/eslint-config-nick2bad4u/forks) [](https://github.com/Nick2bad4u/eslint-config-nick2bad4u/issues) [](https://codecov.io/gh/Nick2bad4u/eslint-config-nick2bad4u)
|
|
4
4
|
|
|
5
5
|
Shared ESM-only [ESLint flat config](https://eslint.org/docs/latest/use/configure/configuration-files)
|
|
6
6
|
for Nick2bad4u TypeScript/JavaScript repositories.
|
|
@@ -28,8 +28,8 @@ with whatever package manager their project supports.
|
|
|
28
28
|
npm install --save-dev eslint-config-nick2bad4u eslint typescript
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Keep `eslint` and `typescript` installed in the consuming project
|
|
32
|
-
dependency resolution
|
|
31
|
+
Keep `eslint` and `typescript` installed in the consuming project to keep peer
|
|
32
|
+
dependency resolution explicit and predictable.
|
|
33
33
|
|
|
34
34
|
## Quick start
|
|
35
35
|
|
|
@@ -66,7 +66,7 @@ import { presets } from "eslint-config-nick2bad4u";
|
|
|
66
66
|
export default [...presets.all];
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
For migration steps from an existing
|
|
69
|
+
For migration steps from an existing handwritten config, see the
|
|
70
70
|
[migration guide](./docs/migration.md).
|
|
71
71
|
|
|
72
72
|
## Documentation
|
|
@@ -76,14 +76,14 @@ Long-form project documentation lives in [`docs/`](./docs/index.md).
|
|
|
76
76
|
| Guide | Use it for |
|
|
77
77
|
| ---------------------------------------------- | ------------------------------------------------------------------------- |
|
|
78
78
|
| [Configuration](./docs/configuration.md) | `createConfig()`, presets, plugin replacement, and environment variables. |
|
|
79
|
-
| [Migration](./docs/migration.md) | Moving a project from a
|
|
79
|
+
| [Migration](./docs/migration.md) | Moving a project from a handwritten flat config to this package. |
|
|
80
80
|
| [Contributing](./CONTRIBUTING.md) | Local development workflow and pull request expectations. |
|
|
81
81
|
| [Maintainer guide](./docs/maintainer-guide.md) | Rule, preset, dependency, and release maintenance. |
|
|
82
82
|
| [Support](./SUPPORT.md) | Issue triage and reproduction details. |
|
|
83
83
|
| [Security](./SECURITY.md) | Private vulnerability reporting. |
|
|
84
84
|
| [Code of conduct](./CODE_OF_CONDUCT.md) | Participation standards for the project. |
|
|
85
85
|
|
|
86
|
-
##
|
|
86
|
+
## Configuration
|
|
87
87
|
|
|
88
88
|
Use `createConfig()` when a project needs to customize root resolution, import
|
|
89
89
|
resolver project paths, or plugin replacement/disabling while keeping the shared
|
|
@@ -170,7 +170,7 @@ ESLint can lint: source, tests, scripts, dotfiles, examples, and docs tooling.
|
|
|
170
170
|
If a repository keeps a separate `tsconfig.eslint.json`, that file can still be
|
|
171
171
|
useful for `tsconfigPaths` and import resolution, but it does not make the
|
|
172
172
|
parser project service pick that file instead of `tsconfig.json`. Put
|
|
173
|
-
lint-visible files in
|
|
173
|
+
lint-visible files in the nearest `tsconfig.json`, or opt the root
|
|
174
174
|
files into `allowDefaultProjectFilePatterns`. The shared default already covers
|
|
175
175
|
root-only `js`, `mjs`, and `cjs` files, including dotfiles.
|
|
176
176
|
|
|
@@ -205,7 +205,7 @@ environment instead of passing `rootDirectory` to `createConfig()`.
|
|
|
205
205
|
## Local plugin dogfooding
|
|
206
206
|
|
|
207
207
|
Use the matching `without*` preset, then append the local plugin registration.
|
|
208
|
-
For example,
|
|
208
|
+
For example, `eslint-plugin-typefest` checkout can use its local plugin build
|
|
209
209
|
without also enabling the packaged Typefest rules:
|
|
210
210
|
|
|
211
211
|
```js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "eslint-config-nick2bad4u",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.13",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Shared flat ESLint config for Nick2bad4u Typescript/JS repos.",
|
|
7
7
|
"keywords": [
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "npm run build:runtime",
|
|
57
57
|
"build:eslint-inspector:local": "npx -y @eslint/config-inspector@latest",
|
|
58
|
-
"build:runtime": "tsc -p tsconfig.build.json",
|
|
58
|
+
"build:runtime": "npx tsc -p tsconfig.build.json",
|
|
59
59
|
"build:watch": "npm run build:runtime -- --watch",
|
|
60
|
-
"changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
61
|
-
"changelog:preview": "git-cliff --config cliff.toml --unreleased",
|
|
62
|
-
"changelog:release-notes": "git-cliff --config cliff.toml --current --strip all",
|
|
63
|
-
"coverage": "vitest run --coverage",
|
|
64
|
-
"lint": "npm run build:runtime && cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
65
|
-
"lint:actions": "actionlint -config-file ActionLintConfig.yaml",
|
|
60
|
+
"changelog:generate": "npx git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
61
|
+
"changelog:preview": "npx git-cliff --config cliff.toml --unreleased",
|
|
62
|
+
"changelog:release-notes": "npx git-cliff --config cliff.toml --current --strip all",
|
|
63
|
+
"coverage": "npx vitest run --coverage",
|
|
64
|
+
"lint": "npm run build:runtime && npx cross-env NODE_OPTIONS=--max_old_space_size=8192 npx eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
65
|
+
"lint:actions": "npx actionlint -config-file ActionLintConfig.yaml",
|
|
66
66
|
"lint:all": "npm run lint && npm run typecheck && npm run test && npm run lint:prettier && npm run lint:package && npm run lint:gitleaks && npm run lint:secretlint",
|
|
67
67
|
"lint:all:fix": "npm run lint:fix && npm run lint:prettier:fix && npm run lint:package:fix && npm run typecheck && npm run test && npm run lint:secretlint",
|
|
68
68
|
"lint:all:nocache": "npm run lint:nocache && npm run typecheck && npm run test && npm run lint:prettier && npm run lint:package && npm run lint:secretlint",
|
|
@@ -72,34 +72,34 @@
|
|
|
72
72
|
"lint:config-rule-counts": "npm run build:runtime && node scripts/count-rules-by-plugin.mjs",
|
|
73
73
|
"lint:fix": "npm run lint -- --fix",
|
|
74
74
|
"lint:gitleaks": "gitleaks dir --config .gitleaks.toml .",
|
|
75
|
-
"lint:nocache": "npm run build:runtime && cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint . --no-cache",
|
|
75
|
+
"lint:nocache": "npm run build:runtime && npx cross-env NODE_OPTIONS=--max_old_space_size=8192 npx eslint . --no-cache",
|
|
76
76
|
"lint:package": "npm run lint:package-sort && npm run lint:package-json && npm run lint:package-check",
|
|
77
|
-
"lint:package:fix": "sort-package-json package.json",
|
|
77
|
+
"lint:package:fix": "npx sort-package-json package.json",
|
|
78
78
|
"lint:package:strict": "npm run package:check && npm run lint:publint && npm run lint:attw && npm run lint:package-json && npm run lint:package-sort",
|
|
79
79
|
"lint:package-check": "npm run package:check && npm run lint:publint && npm run lint:attw",
|
|
80
80
|
"lint:package-fix": "npm run lint:package:fix",
|
|
81
|
-
"lint:package-json": "npmPkgJsonLint . --config .npmpackagejsonlintrc.json",
|
|
82
|
-
"lint:package-sort": "sort-package-json --check package.json",
|
|
81
|
+
"lint:package-json": "npx npmPkgJsonLint . --config .npmpackagejsonlintrc.json",
|
|
82
|
+
"lint:package-sort": "npx sort-package-json --check package.json",
|
|
83
83
|
"lint:prettier": "npx prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --check",
|
|
84
84
|
"lint:prettier:fix": "npx prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --write",
|
|
85
|
-
"lint:publint": "publint",
|
|
85
|
+
"lint:publint": "npx publint",
|
|
86
86
|
"lint:remark": "npx remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore .",
|
|
87
87
|
"lint:remark:fix": "npx remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore . --output",
|
|
88
|
-
"lint:secretlint": "secretlint --secretlintrc .secretlintrc.cjs --secretlintignore .gitignore \"**/*\"",
|
|
89
|
-
"lint:yaml": "npm run build:runtime && eslint --cache --cache-strategy content --cache-location .cache/.eslintcache \"**/*.{yml,yaml}\"",
|
|
88
|
+
"lint:secretlint": "npx secretlint --secretlintrc .secretlintrc.cjs --secretlintignore .gitignore \"**/*\"",
|
|
89
|
+
"lint:yaml": "npm run build:runtime && npx eslint --cache --cache-strategy content --cache-location .cache/.eslintcache \"**/*.{yml,yaml}\"",
|
|
90
90
|
"lint:yaml:fix": "npm run lint:yaml -- --fix",
|
|
91
|
-
"lint:yamllint": "yamllint -c .yamllint .",
|
|
91
|
+
"lint:yamllint": "npx yamllint -c .yamllint .",
|
|
92
92
|
"package:check": "npm pack --dry-run",
|
|
93
93
|
"release:check": "npm run release:verify",
|
|
94
94
|
"release:verify": "npm run build && npm run test && npm run lint:all:nocache && npm run lint:package:strict && npm run sync:peer-eslint-range && npm run sync:peer-typescript-range && npm run sync:node-version-files",
|
|
95
95
|
"sync:node-version-files": "node scripts/sync-node-version-files.mjs",
|
|
96
96
|
"sync:peer-eslint-range": "node scripts/sync-peer-eslint-range.mjs",
|
|
97
97
|
"sync:peer-typescript-range": "node scripts/sync-peer-typescript-range.mjs",
|
|
98
|
-
"test": "npm run build:runtime && vitest run",
|
|
98
|
+
"test": "npm run build:runtime && npx vitest run",
|
|
99
99
|
"test:coverage": "npm run coverage",
|
|
100
|
-
"typecheck": "npm run build:runtime && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.eslint.json --noEmit && tsc -p tsconfig.js.json --noEmit && tsc -p tsconfig.vitest-typecheck.json --noEmit",
|
|
100
|
+
"typecheck": "npm run build:runtime && npx tsc -p tsconfig.json --noEmit && npx tsc -p tsconfig.eslint.json --noEmit && npx tsc -p tsconfig.js.json --noEmit && npx tsc -p tsconfig.vitest-typecheck.json --noEmit",
|
|
101
101
|
"typecheck:all": "npm run typecheck",
|
|
102
|
-
"types:update": "typesync",
|
|
102
|
+
"types:update": "npx typesync",
|
|
103
103
|
"update-actions": "npx actions-up --yes --style sha",
|
|
104
104
|
"update-deps": "npx ncu -i --install never && npm update --force && npm install --force && npm run sync:peer-eslint-range && npm run sync:node-version-files && npm run sync:peer-typescript-range",
|
|
105
105
|
"verify": "npm run release:verify"
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"prettier": "^3.8.4",
|
|
204
204
|
"prettier-config-nick2bad4u": "^1.0.16",
|
|
205
205
|
"publint": "^0.3.21",
|
|
206
|
-
"remark-config-nick2bad4u": "^1.0.
|
|
206
|
+
"remark-config-nick2bad4u": "^1.0.7",
|
|
207
207
|
"secretlint": "^13.0.2",
|
|
208
208
|
"secretlint-config-nick2bad4u": "^1.1.0",
|
|
209
209
|
"sort-package-json": "^4.0.0",
|