@caspeco/eslint-config-ts 5.3.0 → 5.4.1
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.ts.map +1 -1
- package/package.json +3 -1
- package/src/index.js +11 -4
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAYA,sDAAsD;AACtD,0BADW,OAAO,mBAAmB,EAAE,WAAW,CAkDhD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/eslint-config-ts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Caspeco ESLint configuration for TypeScript projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@eslint/js": "^9.39.4",
|
|
41
41
|
"eslint": "^9.39.4",
|
|
42
42
|
"eslint-config-prettier": "^10.1.8",
|
|
43
|
+
"eslint-plugin-baseline-js": "^0.7.0",
|
|
43
44
|
"eslint-plugin-check-file": "^3.3.1",
|
|
44
45
|
"eslint-plugin-no-barrel-files": "^1.3.1",
|
|
45
46
|
"typescript-eslint": "^8.59.1"
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"@eslint/js": "^9.39.4",
|
|
49
50
|
"eslint": "^9.39.4",
|
|
50
51
|
"eslint-config-prettier": "^10.1.8",
|
|
52
|
+
"eslint-plugin-baseline-js": "^0.7.0",
|
|
51
53
|
"eslint-plugin-check-file": "^3.3.1",
|
|
52
54
|
"eslint-plugin-no-barrel-files": "^1.2.2",
|
|
53
55
|
"typescript-eslint": "^8.57.2"
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { configs as typescriptEslintConfig, parser
|
|
1
|
+
import { configs as typescriptEslintConfig, parser } from "typescript-eslint";
|
|
2
2
|
import js from "@eslint/js";
|
|
3
3
|
import checkFile from "eslint-plugin-check-file";
|
|
4
4
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
5
5
|
import noBarrelFilesPlugin from "eslint-plugin-no-barrel-files";
|
|
6
|
+
import baselineJs from "eslint-plugin-baseline-js";
|
|
7
|
+
|
|
8
|
+
const baselineRecommendedTs = baselineJs.configs["recommended-ts"]({
|
|
9
|
+
available: "widely",
|
|
10
|
+
level: "warn",
|
|
11
|
+
});
|
|
6
12
|
|
|
7
13
|
/** @type {import('typescript-eslint').ConfigArray} */
|
|
8
14
|
const flatConfig = [
|
|
@@ -12,8 +18,6 @@ const flatConfig = [
|
|
|
12
18
|
languageOptions: {
|
|
13
19
|
parserOptions: {
|
|
14
20
|
projectService: true,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
tsconfigRootDir: import.meta.name,
|
|
17
21
|
},
|
|
18
22
|
},
|
|
19
23
|
},
|
|
@@ -28,11 +32,14 @@ const flatConfig = [
|
|
|
28
32
|
sourceType: "module",
|
|
29
33
|
},
|
|
30
34
|
plugins: {
|
|
31
|
-
"
|
|
35
|
+
"baseline-js": baselineJs,
|
|
32
36
|
"check-file": checkFile,
|
|
33
37
|
"no-barrel-files": noBarrelFilesPlugin,
|
|
34
38
|
},
|
|
35
39
|
rules: {
|
|
40
|
+
.../** @type {import('typescript-eslint').ConfigArray[number]['rules']} */ (
|
|
41
|
+
baselineRecommendedTs.rules
|
|
42
|
+
),
|
|
36
43
|
eqeqeq: ["error", "always"],
|
|
37
44
|
"no-barrel-files/no-barrel-files": "error",
|
|
38
45
|
"check-file/filename-naming-convention": [
|