@tb-dev/eslint-config 6.6.1 → 6.7.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.cjs +9 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -927,7 +927,15 @@ async function typescript(options) {
|
|
|
927
927
|
}
|
|
928
928
|
},
|
|
929
929
|
plugins: { "@typescript-eslint": tsPlugin },
|
|
930
|
-
rules
|
|
930
|
+
rules,
|
|
931
|
+
overrides: [
|
|
932
|
+
{
|
|
933
|
+
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
934
|
+
rules: {
|
|
935
|
+
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
]
|
|
931
939
|
};
|
|
932
940
|
}
|
|
933
941
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare interface ConfigObject {
|
|
|
9
9
|
parserOptions?: Record<string, unknown>;
|
|
10
10
|
sourceType?: 'module';
|
|
11
11
|
};
|
|
12
|
+
overrides?: Record<string, unknown>[];
|
|
12
13
|
plugins?: Record<string, unknown>;
|
|
13
14
|
processor?: unknown;
|
|
14
15
|
rules: Rules;
|
|
@@ -41,6 +42,10 @@ declare interface ConfigOptions {
|
|
|
41
42
|
* @see https://typescript-eslint.io/rules/no-floating-promises#allowforknownsafepromises
|
|
42
43
|
*/
|
|
43
44
|
knownSafePromises?: KnownSafePromise[];
|
|
45
|
+
/**
|
|
46
|
+
* @see https://typescript-eslint.io/rules/explicit-module-boundary-types#configuring-in-a-mixed-jsts-codebase
|
|
47
|
+
*/
|
|
48
|
+
moduleBoundaryTypesFiles?: string[];
|
|
44
49
|
/**
|
|
45
50
|
* @see https://github.com/jsx-eslint/eslint-plugin-react#configuration
|
|
46
51
|
*/
|
package/dist/index.js
CHANGED
|
@@ -923,7 +923,15 @@ async function typescript(options) {
|
|
|
923
923
|
}
|
|
924
924
|
},
|
|
925
925
|
plugins: { "@typescript-eslint": tsPlugin },
|
|
926
|
-
rules
|
|
926
|
+
rules,
|
|
927
|
+
overrides: [
|
|
928
|
+
{
|
|
929
|
+
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
930
|
+
rules: {
|
|
931
|
+
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
]
|
|
927
935
|
};
|
|
928
936
|
}
|
|
929
937
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
34
34
|
"eslint-plugin-vue": "^10.0.0",
|
|
35
35
|
"globals": "^16.0.0",
|
|
36
|
-
"svelte": "^5.
|
|
36
|
+
"svelte": "^5.25.2",
|
|
37
37
|
"svelte-eslint-parser": "^1.1.0",
|
|
38
38
|
"vue-eslint-parser": "^10.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^22.13.
|
|
42
|
-
"eslint": "^9.
|
|
41
|
+
"@types/node": "^22.13.11",
|
|
42
|
+
"eslint": "^9.23.0",
|
|
43
43
|
"prettier": "^3.5.3",
|
|
44
44
|
"tslib": "^2.8.1",
|
|
45
45
|
"typescript": "^5.8.2",
|