@codeperfect/eslint-config 1.7.0 → 1.8.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.
|
Binary file
|
|
@@ -10,11 +10,11 @@ import { defineConfig, globalIgnores } from "eslint/config";
|
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
12
|
export function eslint() {
|
|
13
|
-
return defineConfig(configs.recommended, globalIgnores(["**/dist/**", "docs/", "**/coverage", "
|
|
13
|
+
return defineConfig(configs.recommended, globalIgnores(["**/dist/**", "docs/", "**/coverage", "**/.stryker-tmp"], "@eslint/js/custom-ignore-directory"), {
|
|
14
14
|
linterOptions: {
|
|
15
15
|
reportUnusedDisableDirectives: "error",
|
|
16
16
|
reportUnusedInlineConfigs: "error",
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNsaW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2luZnJhc3RydWN0dXJlL2NvcmUvZXNsaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckMsT0FBTyxFQUFFLFlBQVksRUFBRSxhQUFhLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFNUQ7Ozs7Ozs7O0dBUUc7QUFDSCxNQUFNLFVBQVUsTUFBTTtJQUNwQixPQUFPLFlBQVksQ0FDakIsT0FBTyxDQUFDLFdBQVcsRUFDbkIsYUFBYSxDQUNYLENBQUMsWUFBWSxFQUFFLE9BQU8sRUFBRSxhQUFhLEVBQUUsaUJBQWlCLENBQUMsRUFDekQsb0NBQW9DLENBQ3JDLEVBQ0Q7UUFDRSxhQUFhLEVBQUU7WUFDY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BcImVycm9yXCIsXG4gICAgICAgIHJlcG9ydFVudXNlZElubGluZUNvbmZpZ3M6IFwiZXJyb3JcIixcbiAgICAgIH0sXG4gICAgfSxcbiAgKTtcbn1cbiJdfQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/core/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/core/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC;;;;;;;GAOG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAW3D"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
|
-
/** TypeScript rule names to disable. */
|
|
3
|
-
const off = [
|
|
4
|
-
"class-methods-use-this",
|
|
5
|
-
"member-ordering",
|
|
6
|
-
"naming-convention",
|
|
7
|
-
"no-magic-numbers",
|
|
8
|
-
"no-use-before-define",
|
|
9
|
-
"prefer-readonly-parameter-types",
|
|
10
|
-
];
|
|
11
|
-
/** TypeScript rules disabled as a map. */
|
|
12
|
-
const customOff = Object.fromEntries(off.map((rule) => [`@typescript-eslint/${rule}`, "off"]));
|
|
13
2
|
/**
|
|
14
3
|
* Build and return TypeScript-specific ESLint configs and rule adjustments.
|
|
15
4
|
* @returns The TypeScript ESLint config array.
|
|
@@ -20,45 +9,13 @@ const customOff = Object.fromEntries(off.map((rule) => [`@typescript-eslint/${ru
|
|
|
20
9
|
*/
|
|
21
10
|
export async function typescript() {
|
|
22
11
|
const { configs } = await import("typescript-eslint");
|
|
23
|
-
const {
|
|
24
|
-
return defineConfig(
|
|
12
|
+
const { strictTypeChecked, stylisticTypeChecked } = configs;
|
|
13
|
+
return defineConfig(strictTypeChecked, stylisticTypeChecked, {
|
|
25
14
|
languageOptions: {
|
|
26
15
|
parserOptions: {
|
|
27
16
|
projectService: true,
|
|
28
17
|
},
|
|
29
18
|
},
|
|
30
|
-
}, {
|
|
31
|
-
name: "@typescript-eslint/deprecated",
|
|
32
|
-
rules: {
|
|
33
|
-
"@typescript-eslint/no-type-alias": "off",
|
|
34
|
-
"@typescript-eslint/sort-type-constituents": "off",
|
|
35
|
-
},
|
|
36
|
-
}, {
|
|
37
|
-
name: "@typescript-eslint/custom",
|
|
38
|
-
rules: {
|
|
39
|
-
...customOff,
|
|
40
|
-
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
41
|
-
"@typescript-eslint/strict-boolean-expressions": [
|
|
42
|
-
"error",
|
|
43
|
-
{
|
|
44
|
-
allowNullableEnum: false,
|
|
45
|
-
allowNullableObject: false,
|
|
46
|
-
allowNumber: false,
|
|
47
|
-
allowString: false,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
"@typescript-eslint/unified-signatures": [
|
|
51
|
-
"error",
|
|
52
|
-
{ ignoreDifferentlyNamedParameters: true },
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
}, {
|
|
56
|
-
files: ["**/*.spec.ts", "**/*.e2e.ts"],
|
|
57
|
-
name: "@typescript-eslint/custom-spec",
|
|
58
|
-
rules: {
|
|
59
|
-
"@typescript-eslint/init-declarations": "off",
|
|
60
|
-
"@typescript-eslint/unbound-method": "off",
|
|
61
|
-
},
|
|
62
19
|
});
|
|
63
20
|
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbmZyYXN0cnVjdHVyZS9jb3JlL3R5cGVzY3JpcHQudHMiXSw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eyBjb25maWdzIH0gPSBhd2FpdCBpbXBvcnQoXCJ0eXBlc2NyaXB0LWVzbGludFwiKTtcclxuICBjb25zdCB7IHN0cmljdFR5cGVDaGVja2VkLCBzdHlsaXN0aWNUeXBlQ2hlY2tlZCB9ID0gY29uZmlncztcclxuXHJcbiAgcmV0dXJuIGRlZmluZUNvbmZpZyhzdHJpY3RUeXBlQ2hlY2tlZCwgc3R5bGlzdGljVHlwZUNoZWNrZWQsIHtcclxuICAgIGxhbmd1YWdlT3B0aW9uczoge1xyXG4gICAgICBwYXJzZXJPcHRpb25zOiB7XHJcbiAgICAgICAgcHJvamVjdFNlcnZpY2U6IHRydWUsXHJcbiAgICAgIH0sXHJcbiAgICB9LFxyXG4gIH0pO1xyXG59XHJcbiJdfQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeperfect/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A shareable flat ESLint config for TypeScript repositories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@eslint/js": "^10.0.1",
|
|
83
|
-
"eslint": "^10.
|
|
83
|
+
"eslint": "^10.4.0",
|
|
84
84
|
"jiti": "^2.7.0",
|
|
85
85
|
"typescript": "^6.0.3",
|
|
86
|
-
"typescript-eslint": "^8.59.
|
|
86
|
+
"typescript-eslint": "^8.59.3"
|
|
87
87
|
},
|
|
88
88
|
"optionalDependencies": {
|
|
89
|
-
"@angular-eslint/eslint-plugin": "^21.
|
|
90
|
-
"@angular-eslint/eslint-plugin-template": "^21.
|
|
89
|
+
"@angular-eslint/eslint-plugin": "^21.4.0",
|
|
90
|
+
"@angular-eslint/eslint-plugin-template": "^21.4.0",
|
|
91
91
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
92
92
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
93
93
|
"@vitest/eslint-plugin": "^1.6.17",
|
|
@@ -104,12 +104,13 @@
|
|
|
104
104
|
"globals": "^17.6.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
+
"@angular-eslint/eslint-plugin": "^21.4.0",
|
|
108
|
+
"@angular-eslint/eslint-plugin-template": "^21.4.0",
|
|
107
109
|
"@codeperfect/commitlint-config-emoji": "^1.0.0",
|
|
110
|
+
"@codeperfect/eslint-config": "^1.7.0",
|
|
108
111
|
"@codeperfect/eslint-plugin": "^2.1.0",
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"@commitlint/config-conventional": "^21.0.0",
|
|
112
|
-
"@commitlint/cz-commitlint": "^21.0.0",
|
|
112
|
+
"@commitlint/config-conventional": "^21.0.1",
|
|
113
|
+
"@commitlint/cz-commitlint": "^21.0.1",
|
|
113
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
114
115
|
"@eslint/js": "^10.0.1",
|
|
115
116
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -120,12 +121,12 @@
|
|
|
120
121
|
"@stryker-mutator/vitest-runner": "^9.6.1",
|
|
121
122
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
122
123
|
"@types/lodash-es": "^4.17.12",
|
|
123
|
-
"@types/node": "^25.
|
|
124
|
-
"@vitest/coverage-v8": "^4.1.
|
|
124
|
+
"@types/node": "^25.8.0",
|
|
125
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
125
126
|
"@vitest/eslint-plugin": "^1.6.17",
|
|
126
127
|
"chalk": "^5.6.2",
|
|
127
128
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
128
|
-
"eslint": "^10.
|
|
129
|
+
"eslint": "^10.4.0",
|
|
129
130
|
"eslint-config-prettier": "^10.1.8",
|
|
130
131
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
131
132
|
"eslint-plugin-boundaries": "^6.0.2",
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
"globals": "^17.6.0",
|
|
139
140
|
"husky": "^9.1.7",
|
|
140
141
|
"jiti": "^2.7.0",
|
|
141
|
-
"lint-staged": "^17.0.
|
|
142
|
+
"lint-staged": "^17.0.5",
|
|
142
143
|
"lodash-es": "^4.18.1",
|
|
143
144
|
"rimraf": "^6.1.3",
|
|
144
145
|
"semantic-release": "^25.0.3",
|
|
@@ -146,8 +147,8 @@
|
|
|
146
147
|
"typedoc": "^0.28.19",
|
|
147
148
|
"typedoc-plugin-markdown": "^4.11.0",
|
|
148
149
|
"typescript": "^6.0.3",
|
|
149
|
-
"typescript-eslint": "^8.59.
|
|
150
|
-
"vitest": "^4.1.
|
|
150
|
+
"typescript-eslint": "^8.59.3",
|
|
151
|
+
"vitest": "^4.1.6"
|
|
151
152
|
},
|
|
152
153
|
"engines": {
|
|
153
154
|
"node": ">=24.0.0"
|