@stackrb/eslint-config 0.0.0-stage → 0.1.0

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 (52) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +21 -0
  3. package/README.md +127 -2
  4. package/dist/configs/base.d.ts +10 -0
  5. package/dist/configs/base.d.ts.map +1 -0
  6. package/dist/configs/base.js +104 -0
  7. package/dist/configs/base.js.map +1 -0
  8. package/dist/configs/languages.d.ts +25 -0
  9. package/dist/configs/languages.d.ts.map +1 -0
  10. package/dist/configs/languages.js +74 -0
  11. package/dist/configs/languages.js.map +1 -0
  12. package/dist/configs/misc.d.ts +18 -0
  13. package/dist/configs/misc.d.ts.map +1 -0
  14. package/dist/configs/misc.js +38 -0
  15. package/dist/configs/misc.js.map +1 -0
  16. package/dist/configs/playwright.d.ts +7 -0
  17. package/dist/configs/playwright.d.ts.map +1 -0
  18. package/dist/configs/playwright.js +15 -0
  19. package/dist/configs/playwright.js.map +1 -0
  20. package/dist/configs/shell.d.ts +7 -0
  21. package/dist/configs/shell.d.ts.map +1 -0
  22. package/dist/configs/shell.js +17 -0
  23. package/dist/configs/shell.js.map +1 -0
  24. package/dist/constants.d.ts +8 -0
  25. package/dist/constants.d.ts.map +1 -0
  26. package/dist/constants.js +17 -0
  27. package/dist/constants.js.map +1 -0
  28. package/dist/index.d.ts +39 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +121 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/targets/mobile.d.ts +12 -0
  33. package/dist/targets/mobile.d.ts.map +1 -0
  34. package/dist/targets/mobile.js +48 -0
  35. package/dist/targets/mobile.js.map +1 -0
  36. package/dist/targets/react.d.ts +7 -0
  37. package/dist/targets/react.d.ts.map +1 -0
  38. package/dist/targets/react.js +25 -0
  39. package/dist/targets/react.js.map +1 -0
  40. package/dist/targets/runtime.d.ts +1293 -0
  41. package/dist/targets/runtime.d.ts.map +1 -0
  42. package/dist/targets/runtime.js +36 -0
  43. package/dist/targets/runtime.js.map +1 -0
  44. package/dist/types.d.ts +44 -0
  45. package/dist/types.d.ts.map +1 -0
  46. package/dist/types.js +2 -0
  47. package/dist/types.js.map +1 -0
  48. package/dist/version.d.ts +2 -0
  49. package/dist/version.d.ts.map +1 -0
  50. package/dist/version.js +2 -0
  51. package/dist/version.js.map +1 -0
  52. package/package.json +105 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,46 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@stackrb/eslint-config` are recorded in this file. The format follows Keep a Changelog conventions and the project adheres to Semantic Versioning.
4
+
5
+ ## 0.1.0 - 2026-11-25
6
+
7
+ Initial public release.
8
+
9
+ ### Added
10
+
11
+ - `createConfig(options)` for building a complete `Linter.Config[]` from options.
12
+ - A default export equal to `createConfig()` — the one-import API: `export { default } from '@stackrb/eslint-config';`.
13
+ - A `plugin` facade with `configs.recommended`, `configs.node`, `configs.browser`, `configs.react`, `configs.native`, and `configs.expo`.
14
+ - Five targets: `node`, `browser`, `react`, `native`, and `expo`, with `native` building on `react` and `expo` building on `native`.
15
+ - Options: `target`, `extraIgnores`, `nodeVersion`, `typed`, `deprecations`, `bannedDependencies`, `extraGlobals`, and `extraRules`.
16
+ - Named partial exports for composition: `ignores`, `base`, `javascript`, `typescript`, `tests`, `playwright`, `data`, `markdown`, `shell`, `prettier`, `node`, `browser`, `react`, `native`, and `expo`.
17
+ - Exported types: `Options`, `Target`, `DeprecationRule`, `DeprecationKind`, and `GlobalValue`.
18
+ - Coverage for JavaScript, TypeScript, Vitest and Playwright test files, JSON/JSONC/JSON5, Markdown, and shell scripts (`.sh`, `.bash`), plus type-aware linting via `parserOptions.projectService`.
19
+ - `plugin.meta` exposes `namespace: 'stackrb'` and `version` (read from `package.json`) alongside `name`.
20
+ - The global-ignores config block is named `stackrb/ignores` instead of a generated `globalIgnores N` name.
21
+ - Shell linting via `@eslint/shell` with `shell/recommended`, always enabled for shell files.
22
+ - Playwright linting via `eslint-plugin-playwright`'s `flat/recommended`, always enabled for test files.
23
+ - Generated API reference under `docs/api/`, produced from JSDoc by `mdaics` via the `docs` script, with a `docs:check` CI guard.
24
+ - Documentation: this changelog, a README, a tutorial, how-to, reference, explanation, generated API pages, and a runnable consumer example.
25
+ - Development tooling: Husky pre-commit and commit-msg hooks, commitlint with the conventional preset, and Knip for unused code/dependency checks.
26
+
27
+ ### Changed
28
+
29
+ - `plugin.configs.node` reuses the default export array instead of building a separate, structurally identical array. Treat returned configs as immutable.
30
+ - Untyped TypeScript configs omit the empty `languageOptions` object; merged rule and parser behavior is unchanged.
31
+
32
+ ### Fixed
33
+
34
+ These issues were corrected before the first published release:
35
+
36
+ - `JS_FILES` matches JavaScript files (`js`, `jsx`, `mjs`, `cjs`) instead of pointing at TypeScript files.
37
+ - The test-file glob typo was fixed, so `TEST_FILES` matches `*.test.*` and `*.spec.*` files with code extensions (`js`, `jsx`, `mjs`, `cjs`, `ts`, `tsx`, `mts`, `cts`) — not every `*.test.*` filename.
38
+ - Vitest rules are genuinely enabled on test files.
39
+ - `eslint-plugin-unicorn`, `@stylistic/eslint-plugin`, `eslint-plugin-depend`, and `eslint-plugin-deprecate` are functional, with dependency bans and deprecation checks driven by the `bannedDependencies` and `deprecations` options.
40
+ - `@eslint-community/eslint-comments/no-unused-disable` was replaced with ESLint's core `linterOptions.reportUnusedDisableDirectives: true`; the other three eslint-comments rules remain enabled.
41
+ - Cumulative targets are deduplicated: `['native', 'expo']` produces a single `expo` chain containing the `react`, `native`, and `expo` blocks rather than overlapping duplicate chains.
42
+ - `extraGlobals` and `extraRules` are scoped to `CODE_FILES`, and `extraRules` is applied after Prettier so overrides win without affecting JSON or Markdown linting.
43
+ - `unicorn/no-asterisk-prefix-in-documentation-comments` is off to avoid circular autofixes with `jsdoc/check-alignment`.
44
+ - A `deprecations` entry no longer crashes when `use` is omitted; a bare `{ name: 'oldApi' }` entry is accepted.
45
+ - Shared globals are hoisted during config assembly, making non-node config construction roughly an order of magnitude faster.
46
+ - The source was consolidated from 19 to 10 modules without changing the public API or emitted rules.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 stackrb
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,128 @@
1
- # Temporary Holding Version
1
+ # @stackrb/eslint-config
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ One-import ESLint flat config for Node.js, browser, React, React Native, and Expo projects.
4
+
5
+ Instead of assembling a dozen plugins, presets, and glob patterns yourself, you import one value and export it as your ESLint config. JavaScript, TypeScript, tests (Vitest and Playwright), JSON, Markdown, and shell scripts are all covered. You pick a runtime target (or several) and can optionally enable type-aware linting, deprecation checks, and dependency bans. Shell files (`.sh`, `.bash`) always get `@eslint/shell`'s recommended ShellCheck-inspired rules, regardless of target.
6
+
7
+ ## Requirements
8
+
9
+ | Requirement | Version |
10
+ | --- | --- |
11
+ | Node.js | `^20.19.0 \|\| ^22.13.0 \|\| >=24` |
12
+ | ESLint (peer) | `>=10.4.0` |
13
+ | TypeScript (optional peer) | `>=4.8.4 <6.1.0` |
14
+
15
+ TypeScript is only needed to lint `.ts`/`.tsx` files and to use type-aware mode (`typed: true`). See the [reference](docs/reference.md#requirements) for the authoritative constraints.
16
+
17
+ ## Install
18
+
19
+ ```sh
20
+ npm install --save-dev eslint @stackrb/eslint-config
21
+ ```
22
+
23
+ The package brings its own lint plugins as dependencies — you do not install them individually. The published package contains `dist`, `README.md`, `CHANGELOG.md`, and `LICENSE`. Consumers do not need `legacy-peer-deps`: this repository sets it in its own `.npmrc` only because ESLint and the stale-peer plugins are direct dependencies of its development install. See [Compatibility caveats](docs/explanation.md#compatibility-caveats).
24
+
25
+ ## 30-second tutorial
26
+
27
+ 1. Create `eslint.config.mjs` at the root of your project:
28
+
29
+ ```js
30
+ export { default } from '@stackrb/eslint-config';
31
+ ```
32
+
33
+ This is the same one-import API, re-exported directly. The direct re-export avoids `unicorn/prefer-export-from`, which would otherwise fire on `eslint.config.mjs` when this config lints its own config file. The default export is `createConfig()` with no options, which targets `node`.
34
+
35
+ 2. Lint your code:
36
+
37
+ ```sh
38
+ npx eslint .
39
+ ```
40
+
41
+ That's the complete setup. For a lesson that goes from an empty folder to a fixed TypeScript file, see [the tutorial](docs/tutorial.md).
42
+
43
+ ## Pick a target
44
+
45
+ The default is `node`. Pass `target` to `createConfig` to choose another runtime:
46
+
47
+ ```js
48
+ import { createConfig } from '@stackrb/eslint-config';
49
+
50
+ export default createConfig({ target: 'browser' });
51
+ ```
52
+
53
+ Several runtimes can be combined:
54
+
55
+ ```js
56
+ export default createConfig({ target: ['node', 'browser'] });
57
+ ```
58
+
59
+ Available targets: `node`, `browser`, `react`, `native`, `expo`. The last three are cumulative — `expo` includes `native`, which includes `react` — and overlapping targets are deduplicated automatically: `{ target: ['native', 'expo'] }` collapses to a single `expo` target whose chain contains the `react`, `native`, and `expo` blocks (not just one block). Independent runtimes such as `['node', 'browser']` are both applied. See [Targets](docs/reference.md#targets) for the full list.
60
+
61
+ The same presets are available through the plugin facade if your tooling expects that shape:
62
+
63
+ ```js
64
+ import { plugin } from '@stackrb/eslint-config';
65
+
66
+ export default plugin.configs.react;
67
+ ```
68
+
69
+ `plugin.configs` also exposes `recommended` (identical to the default export), `node`, `browser`, `react`, `native`, and `expo`.
70
+
71
+ Already have an `eslint.config.mjs`? [Spread this config into it](docs/how-to-integrate.md#add-the-config-to-an-existing-eslint-config) and keep your own blocks last so their rules win.
72
+
73
+ ## Options at a glance
74
+
75
+ | Option | One-line purpose |
76
+ | --- | --- |
77
+ | `target` | Runtime(s) to lint for; defaults to `node`. |
78
+ | `extraIgnores` | Additional global ignore patterns. |
79
+ | `nodeVersion` | Override `settings.node.version` (default `>=20.19.0`). |
80
+ | `typed` | Enable type-aware rules with `parserOptions.projectService`. |
81
+ | `deprecations` | Symbols that `eslint-plugin-deprecate` should report. |
82
+ | `bannedDependencies` | Dependency names/patterns that `eslint-plugin-depend` should ban. |
83
+ | `extraGlobals` | Ambient globals for code files. |
84
+ | `extraRules` | Final rule overrides for code files, applied after every preset including Prettier. |
85
+
86
+ This table is a summary; [the reference](docs/reference.md#options) is the exhaustive source for types, defaults, and semantics, and the [how-to guide](docs/how-to-integrate.md) has worked examples.
87
+
88
+ ## Scripts (this repository)
89
+
90
+ These scripts develop and verify the package itself; consuming projects do not need them.
91
+
92
+ | Script | Command |
93
+ | --- | --- |
94
+ | `build` | `node scripts/clean-distribution.mjs && tsc -p tsconfig.build.json` |
95
+ | `typecheck` | `tsc --noEmit` |
96
+ | `test` | `vitest run test/unit test/integration test/e2e test/memory` |
97
+ | `test:unit` | `vitest run test/unit` |
98
+ | `test:integration` | `vitest run test/integration` |
99
+ | `test:e2e` | `vitest run test/e2e` |
100
+ | `test:memory` | `vitest run test/memory` |
101
+ | `test:perf` | `vitest bench --run test/performance` |
102
+ | `lint` | `npm run build && eslint .` |
103
+ | `knip` | `knip` — report unused files, dependencies, and exports |
104
+ | `prepare` | `husky` — install the Git hooks on a local install |
105
+ | `docs` | `npm run build && mdaics && node scripts/clean-api-documents.mjs` |
106
+ | `docs:check` | regenerate the API reference and fail if it differs from the committed files |
107
+ | `audit` | `npm audit --audit-level=high` |
108
+ | `check` | `npm run typecheck && npm run test && npm run lint && npm run audit` |
109
+
110
+ Generating docs requires Node.js `>=22.17` (the `mdaics` dev dependency). Consumers are unaffected.
111
+
112
+ ### Git hooks
113
+
114
+ `npm install` runs `husky`, which configures two hooks:
115
+
116
+ - `pre-commit` → `npm run typecheck && npm run lint && npm run knip`
117
+ - `commit-msg` → `commitlint --edit` with `@commitlint/config-conventional`, so messages such as `feat: add a target` are required
118
+
119
+ Set `HUSKY=0` to skip hook installation when you don't want them.
120
+
121
+ ## Documentation
122
+
123
+ - [Tutorial](docs/tutorial.md) — learn by linting a TypeScript file from scratch.
124
+ - [How-to guide](docs/how-to-integrate.md) — recipes for integrating and customising the config.
125
+ - [Reference](docs/reference.md) — every option, export, glob, ignore, and rule source.
126
+ - [Explanation](docs/explanation.md) — design decisions and compatibility notes.
127
+ - [Generated API reference](docs/api/index.md) — one page per source module, produced from JSDoc by `mdaics` with `src:` and `dist:` line pointers. Run `npm run docs` after changing the public API.
128
+ - [Consumer example](examples/consumer/README.md) — the one-import setup and how to extend an existing flat config.
@@ -0,0 +1,10 @@
1
+ import type { Linter } from 'eslint';
2
+ import type { Options } from '../types.js';
3
+ export declare function bannedDependenciesRule(modules: readonly string[]): Linter.RulesRecord;
4
+ /**
5
+ * Builds the shared base config: TypeScript parser, Node settings and common plugin presets.
6
+ * @param options - Node version, deprecation and dependency-ban options.
7
+ * @returns The base config blocks.
8
+ */
9
+ export declare function base(options?: Options): Linter.Config[];
10
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAmBrC,OAAO,KAAK,EAAoC,OAAO,EAAE,MAAM,aAAa,CAAC;AAI7E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,WAAW,CAErF;AA4BD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CA2D3D"}
@@ -0,0 +1,104 @@
1
+ import deslint from '@deslint/eslint-plugin';
2
+ import eslintComments from '@eslint-community/eslint-plugin-eslint-comments';
3
+ import js from '@eslint/js';
4
+ import stylistic from '@stylistic/eslint-plugin';
5
+ import typescriptEslintParser from '@typescript-eslint/parser';
6
+ import deMorgan from 'eslint-plugin-de-morgan';
7
+ import depend from 'eslint-plugin-depend';
8
+ import deprecate from 'eslint-plugin-deprecate';
9
+ import node from 'eslint-plugin-n';
10
+ import perfectionist from 'eslint-plugin-perfectionist';
11
+ import promise from 'eslint-plugin-promise';
12
+ import regexp from 'eslint-plugin-regexp';
13
+ import security from 'eslint-plugin-security';
14
+ import sonarjs from 'eslint-plugin-sonarjs';
15
+ import unicorn from 'eslint-plugin-unicorn';
16
+ import { defineConfig } from 'eslint/config';
17
+ import { CODE_FILES, DEFAULT_NODE_VERSION } from '../constants.js';
18
+ export function bannedDependenciesRule(modules) {
19
+ return { 'depend/ban-dependencies': ['error', { modules: [...modules] }] };
20
+ }
21
+ const DEPRECATION_KINDS = {
22
+ function: true,
23
+ import: true,
24
+ 'member-expression': true,
25
+ };
26
+ function deprecateRules(deprecations) {
27
+ const rules = {};
28
+ for (const item of deprecations) {
29
+ const kind = item.kind ?? 'function';
30
+ if (!Object.hasOwn(DEPRECATION_KINDS, kind)) {
31
+ continue;
32
+ }
33
+ const name = `deprecate/${kind}`;
34
+ // eslint-plugin-deprecate@0.9 rejects object options without `use`; bare strings are accepted.
35
+ const option = item.use === undefined ? item.name : { name: item.name, use: item.use };
36
+ const current = rules[name];
37
+ const previous = Array.isArray(current) ? current.slice(1) : [];
38
+ rules[name] = ['error', ...previous, option];
39
+ }
40
+ return rules;
41
+ }
42
+ /**
43
+ * Builds the shared base config: TypeScript parser, Node settings and common plugin presets.
44
+ * @param options - Node version, deprecation and dependency-ban options.
45
+ * @returns The base config blocks.
46
+ */
47
+ export function base(options = {}) {
48
+ const rules = {};
49
+ if (options.bannedDependencies?.length) {
50
+ Object.assign(rules, bannedDependenciesRule(options.bannedDependencies));
51
+ }
52
+ if (options.deprecations?.length) {
53
+ Object.assign(rules, deprecateRules(options.deprecations));
54
+ }
55
+ return defineConfig({
56
+ extends: [
57
+ 'js/recommended',
58
+ 'n/recommended-module',
59
+ deslint.configs.recommended,
60
+ deMorgan.configs.recommended,
61
+ sonarjs.configs.recommended,
62
+ security.configs.recommended,
63
+ regexp.configs.recommended,
64
+ promise.configs['flat/recommended'],
65
+ perfectionist.configs['recommended-natural'],
66
+ unicorn.configs.recommended,
67
+ stylistic.configs.recommended,
68
+ ],
69
+ files: [CODE_FILES],
70
+ languageOptions: {
71
+ parser: typescriptEslintParser,
72
+ parserOptions: {
73
+ ecmaVersion: 'latest',
74
+ sourceType: 'module',
75
+ },
76
+ },
77
+ linterOptions: {
78
+ reportUnusedDisableDirectives: true,
79
+ },
80
+ name: 'stackrb/base',
81
+ plugins: {
82
+ '@eslint-community/eslint-comments': eslintComments,
83
+ '@stylistic': stylistic,
84
+ depend,
85
+ deprecate,
86
+ js,
87
+ n: node,
88
+ unicorn,
89
+ },
90
+ rules: {
91
+ '@eslint-community/eslint-comments/no-duplicate-disable': 'error',
92
+ '@eslint-community/eslint-comments/no-unlimited-disable': 'error',
93
+ '@eslint-community/eslint-comments/no-unused-enable': 'error',
94
+ // jsdoc/check-alignment adds the asterisks this Unicorn rule strips, so
95
+ // enabling both creates circular autofixes in downstream projects.
96
+ 'unicorn/no-asterisk-prefix-in-documentation-comments': 'off',
97
+ ...rules,
98
+ },
99
+ settings: {
100
+ node: { version: options.nodeVersion ?? DEFAULT_NODE_VERSION },
101
+ },
102
+ });
103
+ }
104
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ import type { Linter } from 'eslint';
2
+ import type { Options } from '../types.js';
3
+ /**
4
+ * Builds JSDoc rules for JavaScript files.
5
+ * @returns The JavaScript config blocks.
6
+ */
7
+ export declare function javascript(): Linter.Config[];
8
+ /**
9
+ * Builds TypeScript rules, optionally with type-aware checks.
10
+ * @param options - Set `typed` to enable `parserOptions.projectService`.
11
+ * @returns The TypeScript config blocks.
12
+ */
13
+ export declare function typescript(options?: Options): Linter.Config[];
14
+ /**
15
+ * Builds the JSON, JSONC and JSON5 language configs.
16
+ * @param options - Banned dependencies are enforced on `.json` files only.
17
+ * @returns The data-file config blocks.
18
+ */
19
+ export declare function data(options?: Options): Linter.Config[];
20
+ /**
21
+ * Builds the GFM Markdown config.
22
+ * @returns The Markdown config blocks.
23
+ */
24
+ export declare function markdown(): Linter.Config[];
25
+ //# sourceMappingURL=languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/configs/languages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,CAM5C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,OAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CAWjE;AAQD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CAiB3D;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,CAQ1C"}
@@ -0,0 +1,74 @@
1
+ import json from '@eslint/json';
2
+ import eslintMarkdown from '@eslint/markdown';
3
+ import depend from 'eslint-plugin-depend';
4
+ import { jsdoc } from 'eslint-plugin-jsdoc';
5
+ import { defineConfig } from 'eslint/config';
6
+ import tseslint from 'typescript-eslint';
7
+ import { JS_FILES, TS_FILES } from '../constants.js';
8
+ import { bannedDependenciesRule } from './base.js';
9
+ /**
10
+ * Builds JSDoc rules for JavaScript files.
11
+ * @returns The JavaScript config blocks.
12
+ */
13
+ export function javascript() {
14
+ return defineConfig({
15
+ extends: [jsdoc({ config: 'flat/recommended' })],
16
+ files: [JS_FILES],
17
+ name: 'stackrb/javascript',
18
+ });
19
+ }
20
+ /**
21
+ * Builds TypeScript rules, optionally with type-aware checks.
22
+ * @param options - Set `typed` to enable `parserOptions.projectService`.
23
+ * @returns The TypeScript config blocks.
24
+ */
25
+ export function typescript(options = {}) {
26
+ return defineConfig({
27
+ extends: [
28
+ tseslint.configs.recommended,
29
+ jsdoc({ config: 'flat/recommended-tsdoc' }),
30
+ ...(options.typed === true ? [tseslint.configs.recommendedTypeChecked] : []),
31
+ ],
32
+ files: [TS_FILES],
33
+ ...(options.typed === true && { languageOptions: { parserOptions: { projectService: true } } }),
34
+ name: 'stackrb/typescript',
35
+ });
36
+ }
37
+ const JSON_LANGUAGES = [
38
+ { extension: 'json', language: 'json/json' },
39
+ { extension: 'jsonc', language: 'json/jsonc' },
40
+ { extension: 'json5', language: 'json/json5' },
41
+ ];
42
+ /**
43
+ * Builds the JSON, JSONC and JSON5 language configs.
44
+ * @param options - Banned dependencies are enforced on `.json` files only.
45
+ * @returns The data-file config blocks.
46
+ */
47
+ export function data(options = {}) {
48
+ const banned = options.bannedDependencies?.length ? bannedDependenciesRule(options.bannedDependencies) : undefined;
49
+ return defineConfig(JSON_LANGUAGES.map(({ extension, language }) => {
50
+ const common = {
51
+ extends: ['json/recommended'],
52
+ files: [`**/*.${extension}`],
53
+ language,
54
+ name: `stackrb/${extension}`,
55
+ };
56
+ return extension === 'json' && banned !== undefined
57
+ ? { ...common, plugins: { depend, json }, rules: banned }
58
+ : { ...common, plugins: { json } };
59
+ }));
60
+ }
61
+ /**
62
+ * Builds the GFM Markdown config.
63
+ * @returns The Markdown config blocks.
64
+ */
65
+ export function markdown() {
66
+ return defineConfig({
67
+ extends: ['markdown/recommended'],
68
+ files: ['**/*.md'],
69
+ language: 'markdown/gfm',
70
+ name: 'stackrb/markdown',
71
+ plugins: { markdown: eslintMarkdown },
72
+ });
73
+ }
74
+ //# sourceMappingURL=languages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/configs/languages.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import type { Linter } from 'eslint';
2
+ /**
3
+ * Builds the global-ignores block from the default patterns plus extras.
4
+ * @param extra - Additional glob patterns to ignore.
5
+ * @returns The named global-ignores block.
6
+ */
7
+ export declare function ignores(extra?: readonly string[]): Linter.Config[];
8
+ /**
9
+ * Builds the final compatibility config that disables stylistic rule conflicts.
10
+ * @returns The Prettier compatibility block.
11
+ */
12
+ export declare function prettier(): Linter.Config[];
13
+ /**
14
+ * Builds Vitest rules and globals for test files.
15
+ * @returns The test-file config blocks.
16
+ */
17
+ export declare function tests(): Linter.Config[];
18
+ //# sourceMappingURL=misc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/configs/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAAC,MAAM,EAAE,CAEtE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,CAK1C;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAUvC"}
@@ -0,0 +1,38 @@
1
+ import vitest from '@vitest/eslint-plugin';
2
+ import prettierConfig from 'eslint-config-prettier/flat';
3
+ import { defineConfig, globalIgnores } from 'eslint/config';
4
+ import { DEFAULT_IGNORES, TEST_FILES } from '../constants.js';
5
+ /**
6
+ * Builds the global-ignores block from the default patterns plus extras.
7
+ * @param extra - Additional glob patterns to ignore.
8
+ * @returns The named global-ignores block.
9
+ */
10
+ export function ignores(extra = []) {
11
+ return [globalIgnores([...DEFAULT_IGNORES, ...extra], 'stackrb/ignores')];
12
+ }
13
+ /**
14
+ * Builds the final compatibility config that disables stylistic rule conflicts.
15
+ * @returns The Prettier compatibility block.
16
+ */
17
+ export function prettier() {
18
+ return defineConfig({
19
+ ...prettierConfig,
20
+ name: 'stackrb/prettier',
21
+ });
22
+ }
23
+ /**
24
+ * Builds Vitest rules and globals for test files.
25
+ * @returns The test-file config blocks.
26
+ */
27
+ export function tests() {
28
+ return defineConfig({
29
+ extends: [vitest.configs.recommended],
30
+ files: [TEST_FILES],
31
+ languageOptions: {
32
+ globals: vitest.environments.env.globals,
33
+ },
34
+ name: 'stackrb/tests',
35
+ plugins: { vitest },
36
+ });
37
+ }
38
+ //# sourceMappingURL=misc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/configs/misc.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,QAA2B,EAAE;IACnD,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,eAAe,EAAE,GAAG,KAAK,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAC5E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,YAAY,CAAC;QAClB,GAAG,cAAc;QACjB,IAAI,EAAE,kBAAkB;KACzB,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,KAAK;IACnB,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;QACrC,KAAK,EAAE,CAAC,UAAU,CAAC;QACnB,eAAe,EAAE;YACf,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO;SACzC;QACD,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,EAAE,MAAM,EAAE;KACpB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Linter } from 'eslint';
2
+ /**
3
+ * Builds Playwright rules for test files, always enabling the recommended preset.
4
+ * @returns The Playwright config blocks.
5
+ */
6
+ export declare function playwrightConfig(): Linter.Config[];
7
+ //# sourceMappingURL=playwright.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../src/configs/playwright.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOrC;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,CAMlD"}
@@ -0,0 +1,15 @@
1
+ import playwright from 'eslint-plugin-playwright';
2
+ import { defineConfig } from 'eslint/config';
3
+ import { TEST_FILES } from '../constants.js';
4
+ /**
5
+ * Builds Playwright rules for test files, always enabling the recommended preset.
6
+ * @returns The Playwright config blocks.
7
+ */
8
+ export function playwrightConfig() {
9
+ return defineConfig({
10
+ extends: [playwright.configs['flat/recommended']],
11
+ files: [TEST_FILES],
12
+ name: 'stackrb/playwright',
13
+ });
14
+ }
15
+ //# sourceMappingURL=playwright.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../src/configs/playwright.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QACjD,KAAK,EAAE,CAAC,UAAU,CAAC;QACnB,IAAI,EAAE,oBAAoB;KAC3B,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Linter } from 'eslint';
2
+ /**
3
+ * Builds the shell language config, always enabling the plugin's recommended rules.
4
+ * @returns The shell config blocks.
5
+ */
6
+ export declare function shellConfig(): Linter.Config[];
7
+ //# sourceMappingURL=shell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/configs/shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAO7C;;;GAGG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,CAQ7C"}
@@ -0,0 +1,17 @@
1
+ import shell from '@eslint/shell';
2
+ import { defineConfig } from 'eslint/config';
3
+ import { SHELL_FILES } from '../constants.js';
4
+ /**
5
+ * Builds the shell language config, always enabling the plugin's recommended rules.
6
+ * @returns The shell config blocks.
7
+ */
8
+ export function shellConfig() {
9
+ return defineConfig({
10
+ extends: ['shell/recommended'],
11
+ files: [SHELL_FILES],
12
+ name: 'stackrb/shell',
13
+ // @eslint/shell ships its own ESLint types, which do not match ESLint 10's Plugin type.
14
+ plugins: { shell: shell },
15
+ });
16
+ }
17
+ //# sourceMappingURL=shell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/configs/shell.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,mBAAmB,CAAC;QAC9B,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,IAAI,EAAE,eAAe;QACrB,wFAAwF;QACxF,OAAO,EAAE,EAAE,KAAK,EAAE,KAAiC,EAAE;KACtD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const JS_FILES = "**/*.{js,jsx,mjs,cjs}";
2
+ export declare const TS_FILES = "**/*.{ts,tsx,mts,cts}";
3
+ export declare const CODE_FILES = "**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}";
4
+ export declare const TEST_FILES = "**/*.*{test,spec}.{js,jsx,mjs,cjs,ts,tsx,mts,cts}";
5
+ export declare const SHELL_FILES = "**/*.{sh,bash}";
6
+ export declare const DEFAULT_IGNORES: readonly string[];
7
+ export declare const DEFAULT_NODE_VERSION = ">=20.19.0";
8
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,0BAA0B,CAAC;AAChD,eAAO,MAAM,QAAQ,0BAA0B,CAAC;AAChD,eAAO,MAAM,UAAU,yCAAyC,CAAC;AACjE,eAAO,MAAM,UAAU,sDAAsD,CAAC;AAC9E,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAE5C,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAS5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAAc,CAAC"}
@@ -0,0 +1,17 @@
1
+ export const JS_FILES = '**/*.{js,jsx,mjs,cjs}';
2
+ export const TS_FILES = '**/*.{ts,tsx,mts,cts}';
3
+ export const CODE_FILES = '**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}';
4
+ export const TEST_FILES = '**/*.*{test,spec}.{js,jsx,mjs,cjs,ts,tsx,mts,cts}';
5
+ export const SHELL_FILES = '**/*.{sh,bash}';
6
+ export const DEFAULT_IGNORES = [
7
+ '**/node_modules/**',
8
+ '**/dist/**',
9
+ '**/build/**',
10
+ '**/coverage/**',
11
+ '**/cache/**',
12
+ '**/package-lock.json',
13
+ '**/.*/**',
14
+ '**/.*',
15
+ ];
16
+ export const DEFAULT_NODE_VERSION = '>=20.19.0';
17
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,CAAC;AAChD,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,CAAC;AAChD,MAAM,CAAC,MAAM,UAAU,GAAG,sCAAsC,CAAC;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,mDAAmD,CAAC;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAE5C,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,oBAAoB;IACpB,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,sBAAsB;IACtB,UAAU;IACV,OAAO;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC"}