@jimmy.codes/eslint-config 6.19.0 → 6.20.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/dist/index.d.mts
CHANGED
|
@@ -1112,6 +1112,11 @@ interface RuleOptions {
|
|
|
1112
1112
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
1113
1113
|
*/
|
|
1114
1114
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Disallow unused private class members
|
|
1117
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
1118
|
+
*/
|
|
1119
|
+
'@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
1115
1120
|
/**
|
|
1116
1121
|
* Disallow unused variables
|
|
1117
1122
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
package/dist/index.mjs
CHANGED
|
@@ -487,7 +487,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
|
|
|
487
487
|
stylisticConfig()
|
|
488
488
|
];
|
|
489
489
|
const featureConfigs = await Promise.all([
|
|
490
|
-
isTypescriptEnabled && unwrap(import("./typescript-
|
|
490
|
+
isTypescriptEnabled && unwrap(import("./typescript-w0LuBIDT.mjs")),
|
|
491
491
|
isReactEnabled && unwrap(import("./react-sWdvHd_J.mjs")),
|
|
492
492
|
isTanstackQueryEnabled && unwrap(import("./tanstack-query-D1gpzKY3.mjs")),
|
|
493
493
|
isAstroEnabled && unwrap(import("./astro-D3Zl135N.mjs")),
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { a as GLOB_JS, l as GLOB_TESTS, o as GLOB_JSX } from "./globs-C_yfK842.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/rules/typescript.ts
|
|
4
|
-
const disabledEslintRules = {
|
|
4
|
+
const disabledEslintRules = {
|
|
5
|
+
"no-unused-private-class-members": "off",
|
|
6
|
+
"no-use-before-define": "off"
|
|
7
|
+
};
|
|
5
8
|
const typescriptRules = {
|
|
9
|
+
...disabledEslintRules,
|
|
6
10
|
"@typescript-eslint/consistent-type-exports": ["error", { fixMixedExportsWithInlineTypeSpecifier: false }],
|
|
7
11
|
"@typescript-eslint/consistent-type-imports": ["error", { fixStyle: "separate-type-imports" }],
|
|
8
12
|
"@typescript-eslint/no-deprecated": "warn",
|
|
9
13
|
"@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: { attributes: false } }],
|
|
10
14
|
"@typescript-eslint/no-unnecessary-type-conversion": "error",
|
|
15
|
+
"@typescript-eslint/no-unused-private-class-members": "error",
|
|
11
16
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
12
17
|
args: "all",
|
|
13
18
|
argsIgnorePattern: "^_",
|
|
@@ -25,8 +30,7 @@ const typescriptRules = {
|
|
|
25
30
|
}],
|
|
26
31
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
27
32
|
"@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
|
|
28
|
-
"@typescript-eslint/switch-exhaustiveness-check": "error"
|
|
29
|
-
...disabledEslintRules
|
|
33
|
+
"@typescript-eslint/switch-exhaustiveness-check": "error"
|
|
30
34
|
};
|
|
31
35
|
|
|
32
36
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
47
47
|
"@types/eslint": "9.6.1",
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
49
|
-
"@typescript-eslint/utils": "^8.
|
|
50
|
-
"@vitest/eslint-plugin": "^1.4.
|
|
48
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
49
|
+
"@typescript-eslint/utils": "^8.47.0",
|
|
50
|
+
"@vitest/eslint-plugin": "^1.4.3",
|
|
51
51
|
"astro-eslint-parser": "^1.2.2",
|
|
52
52
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
77
77
|
"globals": "^16.5.0",
|
|
78
78
|
"local-pkg": "^1.1.2",
|
|
79
|
-
"typescript-eslint": "^8.
|
|
79
|
+
"typescript-eslint": "^8.47.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"eslint": "^9.10.0"
|