@ddd-ts-kit/eslint-plugin 0.113.1 → 0.114.1

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.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:328d0d9f75ac0088 -->
2
+ <!-- translation-of: README.md sha256:211de62fa18753e0 -->
3
3
 
4
4
  # @ddd-ts-kit/eslint-plugin
5
5
 
@@ -13,7 +13,7 @@ Chaque règle lit `ddd-ts-kit.config.json` ([docs/CONFIG.fr.md](../../docs/CONFI
13
13
  remontant depuis le fichier analysé, et classe le fichier en contexte et en couche exactement comme
14
14
  le fait `ddd-ts-kit check`. Elle y lit aussi `stack.style` : voir [Les deux styles](#les-deux-styles).
15
15
 
16
- ![ESLint passe un fichier au plugin ; le plugin remonte jusqu'à ddd-ts-kit.config.json, classe le fichier comme le fait ddd-ts-kit check (contexte billing, couche application, pas un fichier de test), exécute chaque règle sur son arbre syntaxique à la sévérité que la config donne à son identifiant, et signale la ligne, le problème, quoi écrire à la place et la règle](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-how-a-file-is-judged.fr.svg)
16
+ ![ESLint passe un fichier au plugin ; le plugin remonte jusqu'à ddd-ts-kit.config.json, classe le fichier comme le fait ddd-ts-kit check (contexte billing, couche application, pas un fichier de test), exécute chaque règle sur son arbre syntaxique à la sévérité que la config donne à son identifiant, et signale la ligne, le problème, quoi écrire à la place et la règle](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-how-a-file-is-judged.fr.svg)
17
17
 
18
18
  ## Installation
19
19
 
@@ -428,7 +428,7 @@ Deux outils, un seul jeu d'identifiants, aucun recouvrement d'autorité. Un troi
428
428
  dependency-cruiser, ne lit pas la config : il s'exécute sur un fichier qui en est généré, avec ses
429
429
  propres noms de règle.
430
430
 
431
- ![Le plugin et ddd-ts-kit check lisent ddd-ts-kit.config.json à l'exécution et en partagent les identifiants de règle, les sévérités et les commentaires de désactivation : le plugin juge un fichier source à la fois sur son arbre syntaxique et a raison quand il diverge du checker ; le checker juge ce qui dépasse un fichier, l'arborescence, les noms, les glossaires, la config et le barrel ; dependency-cruiser ne s'exécute que sur le .dependency-cruiser.cjs que depcruise-config --write génère à partir de la config et juge le graphe des imports résolu avec ses propres noms de règle, toujours en sévérité error, sans tenir compte des commentaires de désactivation](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-two-tools.fr.svg)
431
+ ![Le plugin et ddd-ts-kit check lisent ddd-ts-kit.config.json à l'exécution et en partagent les identifiants de règle, les sévérités et les commentaires de désactivation : le plugin juge un fichier source à la fois sur son arbre syntaxique et a raison quand il diverge du checker ; le checker juge ce qui dépasse un fichier, l'arborescence, les noms, les glossaires, la config et le barrel ; dependency-cruiser ne s'exécute que sur le .dependency-cruiser.cjs que depcruise-config --write génère à partir de la config et juge le graphe des imports résolu avec ses propres noms de règle, toujours en sévérité error, sans tenir compte des commentaires de désactivation](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-two-tools.fr.svg)
432
432
 
433
433
  | Préoccupation | Autorité | Pourquoi |
434
434
  |---|---|---|
package/README.md CHANGED
@@ -12,7 +12,7 @@ Every rule reads `ddd-ts-kit.config.json` ([docs/CONFIG.md](../../docs/CONFIG.md
12
12
  walking up from the linted file, and classifies the file into context and layer exactly like
13
13
  `ddd-ts-kit check` does. It also reads `stack.style` there: see [The two styles](#the-two-styles).
14
14
 
15
- ![ESLint hands the plugin a file; the plugin walks up to ddd-ts-kit.config.json, classifies the file as ddd-ts-kit check does (context billing, layer application, not a test file), runs each rule on its syntax tree at the severity the config gives its id, and reports the line, the problem, what to write instead and the rule](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-how-a-file-is-judged.svg)
15
+ ![ESLint hands the plugin a file; the plugin walks up to ddd-ts-kit.config.json, classifies the file as ddd-ts-kit check does (context billing, layer application, not a test file), runs each rule on its syntax tree at the severity the config gives its id, and reports the line, the problem, what to write instead and the rule](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-how-a-file-is-judged.svg)
16
16
 
17
17
  ## Install
18
18
 
@@ -418,7 +418,7 @@ way, by `clean/no-escape-hatch` and `governance/recorded-deviation`.
418
418
  Two tools, one set of ids, no overlap of authority. A third, dependency-cruiser, does not read the
419
419
  config: it runs on a file generated from it, with its own rule names.
420
420
 
421
- ![The plugin and ddd-ts-kit check read ddd-ts-kit.config.json at run time and share its rule ids, severities and suppression comments: the plugin judges one source file at a time on its syntax tree and is right when it disagrees with the checker; the checker judges what spans files, the tree, names, glossaries, config and barrel; dependency-cruiser runs only on the .dependency-cruiser.cjs that depcruise-config --write generates from the config and judges the resolved import graph with its own rule names, always at severity error, ignoring suppression comments](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-two-tools.svg)
421
+ ![The plugin and ddd-ts-kit check read ddd-ts-kit.config.json at run time and share its rule ids, severities and suppression comments: the plugin judges one source file at a time on its syntax tree and is right when it disagrees with the checker; the checker judges what spans files, the tree, names, glossaries, config and barrel; dependency-cruiser runs only on the .dependency-cruiser.cjs that depcruise-config --write generates from the config and judges the resolved import graph with its own rule names, always at severity error, ignoring suppression comments](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/eslint-plugin-two-tools.svg)
422
422
 
423
423
  | Concern | Authority | Why |
424
424
  |---|---|---|
@@ -2,7 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { configuredSeverity } from '../../project/configured-severity.js';
3
3
  import { describeLintedFile } from '../../project/describe-linted-file.js';
4
4
  import { suppressedLines } from '../suppressions/suppressed-lines.js';
5
- const DOCS = 'https://github.com/gbourgeat/ddd-ts-kit/blob/main/packages/eslint-plugin/docs/rules';
5
+ const DOCS = 'https://github.com/ddd-ts-kit/ddd-ts-kit/blob/main/packages/eslint-plugin/docs/rules';
6
6
  const createNamedRule = ESLintUtils.RuleCreator((name) => `${DOCS}/${name}.md`);
7
7
  export const eslintName = (ruleId) => ruleId.replace('/', '-');
8
8
  export function defineRule(definition) {
@@ -1 +1 @@
1
- {"version":3,"file":"define-rule.js","sourceRoot":"","sources":["../../../src/support/rule/define-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGnE,MAAM,IAAI,GAAG,qFAAqF,CAAC;AA4BnG,MAAM,eAAe,GAAG,WAAW,CAAC,WAAW,CAAW,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,KAAK,CAAC,CAAC;AAE1F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAU,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE/E,MAAM,UAAU,UAAU,CACxB,UAA+C;IAE/C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAE1D,OAAO,eAAe,CAAsB;QAC1C,IAAI;QACJ,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,IAAI,EAAE,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC;YACxC,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,MAAM,EAAE,UAAU,CAAC,MAAM,IAAI,EAAE;YAC/B,GAAG,CAAC,UAAU,CAAC,OAAO,KAAK,SAAS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E,CAAC;YACxC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,MAAM,CAAC,UAA6C;IAC3D,MAAM,QAAQ,GAAG,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC;IAEjG,OAAO,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AACnE,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.113.1";
1
+ export declare const VERSION = "0.114.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.113.1';
1
+ export const VERSION = '0.114.1';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/eslint-plugin",
3
- "version": "0.113.1",
3
+ "version": "0.114.1",
4
4
  "description": "AST-accurate ESLint rules for DDD and Clean Architecture in TypeScript: layer and context isolation, domain purity, clean code ordering.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -17,11 +17,11 @@
17
17
  "license": "MIT",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/gbourgeat/ddd-ts-kit.git",
20
+ "url": "git+https://github.com/ddd-ts-kit/ddd-ts-kit.git",
21
21
  "directory": "packages/eslint-plugin"
22
22
  },
23
- "homepage": "https://gbourgeat.github.io/ddd-ts-kit/packages/eslint-plugin/",
24
- "bugs": "https://github.com/gbourgeat/ddd-ts-kit/issues",
23
+ "homepage": "https://ddd-ts-kit.github.io/ddd-ts-kit/packages/eslint-plugin/",
24
+ "bugs": "https://github.com/ddd-ts-kit/ddd-ts-kit/issues",
25
25
  "publishConfig": {
26
26
  "access": "public",
27
27
  "provenance": true