@lenne.tech/eslint-config-ts 2.1.3 → 2.1.4

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 (2) hide show
  1. package/index.js +9 -4
  2. package/package.json +9 -11
package/index.js CHANGED
@@ -10,6 +10,7 @@ import markdown from "eslint-plugin-markdown";
10
10
  import jsonc from "eslint-plugin-jsonc";
11
11
  import eslintcomments from "eslint-plugin-eslint-comments";
12
12
  import noonlytests from "eslint-plugin-no-only-tests";
13
+ import eslintConfigPrettier from 'eslint-config-prettier';
13
14
 
14
15
  export default [
15
16
  { ignores: ["dist/", ".yalc/", "node_modules/", ".husky/", "extras/"] },
@@ -70,6 +71,10 @@ export default [
70
71
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
71
72
  "@typescript-eslint/prefer-ts-expect-error": "error",
72
73
  "@typescript-eslint/no-require-imports": "off",
74
+ "@typescript-eslint/no-unused-expressions": [
75
+ "warn",
76
+ { allowShortCircuit: true, allowTernary: true },
77
+ ],
73
78
  // Override JS
74
79
  "no-useless-constructor": "off",
75
80
  "no-invalid-this": "off",
@@ -118,6 +123,7 @@ export default [
118
123
  "always",
119
124
  { exceptAfterSingleLine: true },
120
125
  ],
126
+ "@stylistic/indent": ["error", 2],
121
127
 
122
128
  // off
123
129
  "@typescript-eslint/consistent-indexed-object-style": "off",
@@ -157,10 +163,7 @@ export default [
157
163
  "unused-imports/no-unused-vars": [
158
164
  "warn",
159
165
  {
160
- vars: "all",
161
- varsIgnorePattern: "^_",
162
- args: "after-used",
163
- argsIgnorePattern: "\\b(type|of|returns)\\b", // Arguments containing the words "type", "of", or "returns" will be ignored --> nest-server
166
+ caughtErrors: "none",
164
167
  },
165
168
  ],
166
169
 
@@ -291,4 +294,6 @@ export default [
291
294
  "yml/no-empty-document": "off",
292
295
  },
293
296
  },
297
+ // Prettier config must be last to override conflicting rules
298
+ eslintConfigPrettier,
294
299
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-ts",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "ESLint config of lenne.Tech for TypeScript",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -19,23 +19,21 @@
19
19
  "eslint": ">=9.26.0"
20
20
  },
21
21
  "dependencies": {
22
- "@stylistic/eslint-plugin": "5.2.2",
23
- "@typescript-eslint/eslint-plugin": "8.38.0",
24
- "@typescript-eslint/parser": "8.38.0",
22
+ "@stylistic/eslint-plugin": "5.4.0",
23
+ "@typescript-eslint/eslint-plugin": "8.46.1",
24
+ "@typescript-eslint/parser": "8.46.1",
25
25
  "eslint-config-prettier": "10.1.8",
26
26
  "eslint-plugin-eslint-comments": "3.2.0",
27
27
  "eslint-plugin-import": "2.32.0",
28
- "eslint-plugin-jsonc": "2.20.1",
28
+ "eslint-plugin-jsonc": "2.21.0",
29
29
  "eslint-plugin-markdown": "5.1.0",
30
30
  "eslint-plugin-no-only-tests": "3.3.0",
31
- "eslint-plugin-perfectionist": "4.15.0",
32
- "eslint-plugin-prettier": "5.5.3",
33
- "eslint-plugin-unused-imports": "4.1.4",
34
- "eslint-plugin-yml": "1.18.0",
35
- "functions-have-names": "1.2.3"
31
+ "eslint-plugin-perfectionist": "4.15.1",
32
+ "eslint-plugin-unused-imports": "4.2.0",
33
+ "eslint-plugin-yml": "1.19.0"
36
34
  },
37
35
  "devDependencies": {
38
- "eslint": "9.31.0",
36
+ "eslint": "9.37.0",
39
37
  "watch": "1.0.2"
40
38
  }
41
39
  }