@dpuse/eslint-config-dpuse 1.0.155 → 1.1.102

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
@@ -31,9 +31,11 @@ In addition, DPUse provides [Tools](https://www.dpuse.app) used by the applicati
31
31
  This [package](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse) is available on [npm](https://www.npmjs.com/). Install it with:
32
32
 
33
33
  ```bash
34
- npm install @dpuse/eslint-config-dpuse
34
+ npm install -D @dpuse/eslint-config-dpuse eslint
35
35
  ```
36
36
 
37
+ _Requires [Node.js](https://nodejs.org/) 24 or later, [npm](https://www.npmjs.com/) 12 or later, and `eslint` 10.15.0 or later as a peer dependency._
38
+
37
39
  > [!WARNING]
38
40
  > This project is not designed for general use. It is custom built for the DPUse CI/CD process. You are welcome to clone and customise it for your own purposes, but you will need to adapt it to your own project structure and tooling.
39
41
 
@@ -45,12 +47,70 @@ cd eslint-config-dpuse
45
47
  npm install
46
48
  ```
47
49
 
48
- _Requires [Node.js](https://nodejs.org/) 24 or later, [npm](https://www.npmjs.com/) 12 or later, and [TypeScript](https://www.typescriptlang.org/) 6.0.3 or later._
50
+ _Working on the source also requires [TypeScript](https://www.typescriptlang.org/) 6.0.3 or a later 6.0 release. Later versions, including TypeScript 7, are not supported yet._
49
51
 
50
52
  This repository is managed using the common set of actions provided by [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development). See the `scripts` block in [package.json](https://github.com/dpuse/eslint-config-dpuse/blob/main/package.json) for details.
51
53
 
52
54
  <!-- USAGE_END -->
53
55
 
56
+ ## Configuration
57
+
58
+ The package uses ESLint's flat configuration format and is published as an ES module. Create `eslint.config.js` in the project root:
59
+
60
+ ```js
61
+ import { dpuseESLintConfig } from '@dpuse/eslint-config-dpuse';
62
+
63
+ export default dpuseESLintConfig({
64
+ ignores: ['generated/**'],
65
+ importCoreModules: ['cloudflare:workers'],
66
+ rules: { 'unicorn/no-array-reduce': 'off' }
67
+ });
68
+ ```
69
+
70
+ Run ESLint from the project root, where it finds `tsconfig.json`.
71
+
72
+ ### Options
73
+
74
+ | Option | Default | What it does |
75
+ | :------------------ | :------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- |
76
+ | `files` | `['eslint.config.js', 'src/**/*.ts', 'tests/**/*.ts', 'vite.config.ts', 'vitest.config.ts']` | The files linted with the type-aware TypeScript rules. |
77
+ | `ignores` | `[]` | Glob patterns to ignore, added to the folders that are always ignored. |
78
+ | `rules` | `{}` | Rule settings for the project. They are applied last, so they override the shared settings. |
79
+ | `importCoreModules` | `[]` | Module names the import rules treat as built in, such as `cloudflare:workers`. |
80
+ | `tsconfigPath` | `'./tsconfig.json'` | The `tsconfig.json` the import resolver reads. |
81
+ | `tsconfigRootDir` | `process.cwd()` | The project's root folder, where type-aware linting starts looking for each file's `tsconfig.json`. |
82
+
83
+ A project that sets up its own TypeScript parser, such as a Vue project, uses `dpuseBaseESLintConfig({ files, ignores, rules })` instead. It adds the shared plugins, rule settings and ignores, but not the TypeScript rules. `files` is required.
84
+
85
+ ### What It Includes
86
+
87
+ - [ESLint's recommended rules](https://eslint.org/docs/latest/rules/).
88
+ - [typescript-eslint](https://typescript-eslint.io)'s `strict-type-checked` and `stylistic-type-checked` configurations. Type information comes from the project service, which checks each file with its nearest `tsconfig.json`, as the editor does.
89
+ - The recommended configurations of [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn), [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) (with the TypeScript resolver), [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) and [@eslint-community/eslint-plugin-eslint-comments](https://github.com/eslint-community/eslint-plugin-eslint-comments).
90
+ - [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n)'s checks for syntax and built-in modules that the project's Node.js version does not support.
91
+ - [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier), which turns off the rules that conflict with Prettier.
92
+ - Node.js globals, such as `console` and `process`, in plain JavaScript files (`.js`, `.cjs`, `.mjs`).
93
+
94
+ The plugin rules also apply to JavaScript files outside `files`, such as `.mjs` scripts, but never to files in other languages, such as CSS. These folders are always ignored: `bundle-analysis-reports`, `dependency-check-bin`, `dependency-check-reports`, `dist` and `licenses`.
95
+
96
+ ### DPUse Rule Settings
97
+
98
+ | Rule | Setting | Why |
99
+ | :------------------------------------------------------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ |
100
+ | `sort-imports` | Warn. Groups separated by a blank line are sorted separately, ignoring case. | Imports are grouped by where they come from. |
101
+ | `import-x/no-duplicates` | Off | A long import list is split into several one-line imports from the same module. |
102
+ | `@eslint-community/eslint-comments/require-description` | Warn | A comment that switches a rule off should say why. |
103
+ | `unicorn/consistent-boolean-name` | Also allows the subject first, such as `viewportIsWide` | DPUse names a boolean after its subject, then the verb. |
104
+ | `unicorn/consistent-class-member-order` | Private methods after public methods | A private helper sits after the public methods that use it. |
105
+ | `unicorn/filename-case` | camelCase or PascalCase | Vue components use PascalCase file names. |
106
+ | `unicorn/no-asterisk-prefix-in-documentation-comments` | Off | VS Code adds the `*` prefix, and TypeScript drops it when reading the comment. |
107
+ | `unicorn/no-null` | Off | JSON uses `null`. |
108
+ | `unicorn/single-line-block-comment-style` | Off | A short block comment may stay on one line. |
109
+ | `unicorn/switch-case-braces` | Warn, no braces | A `case` needs braces only when it declares a variable. |
110
+ | `unicorn/text-encoding-identifier-case` | `utf-8`, with the dash | `utf-8` is the standard name, used by `TextDecoder` and accepted by Node.js. |
111
+ | `@typescript-eslint/no-unused-vars` | Warn. Names starting with `_` are allowed. | An underscore marks a value that exists only to be discarded. |
112
+ | `@typescript-eslint/no-unsafe-class-instance-assignment` | Off | In typescript-eslint 8.73.0 the rule overflows the stack on Vite and Rolldown plugin types. |
113
+
54
114
  <!-- DEPENDENCY_LICENSES_START -->
55
115
 
56
116
  ## Dependency Licenses
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import type { Linter } from 'eslint';
2
- /** Options accepted by the shared DPUse base ESLint configuration, common to every DPUse project regardless of framework. */
2
+ /**
3
+ * Options accepted by the shared DPUse base ESLint configuration, common to every DPUse project regardless of
4
+ * framework.
5
+ */
3
6
  export interface DPUseBaseESLintConfigOptions {
4
7
  /** Glob patterns for the files to lint. */
5
8
  files: string[];
@@ -14,13 +17,26 @@ export interface DPUseESLintConfigOptions extends Omit<DPUseBaseESLintConfigOpti
14
17
  files?: string[];
15
18
  /** Module specifiers that `import-x` should treat as resolvable core modules (e.g. `cloudflare:workers`). */
16
19
  importCoreModules?: string[];
17
- /** Path to the consuming project's `tsconfig.json`. Defaults to `./tsconfig.json`, used by every DPUse project. */
20
+ /**
21
+ * Path to the consuming project's `tsconfig.json`, used by the import resolver. Defaults to `./tsconfig.json`, used
22
+ * by every DPUse project.
23
+ */
18
24
  tsconfigPath?: string;
19
- /** The consuming project's root directory. Defaults to `process.cwd()`, correct as long as ESLint is run from the project root. */
25
+ /**
26
+ * The consuming project's root directory. Defaults to `process.cwd()`, correct as long as ESLint is run from the
27
+ * project root.
28
+ */
20
29
  tsconfigRootDir?: string;
21
30
  }
22
- /** The rules, plugins, and ignores shared by every DPUse project, TypeScript or otherwise (e.g. dpuse-app's Vue setup). */
31
+ /**
32
+ * The rules, plugins, and ignores shared by every DPUse project, TypeScript or otherwise (e.g. dpuse-app's Vue
33
+ * setup).
34
+ */
23
35
  export declare function dpuseBaseESLintConfig(options: DPUseBaseESLintConfigOptions): Linter.Config[];
36
+ /**
37
+ * The full DPUse ESLint configuration for a TypeScript project: the base configuration plus type-aware TypeScript
38
+ * rules.
39
+ */
24
40
  export declare function dpuseESLintConfig(options: DPUseESLintConfigOptions): Linter.Config[];
25
41
  export default dpuseESLintConfig;
26
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,M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K,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAUD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,CAwE5F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,CAqCpF;AAED,eAAe,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ── External Dependencies & Registrations
2
2
  import globals from 'globals';
3
- import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';
3
+ import { recommended as pluginCommentsRecommended } from '@eslint-community/eslint-plugin-eslint-comments/configs';
4
4
  import { flatConfigs as pluginImportFlatConfigs } from 'eslint-plugin-import-x';
5
5
  import pluginJS from '@eslint/js';
6
6
  import pluginN from 'eslint-plugin-n';
@@ -14,29 +14,22 @@ import { defineConfig, globalIgnores } from 'eslint/config';
14
14
  // other languages without also telling ESLint to lint code files that the project's 'files' leave out.
15
15
  const NON_CODE_FILES = ['**/*', '!**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}'];
16
16
  // ── ESLint Configuration ─────────────────────────────────────────────────────────────────────────────────────────────
17
- /** The rules, plugins, and ignores shared by every DPUse project, TypeScript or otherwise (e.g. dpuse-app's Vue setup). */
17
+ /**
18
+ * The rules, plugins, and ignores shared by every DPUse project, TypeScript or otherwise (e.g. dpuse-app's Vue
19
+ * setup).
20
+ */
18
21
  export function dpuseBaseESLintConfig(options) {
19
22
  const { files, ignores = [], rules = {} } = options;
20
23
  return defineConfig(
21
24
  // Ignores.
22
25
  globalIgnores(['bundle-analysis-reports/**', 'dependency-check-bin/**', 'dependency-check-reports/**', 'dist/**', 'licenses/**', ...ignores]),
23
- // Plugin configurations and rule overrides. Limited to code files rather than 'files', so a script outside 'files'
24
- // (e.g. a '.mjs' script) still gets the DPUse settings, while a file in another language (e.g. '.css') gets none of
25
- // these JavaScript rules, which ESLint refuses to run on it.
26
+ // Plugin configurations and rule overrides. Limited to code files rather than 'files', so a script outside
27
+ // 'files' (e.g. a '.mjs' script) still gets the DPUse settings, while a file in another language (e.g. '.css')
28
+ // gets none of these JavaScript rules, which ESLint refuses to run on it.
26
29
  {
27
30
  ignores: NON_CODE_FILES,
28
31
  extends: [
29
- {
30
- // '@eslint-community/eslint-comments' only ships a legacy config; manually convert to flat format.
31
- plugins: { '@eslint-community/eslint-comments': pluginComments },
32
- rules: {
33
- '@eslint-community/eslint-comments/disable-enable-pair': 'error',
34
- '@eslint-community/eslint-comments/no-aggregating-enable': 'error',
35
- '@eslint-community/eslint-comments/no-duplicate-disable': 'error',
36
- '@eslint-community/eslint-comments/no-unlimited-disable': 'error',
37
- '@eslint-community/eslint-comments/no-unused-enable': 'error'
38
- }
39
- },
32
+ pluginCommentsRecommended,
40
33
  pluginImportFlatConfigs.recommended,
41
34
  {
42
35
  plugins: { n: pluginN },
@@ -56,14 +49,16 @@ export function dpuseBaseESLintConfig(options) {
56
49
  'unicorn/consistent-boolean-name': [
57
50
  'error',
58
51
  {
59
- // DPUse convention: a boolean may lead with its subject, then the verb (viewportIsWide, viewportNeedsTopEdgeLine).
52
+ // DPUse convention: a boolean may lead with its subject, then the verb (viewportIsWide,
53
+ // viewportNeedsTopEdgeLine).
60
54
  ignore: ['^[a-z]+(Is|Are|Has|Have|Can|Should|Was|Were|Did|Will|Requires|Needs)[A-Z]']
61
55
  }
62
56
  ],
63
57
  'unicorn/consistent-class-member-order': [
64
58
  'error',
65
59
  {
66
- // DPUse convention: private helpers are positioned after the public methods that use them, not before.
60
+ // DPUse convention: private helpers are positioned after the public methods that use them, not
61
+ // before.
67
62
  order: ['static-field', 'static-block', 'static-method', 'private-field', 'public-field', 'constructor', 'public-method', 'private-method']
68
63
  }
69
64
  ],
@@ -87,10 +82,15 @@ export function dpuseBaseESLintConfig(options) {
87
82
  }
88
83
  });
89
84
  }
85
+ /**
86
+ * The full DPUse ESLint configuration for a TypeScript project: the base configuration plus type-aware TypeScript
87
+ * rules.
88
+ */
90
89
  export function dpuseESLintConfig(options) {
91
90
  const { files = ['eslint.config.js', 'src/**/*.ts', 'tests/**/*.ts', 'vite.config.ts', 'vitest.config.ts'], ignores = [], importCoreModules = [], rules = {}, tsconfigPath = './tsconfig.json', tsconfigRootDir: tsconfigRootDirectory = process.cwd() } = options;
92
91
  return defineConfig(
93
- // ESLint's own recommended rules. Before the TypeScript configs, which switch off the ones TypeScript checks better.
92
+ // ESLint's own recommended rules. Before the TypeScript configs, which switch off the ones TypeScript checks
93
+ // better.
94
94
  { ignores: NON_CODE_FILES, extends: [pluginJS.configs.recommended] },
95
95
  // Plain JavaScript files in DPUse projects are Node scripts, so their Node globals ('console', 'process') are
96
96
  // declared. TypeScript files need none, because TypeScript checks names itself.
@@ -100,7 +100,8 @@ export function dpuseESLintConfig(options) {
100
100
  files,
101
101
  extends: [...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked],
102
102
  languageOptions: {
103
- parserOptions: { project: tsconfigPath, tsconfigRootDir: tsconfigRootDirectory }
103
+ // The project service type-checks each file with its nearest 'tsconfig.json', as the editor does.
104
+ parserOptions: { projectService: true, tsconfigRootDir: tsconfigRootDirectory }
104
105
  },
105
106
  settings: {
106
107
  'import-x/core-modules': importCoreModules,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,WAAW,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC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,EAAE;gBACjB,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE;aAC1C;SACJ;KACJ,EAED,GAAG,qBAAqB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CACtD,CAAC;AACN,CAAC;AAED,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/eslint-config-dpuse",
3
- "version": "1.0.155",
3
+ "version": "1.1.102",
4
4
  "private": false,
5
5
  "description": "Common ESLint configuration used across DPUse projects.",
6
6
  "license": "MIT",
@@ -67,13 +67,12 @@
67
67
  "typescript-eslint": "^8.73.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@dpuse/dpuse-development": "^1.0.160",
70
+ "@dpuse/dpuse-development": "^1.0.164",
71
71
  "@types/node": "^26.6.6",
72
72
  "@vitest/coverage-v8": "^5.1.1",
73
73
  "eslint": "^10.15.0",
74
74
  "prettier": "^3.10.1",
75
75
  "typescript": "^6.0.3",
76
- "typescript-eslint": "^8.73.0",
77
76
  "vitest": "^5.1.1"
78
77
  }
79
78
  }