@ddd-ts-kit/eslint-plugin 0.89.0 → 0.91.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.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:7a5824ccc279f258 -->
2
+ <!-- translation-of: README.md sha256:328005b51ed4322c -->
3
3
 
4
4
  # @ddd-ts-kit/eslint-plugin
5
5
 
@@ -252,10 +252,10 @@ chaque règle à `error`.
252
252
  | [`event-sourcing/upcaster-required`](docs/rules/event-sourcing-upcaster-required.fr.md) | `ddd-ts-kit/event-sourcing-upcaster-required` | `defineStoredEvent` nomme le type de ses données, déclaré dans le fichier, et une version au-dessus de 1 a un *upcaster* depuis chaque version inférieure (le verrou des formes enregistrées : `ddd-ts-kit check`) | `error` | maison |
253
253
  | [`test/no-mocks`](docs/rules/test-no-mocks.fr.md) | `ddd-ts-kit/test-no-mocks` | pas de `vi.mock`, `vi.fn`, `vi.spyOn`, de leurs jumeaux `jest` ni de bibliothèque de *mocks* dans les tests d'un contexte | `warn` | maison |
254
254
  | [`test/no-only-no-skip`](docs/rules/test-no-only-no-skip.fr.md) | `ddd-ts-kit/test-no-only-no-skip` | pas de `.only` ni `.skip` sur un test ou un groupe, pas de `fit`, `xit`, `xdescribe`, pas de `.skipIf` ni `.runIf` sur une constante : chaque test s'exécute, ou s'exécute partout où sa condition tient | `error` | maison |
255
- | [`test/title-states-a-rule`](docs/rules/test-title-states-a-rule.fr.md) | `ddd-ts-kit/test-title-states-a-rule` | le titre d'un test énonce la règle qu'il prouve, en minuscules, après les *rows* et le critère qu'il cite ; jamais `should`, `test`, `works`, ni une méthode ou une classe ; un `describe` nomme l'unité | `warn` | maison |
256
- | [`test/no-logic`](docs/rules/test-no-logic.fr.md) | `ddd-ts-kit/test-no-logic` | ni `if`, ni `switch`, ni ternaire, ni boucle, ni `try` dans un test : un cas par ligne est un `it.each`, une décision appartient à un *builder*, un *fake* ou un *helper* | `warn` | maison |
257
- | [`test/assertion-present`](docs/rules/test-assertion-present.fr.md) | `ddd-ts-kit/test-assertion-present` | chaque test vérifie quelque chose : un `expect`, un *helper* `expect...` ou `assert...`, ou le résultat d'un scénario (`thenEvents`, `thenError`) ; un test sans corps est un `it.todo` | `warn` | maison |
258
- | [`test/refusal-by-code`](docs/rules/test-refusal-by-code.fr.md) | `ddd-ts-kit/test-refusal-by-code` | un refus se vérifie par son code et ses faits, jamais par `toThrow` avec un message, une classe ou rien | `warn` | maison |
255
+ | [`test/title-states-a-rule`](docs/rules/test-title-states-a-rule.fr.md) | `ddd-ts-kit/test-title-states-a-rule` | le titre d'un test énonce la règle qu'il prouve, en minuscules, après les *rows* et le critère qu'il cite ; jamais `should`, `test`, `works`, ni une méthode ou une classe ; un `describe` nomme l'unité | `error` | maison |
256
+ | [`test/no-logic`](docs/rules/test-no-logic.fr.md) | `ddd-ts-kit/test-no-logic` | ni `if`, ni `switch`, ni ternaire, ni boucle, ni `try` dans un test : un cas par ligne est un `it.each`, une décision appartient à un *builder*, un *fake* ou un *helper* | `error` | maison |
257
+ | [`test/assertion-present`](docs/rules/test-assertion-present.fr.md) | `ddd-ts-kit/test-assertion-present` | chaque test vérifie quelque chose : un `expect`, un *helper* `expect...` ou `assert...`, ou le résultat d'un scénario (`thenEvents`, `thenError`) ; un test sans corps est un `it.todo` | `error` | maison |
258
+ | [`test/refusal-by-code`](docs/rules/test-refusal-by-code.fr.md) | `ddd-ts-kit/test-refusal-by-code` | un refus se vérifie par son code et ses faits, jamais par `toThrow` avec un message, une classe ou rien | `error` | maison |
259
259
  | [`test/no-snapshot`](docs/rules/test-no-snapshot.fr.md) | `ddd-ts-kit/test-no-snapshot` | aucun *matcher* de *snapshot* dans un test : un test vérifie les champs dont la règle dépend | `error` | maison |
