@enigmatry/eslint-config 20.0.1-preview.4 → 20.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.
Files changed (3) hide show
  1. package/README.md +12 -6
  2. package/index.js +10 -3
  3. package/package.json +10 -10
package/README.md CHANGED
@@ -13,12 +13,18 @@ $ npm install --save-dev eslint @enigmatry/eslint-config
13
13
  Once the `@enigmatry/eslint-config` package is installed, you can use it by specifying `@enigmatry/eslint-config` in the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
14
14
 
15
15
  ```js
16
- {
17
- "extends": "@enigmatry/eslint-config",
18
- "rules": {
19
- // Additional, per-project rules...
20
- }
21
- }
16
+ import defaultConfiguration from "@enigmatry/eslint-config";
17
+ import { defineConfig } from "eslint/config";
18
+
19
+ export default defineConfig([
20
+ ...defaultConfiguration,
21
+ {
22
+ "files": ["src/**/*.ts"],
23
+ "rules": {
24
+ // Additional, per-project rules...
25
+ }
26
+ }
27
+ ]);
22
28
  ```
23
29
 
24
30
  ## License
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import tseslint from "typescript-eslint";
2
+ import { defineConfig } from 'eslint/config';
2
3
  import angular from "angular-eslint";
3
4
  import pluginPromise from "eslint-plugin-promise";
4
5
  import stylistic from "@stylistic/eslint-plugin";
@@ -8,7 +9,7 @@ import nounsanitized from "eslint-plugin-no-unsanitized";
8
9
  import unusedImports from "eslint-plugin-unused-imports";
9
10
  import arrowFunctions from "eslint-plugin-prefer-arrow-functions";
10
11
 
11
- export default tseslint.config(
12
+ export default defineConfig(
12
13
  ...angular.configs.tsRecommended,
13
14
  {
14
15
  ignores: ["src/**/generated/", "src/polyfills.ts", "src/@enigmatry/**", "**/api-reference.ts",
@@ -180,7 +181,7 @@ export default tseslint.config(
180
181
  "error",
181
182
  "single",
182
183
  {
183
- "allowTemplateLiterals": true
184
+ "allowTemplateLiterals": "always"
184
185
  }
185
186
  ],
186
187
  "@stylistic/rest-spread-spacing": [
@@ -316,10 +317,11 @@ export default tseslint.config(
316
317
  ],
317
318
  "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
318
319
  "@typescript-eslint/no-unnecessary-template-expression": "error",
320
+ "@typescript-eslint/no-unnecessary-type-conversion": "error",
319
321
  "@typescript-eslint/no-unsafe-declaration-merging": [
320
322
  "error"
321
323
  ],
322
- "@typescript-eslint/no-unsafe-enum-comparison": "error",
324
+ "@typescript-eslint/no-unsafe-enum-comparison": "off",
323
325
  "@typescript-eslint/no-unsafe-function-type": "error",
324
326
  "@typescript-eslint/no-unsafe-return": "off",
325
327
  "@typescript-eslint/no-unsafe-type-assertion": "off",
@@ -398,6 +400,10 @@ export default tseslint.config(
398
400
  "import/dynamic-import-chunkname": [
399
401
  "off"
400
402
  ],
403
+ "import/enforce-node-protocol-usage": [
404
+ "warn",
405
+ "never"
406
+ ],
401
407
  "import/export": [
402
408
  "error"
403
409
  ],
@@ -728,6 +734,7 @@ export default tseslint.config(
728
734
  "prefer-rest-params": "error",
729
735
  "prefer-spread": "error",
730
736
  "prefer-template": "error",
737
+ "preserve-caught-error": "error",
731
738
  "promise/always-return": "off",
732
739
  "promise/avoid-new": "warn",
733
740
  "promise/catch-or-return": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/eslint-config",
3
- "version": "20.0.1-preview.4",
3
+ "version": "20.3.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "author": "Enigmatry",
@@ -15,16 +15,16 @@
15
15
  "index.js"
16
16
  ],
17
17
  "dependencies": {
18
- "@stylistic/eslint-plugin": "2.12.1",
19
- "eslint-plugin-import": "2.31.0",
20
- "eslint-plugin-no-secrets": "2.1.1",
21
- "eslint-plugin-no-unsanitized": "4.1.2",
22
- "eslint-plugin-prefer-arrow-functions": "3.4.1",
18
+ "@stylistic/eslint-plugin": "5.5.0",
19
+ "eslint-plugin-import": "2.32.0",
20
+ "eslint-plugin-no-secrets": "2.2.1",
21
+ "eslint-plugin-no-unsanitized": "4.1.4",
22
+ "eslint-plugin-prefer-arrow-functions": "3.9.1",
23
23
  "eslint-plugin-promise": "7.2.1",
24
- "eslint-plugin-unused-imports": "4.1.4",
25
- "angular-eslint": "20.1.1",
26
- "typescript-eslint": "8.26.0",
27
- "eslint": "9.17.0"
24
+ "eslint-plugin-unused-imports": "4.3.0",
25
+ "angular-eslint": "20.5.2",
26
+ "typescript-eslint": "8.46.3",
27
+ "eslint": "9.39.1"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"