exadev-eslint-config 2.2.0 → 2.3.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.md CHANGED
@@ -16,7 +16,7 @@ Consumers need `eslint >=10.0.0` and `typescript-eslint >=8.0.0` as required pee
16
16
  pnpm add -D @exadev/eslint-config typescript-eslint eslint
17
17
  ```
18
18
 
19
- The default export is the full, type-checked ruleset: typescript-eslint's `recommendedTypeChecked` + `stylisticTypeChecked` presets, `exadev/barrel-policy` at `mode: 'banned'` (see [Barrel policy](#barrel-policy)), `exadev/no-object-assign`, `exadev/no-mutable-union-array-param`, `exadev/no-enum-number-widening`, `exadev/no-pointless-reassignment`, `linterOptions.noInlineConfig`, `@typescript-eslint/consistent-type-assertions` banning all type assertions, `@typescript-eslint/ban-ts-comment` banning `@ts-expect-error` outright, and `@typescript-eslint/method-signature-style` set to `'property'` (method-shorthand signatures are checked bivariantly under `strictFunctionTypes`, which is unsound) -- the type-assertion and ts-comment rules are relaxed in test files (see below). Spread it directly into `tseslint.config(...)`:
19
+ The default export is the full, type-checked ruleset: typescript-eslint's `recommendedTypeChecked` + `stylisticTypeChecked` presets, `exadev/barrel-policy` at `mode: 'banned'` (see [Barrel policy](#barrel-policy)), `exadev/no-object-assign`, `exadev/no-mutable-union-array-param`, `exadev/no-enum-number-widening`, `exadev/no-pointless-reassignment`, `linterOptions.noInlineConfig`, `@typescript-eslint/consistent-type-assertions` banning all type assertions, `@typescript-eslint/no-non-null-assertion` banning the `!` operator (the same manual-override escape hatch as a type assertion, under a different spelling), `@typescript-eslint/ban-ts-comment` banning `@ts-expect-error` outright, and `@typescript-eslint/method-signature-style` set to `'property'` (method-shorthand signatures are checked bivariantly under `strictFunctionTypes`, which is unsound) -- the type-assertion and ts-comment rules are relaxed in test files (see below). Spread it directly into `tseslint.config(...)`:
20
20
 
21
21
  ```ts
22
22
  // eslint.config.ts
package/dist/index.cjs CHANGED
@@ -31,7 +31,7 @@ let _typescript_eslint_utils = require("@typescript-eslint/utils");
31
31
  let typescript = require("typescript");
32
32
  typescript = __toESM(typescript, 1);
33
33
  //#region package.json
34
- var version = "2.2.0";
34
+ var version = "2.3.0";
35
35
  //#endregion
36
36
  //#region src/rules/barrel-helpers.ts
37
37
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -681,7 +681,8 @@ const recommendedTypeChecked = [
681
681
  "exadev/no-pointless-reassignment": "error",
682
682
  "@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }],
683
683
  "@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": true }],
684
- "@typescript-eslint/method-signature-style": ["error", "property"]
684
+ "@typescript-eslint/method-signature-style": ["error", "property"],
685
+ "@typescript-eslint/no-non-null-assertion": "error"
685
686
  }
686
687
  },
687
688
  {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { posix } from "node:path";
3
3
  import { AST_NODE_TYPES, ESLintUtils, TSESLint } from "@typescript-eslint/utils";
4
4
  import * as ts from "typescript";
5
5
  //#region package.json
6
- var version = "2.2.0";
6
+ var version = "2.3.0";
7
7
  //#endregion
8
8
  //#region src/rules/barrel-helpers.ts
9
9
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -653,7 +653,8 @@ const recommendedTypeChecked = [
653
653
  "exadev/no-pointless-reassignment": "error",
654
654
  "@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }],
655
655
  "@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": true }],
656
- "@typescript-eslint/method-signature-style": ["error", "property"]
656
+ "@typescript-eslint/method-signature-style": ["error", "property"],
657
+ "@typescript-eslint/no-non-null-assertion": "error"
657
658
  }
658
659
  },
659
660
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exadev-eslint-config",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Shared custom ESLint rules and plugin for ExaDev projects",
5
5
  "type": "module",
6
6
  "sideEffects": false,