@tb-dev/eslint-config 6.7.0 → 6.7.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.cjs +24 -24
- package/dist/index.d.ts +1 -2
- package/dist/index.js +24 -24
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -911,32 +911,32 @@ async function typescript(options) {
|
|
|
911
911
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
912
912
|
...options.overrides?.typescript
|
|
913
913
|
};
|
|
914
|
-
return
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
914
|
+
return [
|
|
915
|
+
{
|
|
916
|
+
files,
|
|
917
|
+
languageOptions: {
|
|
918
|
+
ecmaVersion: "latest",
|
|
919
|
+
sourceType: "module",
|
|
920
|
+
parser: tsParser,
|
|
921
|
+
parserOptions: {
|
|
922
|
+
project: options.project,
|
|
923
|
+
tsconfigRootDir: process.cwd(),
|
|
924
|
+
extraFileExtensions,
|
|
925
|
+
ecmaFeatures: {
|
|
926
|
+
jsx: isEnabled(options.features, "react")
|
|
927
|
+
}
|
|
926
928
|
}
|
|
927
|
-
}
|
|
929
|
+
},
|
|
930
|
+
plugins: { "@typescript-eslint": tsPlugin },
|
|
931
|
+
rules
|
|
928
932
|
},
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
934
|
-
rules: {
|
|
935
|
-
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
936
|
-
}
|
|
933
|
+
{
|
|
934
|
+
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
935
|
+
rules: {
|
|
936
|
+
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
937
937
|
}
|
|
938
|
-
|
|
939
|
-
|
|
938
|
+
}
|
|
939
|
+
];
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
async function reactHooks(options) {
|
|
@@ -1070,7 +1070,7 @@ async function defineConfig(options) {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
const objects = await Promise.all([
|
|
1072
1072
|
javascript(options),
|
|
1073
|
-
typescript(options),
|
|
1073
|
+
...await typescript(options),
|
|
1074
1074
|
...await vue(options),
|
|
1075
1075
|
...await svelte(options),
|
|
1076
1076
|
...await react(options),
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
declare interface ConfigObject {
|
|
3
3
|
files: string[];
|
|
4
4
|
ignores?: Ignores['ignores'];
|
|
5
|
-
languageOptions
|
|
5
|
+
languageOptions?: {
|
|
6
6
|
ecmaVersion?: 'latest';
|
|
7
7
|
globals?: Record<string, boolean | 'readonly' | 'writeable'>;
|
|
8
8
|
parser?: unknown;
|
|
9
9
|
parserOptions?: Record<string, unknown>;
|
|
10
10
|
sourceType?: 'module';
|
|
11
11
|
};
|
|
12
|
-
overrides?: Record<string, unknown>[];
|
|
13
12
|
plugins?: Record<string, unknown>;
|
|
14
13
|
processor?: unknown;
|
|
15
14
|
rules: Rules;
|
package/dist/index.js
CHANGED
|
@@ -907,32 +907,32 @@ async function typescript(options) {
|
|
|
907
907
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
908
908
|
...options.overrides?.typescript
|
|
909
909
|
};
|
|
910
|
-
return
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
910
|
+
return [
|
|
911
|
+
{
|
|
912
|
+
files,
|
|
913
|
+
languageOptions: {
|
|
914
|
+
ecmaVersion: "latest",
|
|
915
|
+
sourceType: "module",
|
|
916
|
+
parser: tsParser,
|
|
917
|
+
parserOptions: {
|
|
918
|
+
project: options.project,
|
|
919
|
+
tsconfigRootDir: process.cwd(),
|
|
920
|
+
extraFileExtensions,
|
|
921
|
+
ecmaFeatures: {
|
|
922
|
+
jsx: isEnabled(options.features, "react")
|
|
923
|
+
}
|
|
922
924
|
}
|
|
923
|
-
}
|
|
925
|
+
},
|
|
926
|
+
plugins: { "@typescript-eslint": tsPlugin },
|
|
927
|
+
rules
|
|
924
928
|
},
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
930
|
-
rules: {
|
|
931
|
-
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
932
|
-
}
|
|
929
|
+
{
|
|
930
|
+
files: options.moduleBoundaryTypesFiles ?? ["*.ts", "*.tsx"],
|
|
931
|
+
rules: {
|
|
932
|
+
"@typescript-eslint/explicit-module-boundary-types": "error"
|
|
933
933
|
}
|
|
934
|
-
|
|
935
|
-
|
|
934
|
+
}
|
|
935
|
+
];
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
async function reactHooks(options) {
|
|
@@ -1066,7 +1066,7 @@ async function defineConfig(options) {
|
|
|
1066
1066
|
};
|
|
1067
1067
|
const objects = await Promise.all([
|
|
1068
1068
|
javascript(options),
|
|
1069
|
-
typescript(options),
|
|
1069
|
+
...await typescript(options),
|
|
1070
1070
|
...await vue(options),
|
|
1071
1071
|
...await svelte(options),
|
|
1072
1072
|
...await react(options),
|