260
260
  | [`events/name-format`](docs/rules/events-name-format.fr.md) | `ddd-ts-kit/events-name-format` | les noms d'événements suivent `<context>.<aggregate>.<fact>` en kebab-case | `error` | maison |
261
261
  | [`events/outbox-required`](docs/rules/events-outbox-required.fr.md) | `ddd-ts-kit/events-outbox-required` | aucun client de *broker* et aucun bus concret dans `domain/` et `application/` ; un *publisher* dépend du port `IntegrationEventPublisher` | `error` | maison |
package/README.md CHANGED
@@ -248,10 +248,10 @@ is an error whatever the configured limit). `strict` sets every rule to `error`.
248
248
  | [`event-sourcing/upcaster-required`](docs/rules/event-sourcing-upcaster-required.md) | `ddd-ts-kit/event-sourcing-upcaster-required` | `defineStoredEvent` names the type of its data, declared in the file, and a version above 1 has an upcaster from each version below (the lock of recorded shapes: `ddd-ts-kit check`) | `error` | custom |
249
249
  | [`test/no-mocks`](docs/rules/test-no-mocks.md) | `ddd-ts-kit/test-no-mocks` | no `vi.mock`, `vi.fn`, `vi.spyOn`, their `jest` twins or a mocking library in a context's tests | `warn` | custom |
250
250
  | [`test/no-only-no-skip`](docs/rules/test-no-only-no-skip.md) | `ddd-ts-kit/test-no-only-no-skip` | no `.only` or `.skip` on a test or a group, no `fit`, `xit`, `xdescribe`, no `.skipIf` or `.runIf` on a constant: every test runs, or runs wherever its condition holds | `error` | custom |
251
- | [`test/title-states-a-rule`](docs/rules/test-title-states-a-rule.md) | `ddd-ts-kit/test-title-states-a-rule` | the title of a test states the rule it proves, in lower case, after the rows and the criterion it cites; never `should`, `test`, `works`, nor a method or a class; a `describe` names the unit | `warn` | custom |
252
- | [`test/no-logic`](docs/rules/test-no-logic.md) | `ddd-ts-kit/test-no-logic` | no `if`, `switch`, ternary, loop or `try` in a test: a case per row is an `it.each`, a decision belongs to a builder, a fake or a helper | `warn` | custom |
253
- | [`test/assertion-present`](docs/rules/test-assertion-present.md) | `ddd-ts-kit/test-assertion-present` | every test asserts something: an `expect`, an `expect...` or `assert...` helper, or the outcome of a scenario (`thenEvents`, `thenError`); a test without a body is an `it.todo` | `warn` | custom |
254
- | [`test/refusal-by-code`](docs/rules/test-refusal-by-code.md) | `ddd-ts-kit/test-refusal-by-code` | a refusal is asserted by its code and its facts, never by `toThrow` with a message, a class or nothing | `warn` | custom |
251
+ | [`test/title-states-a-rule`](docs/rules/test-title-states-a-rule.md) | `ddd-ts-kit/test-title-states-a-rule` | the title of a test states the rule it proves, in lower case, after the rows and the criterion it cites; never `should`, `test`, `works`, nor a method or a class; a `describe` names the unit | `error` | custom |
252
+ | [`test/no-logic`](docs/rules/test-no-logic.md) | `ddd-ts-kit/test-no-logic` | no `if`, `switch`, ternary, loop or `try` in a test: a case per row is an `it.each`, a decision belongs to a builder, a fake or a helper | `error` | custom |
253
+ | [`test/assertion-present`](docs/rules/test-assertion-present.md) | `ddd-ts-kit/test-assertion-present` | every test asserts something: an `expect`, an `expect...` or `assert...` helper, or the outcome of a scenario (`thenEvents`, `thenError`); a test without a body is an `it.todo` | `error` | custom |
254
+ | [`test/refusal-by-code`](docs/rules/test-refusal-by-code.md) | `ddd-ts-kit/test-refusal-by-code` | a refusal is asserted by its code and its facts, never by `toThrow` with a message, a class or nothing | `error` | custom |
255
255
  | [`test/no-snapshot`](docs/rules/test-no-snapshot.md) | `ddd-ts-kit/test-no-snapshot` | no snapshot matcher in a test: a test asserts the fields the rule depends on | `error` | custom |
256
256
  | [`events/name-format`](docs/rules/events-name-format.md) | `ddd-ts-kit/events-name-format` | event names follow `<context>.<aggregate>.<fact>` in kebab-case | `error` | custom |
257
257
  | [`events/outbox-required`](docs/rules/events-outbox-required.md) | `ddd-ts-kit/events-outbox-required` | no broker client and no concrete bus in `domain/` and `application/`; a publisher depends on the `IntegrationEventPublisher` port | `error` | custom |
@@ -1 +1 @@
1
- {"version":3,"file":"test-assertion-present.d.ts","sourceRoot":"","sources":["../../src/rules/test-assertion-present.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB,mKAuC/B,CAAC"}
1
+ {"version":3,"file":"test-assertion-present.d.ts","sourceRoot":"","sources":["../../src/rules/test-assertion-present.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB,mKAsC/B,CAAC"}
@@ -11,8 +11,7 @@ const OUTCOME = /^then[A-Z]/;
11
11
  export const testAssertionPresent = defineRule({
12
12
  id: 'test/assertion-present',
13
13
  type: 'problem',
14
- recommended: 'warn',
15
- transition: '0.90.0',
14
+ recommended: 'error',
16
15
  description: 'Every test asserts something: an `expect`, an `expect...` or `assert...` helper, or the outcome of a scenario (`thenEvents`, `thenError`); a test without a body is written `it.todo`.',
17
16
  messages: {
18
17
  none: 'The test "{{title}}" asserts nothing: it runs code and passes whatever happens. Assert the outcome: the state of a fake (`expect(await invoices.findById(id))`), the facts recorded (`thenEvents`), the refusal by its code (`thenError`, `expectRefusal`, `rejects.toMatchObject({ code })`), the answer of a route (`expectStatus`, `expectProblem`). A helper that asserts for several tests is named `expect...`, so that the rule sees it.',
@@ -1 +1 @@
1
- {"version":3,"file":"test-assertion-present.js","sourceRoot":"","sources":["../../src/rules/test-assertion-present.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,oIAAoI;AACpI,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,iHAAiH;AACjH,MAAM,OAAO,GAAG,YAAY,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAqB;IACjE,EAAE,EAAE,wBAAwB;IAC5B,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,QAAQ;IACpB,WAAW,EACT,wLAAwL;IAC1L,QAAQ,EAAE;QACR,IAAI,EAAE,ibAAib;QACvb,OAAO,EACL,+KAA+K;KA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,OAAO,GAAwB,MAAM,CAAC,MAAM,CAAC;IAEjD,OAAO,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,gBAAgB,IAAI,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,cAAc,EAAE,CAAC;QAC1G,OAAO,GAAG,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/F,CAAC;IAED,OAAO,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"test-no-logic.d.ts","sourceRoot":"","sources":["../../src/rules/test-no-logic.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,wJAkCtB,CAAC"}
1
+ {"version":3,"file":"test-no-logic.d.ts","sourceRoot":"","sources":["../../src/rules/test-no-logic.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,wJAiCtB,CAAC"}
@@ -17,8 +17,7 @@ const LOGIC = {
17
17
  export const testNoLogic = defineRule({
18
18
  id: 'test/no-logic',
19
19
  type: 'suggestion',
20
- recommended: 'warn',
21
- transition: '0.90.0',
20
+ recommended: 'error',
22
21
  description: 'A test holds no `if`, `switch`, ternary, loop or `try`: it arranges, acts and asserts; a case per row is an `it.each`, a decision belongs to a builder, a fake or a helper.',
23
22
  messages: {
24
23
  logic: '{{what}} in a test: a test holds no logic. It arranges, acts and asserts, and fails for one reason a reader finds without running it. A case per row is an `it.each` with the rows as its table; a decision belongs to a builder (`anInvoice().paid()`), to a fake (`mailer.failNextWith(...)`) or to a helper named after what it decides, in test/e2e/support or next to the world of the context.',
@@ -1 +1 @@
1
- {"version":3,"file":"test-no-logic.js","sourceRoot":"","sources":["../../src/rules/test-no-logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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,MAAM,WAAW,GAAG,UAAU,CAAU;IAC7C,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,OAAO;IACpB,WAAW,EACT,6KAA6K;IAC/K,QAAQ,EAAE;QACR,KAAK,EACH,sYAAsY;KACzY;IACD,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE;QACjC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAA6B;gBAC1C,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;gBAExC,IAAI,IAAI,EAAE,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;oBACrD,OAAO;gBACT,CAAC;gBAED,KAAK,MAAM,MAAM,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAEhC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;wBACvB,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;oBAC/D,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"test-refusal-by-code.d.ts","sourceRoot":"","sources":["../../src/rules/test-refusal-by-code.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB,qJAqC5B,CAAC"}
1
+ {"version":3,"file":"test-refusal-by-code.d.ts","sourceRoot":"","sources":["../../src/rules/test-refusal-by-code.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB,qJAoC5B,CAAC"}
@@ -7,8 +7,7 @@ const ADAPTER_SPEC = /\.adapter\.(?:spec|test)\.ts$/;
7
7
  export const testRefusalByCode = defineRule({
8
8
  id: 'test/refusal-by-code',
9
9
  type: 'suggestion',
10
- recommended: 'warn',
11
- transition: '0.90.0',
10
+ recommended: 'error',
12
11
  description: 'A refusal of the model or of the application is asserted by its code and its facts, never by its message or the class of one error: `thenError`, `expectRefusal`, `rejects.toMatchObject({ code })`, `expectProblem`; `toThrow` with a message, a class or nothing is reported, outside the specs of the adapters and of the platform.',
13
12
  messages: {
14
13
  by: "`{{matcher}}` asserts a refusal by {{by}}. A refusal is asserted by its code and its facts, which a client and a reader rely on, never by a message or the class of one error: on an aggregate `given(...).when(...).thenError('INVOICE_ALREADY_PAID', facts)`, on an action `expectRefusal(() => Email.create(raw), 'INVALID_EMAIL', facts)`, through the bus `await expect(bus.execute(command)).rejects.toMatchObject({ code: 'FORBIDDEN' })`, end to end `expectProblem(response, { status: 409, code: 'SLOT_TAKEN' })`; a failure the test injected (`mailer.failNextWith(outage)`) is asserted as itself, `rejects.toBe(outage)`.",
@@ -1 +1 @@
1
- {"version":3,"file":"test-refusal-by-code.js","sourceRoot":"","sources":["../../src/rules/test-refusal-by-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;AAE5D,uGAAuG;AACvG,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAKrD,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAO;IAChD,EAAE,EAAE,sBAAsB;IAC1B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,QAAQ;IACpB,WAAW,EACT,wUAAwU;IAC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ceRoot":"","sources":["../../src/rules/test-title-states-a-rule.ts"],"names":[],"mappings":"AAqBA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9D,eAAO,MAAM,oBAAoB,0JAsC/B,CAAC"}
1
+ {"version":3,"file":"test-title-states-a-rule.d.ts","sourceRoot":"","sources":["../../src/rules/test-title-states-a-rule.ts"],"names":[],"mappings":"AAqBA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9D,eAAO,MAAM,oBAAoB,0JAqC/B,CAAC"}
@@ -14,8 +14,7 @@ const GROUP_META = /\b(?:tests?|specs?|suite|should)\b|(?:Spec|Specs|Test|Tests)
14
14
  export const testTitleStatesARule = defineRule({
15
15
  id: 'test/title-states-a-rule',
16
16
  type: 'suggestion',
17
- recommended: 'warn',
18
- transition: '0.90.0',
17
+ recommended: 'error',
19
18
  description: 'The title of a test states the rule it proves: in lower case, what the subject does, after the rows and the criterion it cites; never `should`, `test`, `works`, nor the name of a method or a class. A `describe` names the unit.',
20
19
  messages: {
21
20
  rule: 'The title "{{title}}" does not state the rule the test proves. A title says what the subject does, in the present tense and in lower case (`refuses to pay an invoice twice`, `saves the invoice and answers its identifier`), after the rows and the criterion it cites (`#US5.02 AC1 ...`).',
@@ -1 +1 @@
1
- {"version":3,"file":"test-title-states-a-rule.js","sourceRoot":"","sources":["../../src/rules/test-title-states-a-rule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,4JAA4J;AAC5J,MAAM,SAAS,GAAG,6CAA6C,CAAC;AAEhE,0EAA0E;AAC1E,MAAM,IAAI,GACR,oJAAoJ,CAAC;AAEvJ,2GAA2G;AAC3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AClB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACxD,CAAC;IAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AAC3F,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACvB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAChC,CAAC;IAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.89.0";
1
+ export declare const VERSION = "0.91.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.89.0';
1
+ export const VERSION = '0.91.0';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,9 +1,9 @@
1
1
  [English](test-assertion-present.md) · **Français**
2
- <!-- translation-of: test-assertion-present.md sha256:1047d2cf38c27c16 -->
2
+ <!-- translation-of: test-assertion-present.md sha256:9048f6705cb85910 -->
3
3
 
4
4
  # ddd-ts-kit/test-assertion-present
5
5
 
6
- Identifiant d'architecture : `test/assertion-present` (ajouté par ce *plugin*). Sévérité par défaut : `warn` dans `recommended` (une erreur à partir de 0.90.0 : `ddd-ts-kit lint` montre ses avertissements sans échouer dessus jusque-là), `error` dans `strict`.
6
+ Identifiant d'architecture : `test/assertion-present` (ajouté par ce *plugin*). Sévérité par défaut : `error` dans `recommended`, `error` dans `strict`.
7
7
 
8
8
  S'applique à : chaque fichier de test du projet (`*.spec.ts`, `*.test.ts`, le `test/` d'un contexte).
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ddd-ts-kit/test-assertion-present
4
4
 
5
- Architecture id: `test/assertion-present` (added by this plugin). Default severity: `warn` in `recommended` (an error from 0.90.0: `ddd-ts-kit lint` shows its warnings without failing on them until then), `error` in `strict`.
5
+ Architecture id: `test/assertion-present` (added by this plugin). Default severity: `error` in `recommended`, `error` in `strict`.
6
6
 
7
7
  Applies to: every test file of the project (`*.spec.ts`, `*.test.ts`, the `test/` of a context).
8
8
 
@@ -1,9 +1,9 @@
1
1
  [English](test-no-logic.md) · **Français**
2
- <!-- translation-of: test-no-logic.md sha256:f477d5367e9f49c7 -->
2
+ <!-- translation-of: test-no-logic.md sha256:32c6e7bc125f7cc7 -->
3
3
 
4
4
  # ddd-ts-kit/test-no-logic
5
5
 
6
- Identifiant d'architecture : `test/no-logic` (ajouté par ce *plugin*). Sévérité par défaut : `warn` dans `recommended` (une erreur à partir de 0.90.0 : `ddd-ts-kit lint` montre ses avertissements sans échouer dessus jusque-là), `error` dans `strict`.
6
+ Identifiant d'architecture : `test/no-logic` (ajouté par ce *plugin*). Sévérité par défaut : `error` dans `recommended`, `error` dans `strict`.
7
7
 
8
8
  S'applique à : chaque fichier de test du projet (`*.spec.ts`, `*.test.ts`, le `test/` d'un contexte).
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ddd-ts-kit/test-no-logic
4
4
 
5
- Architecture id: `test/no-logic` (added by this plugin). Default severity: `warn` in `recommended` (an error from 0.90.0: `ddd-ts-kit lint` shows its warnings without failing on them until then), `error` in `strict`.
5
+ Architecture id: `test/no-logic` (added by this plugin). Default severity: `error` in `recommended`, `error` in `strict`.
6
6
 
7
7
  Applies to: every test file of the project (`*.spec.ts`, `*.test.ts`, the `test/` of a context).
8
8
 
@@ -1,9 +1,9 @@
1
1
  [English](test-refusal-by-code.md) · **Français**
2
- <!-- translation-of: test-refusal-by-code.md sha256:d0f4cd2f5172b6e2 -->
2
+ <!-- translation-of: test-refusal-by-code.md sha256:23f7e57668c1a946 -->
3
3
 
4
4
  # ddd-ts-kit/test-refusal-by-code
5
5
 
6
- Identifiant d'architecture : `test/refusal-by-code` (ajouté par ce *plugin*). Sévérité par défaut : `warn` dans `recommended` (une erreur à partir de 0.90.0 : `ddd-ts-kit lint` montre ses avertissements sans échouer dessus jusque-là), `error` dans `strict`.
6
+ Identifiant d'architecture : `test/refusal-by-code` (ajouté par ce *plugin*). Sévérité par défaut : `error` dans `recommended`, `error` dans `strict`.
7
7
 
8
8
  S'applique à : les *specs* du modèle et de l'application, `test/unit/` d'un contexte, le noyau partagé, `test/e2e/` et `test/acceptance/` (`*.spec.ts`, `*.test.ts`). Les *specs* des adaptateurs (`*.adapter.spec.ts`, `test/integration/`) et de la plateforme ne sont pas jugées.
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ddd-ts-kit/test-refusal-by-code
4
4
 
5
- Architecture id: `test/refusal-by-code` (added by this plugin). Default severity: `warn` in `recommended` (an error from 0.90.0: `ddd-ts-kit lint` shows its warnings without failing on them until then), `error` in `strict`.
5
+ Architecture id: `test/refusal-by-code` (added by this plugin). Default severity: `error` in `recommended`, `error` in `strict`.
6
6
 
7
7
  Applies to: the specs of the model and of the application, `test/unit/` of a context, the shared kernel, `test/e2e/` and `test/acceptance/` (`*.spec.ts`, `*.test.ts`). The specs of the adapters (`*.adapter.spec.ts`, `test/integration/`) and of the platform are not judged.
8
8
 
@@ -1,9 +1,9 @@
1
1
  [English](test-title-states-a-rule.md) · **Français**
2
- <!-- translation-of: test-title-states-a-rule.md sha256:9de5d77beee52337 -->
2
+ <!-- translation-of: test-title-states-a-rule.md sha256:e38c7696227c6f45 -->
3
3
 
4
4
  # ddd-ts-kit/test-title-states-a-rule
5
5
 
6
- Identifiant d'architecture : `test/title-states-a-rule` (ajouté par ce *plugin*). Sévérité par défaut : `warn` dans `recommended` (une erreur à partir de 0.90.0 : `ddd-ts-kit lint` montre ses avertissements sans échouer dessus jusque-là), `error` dans `strict`.
6
+ Identifiant d'architecture : `test/title-states-a-rule` (ajouté par ce *plugin*). Sévérité par défaut : `error` dans `recommended`, `error` dans `strict`.
7
7
 
8
8
  S'applique à : chaque fichier de test du projet (`*.spec.ts`, `*.test.ts`, le `test/` d'un contexte).
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ddd-ts-kit/test-title-states-a-rule
4
4
 
5
- Architecture id: `test/title-states-a-rule` (added by this plugin). Default severity: `warn` in `recommended` (an error from 0.90.0: `ddd-ts-kit lint` shows its warnings without failing on them until then), `error` in `strict`.
5
+ Architecture id: `test/title-states-a-rule` (added by this plugin). Default severity: `error` in `recommended`, `error` in `strict`.
6
6
 
7
7
  Applies to: every test file of the project (`*.spec.ts`, `*.test.ts`, the `test/` of a context).
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/eslint-plugin",
3
- "version": "0.89.0",
3
+ "version": "0.91.0",
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",