@rebeccastevens/eslint-config 3.0.0-next.21 → 3.0.0-next.22
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 +54 -0
- package/dist/index.mjs +5 -10
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -5918,6 +5918,60 @@ type FunctionalImmutableData = [
|
|
|
5918
5918
|
ignoreNonConstDeclarations?: (boolean | {
|
|
5919
5919
|
treatParametersAsConst?: boolean;
|
|
5920
5920
|
});
|
|
5921
|
+
overrides?: {
|
|
5922
|
+
specifiers?: (({
|
|
5923
|
+
name?: (string | string[]);
|
|
5924
|
+
pattern?: (string | string[]);
|
|
5925
|
+
ignoreName?: (string | string[]);
|
|
5926
|
+
ignorePattern?: (string | string[]);
|
|
5927
|
+
from?: "file";
|
|
5928
|
+
path?: string;
|
|
5929
|
+
} | {
|
|
5930
|
+
name?: (string | string[]);
|
|
5931
|
+
pattern?: (string | string[]);
|
|
5932
|
+
ignoreName?: (string | string[]);
|
|
5933
|
+
ignorePattern?: (string | string[]);
|
|
5934
|
+
from?: "lib";
|
|
5935
|
+
} | {
|
|
5936
|
+
name?: (string | string[]);
|
|
5937
|
+
pattern?: (string | string[]);
|
|
5938
|
+
ignoreName?: (string | string[]);
|
|
5939
|
+
ignorePattern?: (string | string[]);
|
|
5940
|
+
from?: "package";
|
|
5941
|
+
package?: string;
|
|
5942
|
+
}) | ({
|
|
5943
|
+
name?: (string | string[]);
|
|
5944
|
+
pattern?: (string | string[]);
|
|
5945
|
+
ignoreName?: (string | string[]);
|
|
5946
|
+
ignorePattern?: (string | string[]);
|
|
5947
|
+
from?: "file";
|
|
5948
|
+
path?: string;
|
|
5949
|
+
} | {
|
|
5950
|
+
name?: (string | string[]);
|
|
5951
|
+
pattern?: (string | string[]);
|
|
5952
|
+
ignoreName?: (string | string[]);
|
|
5953
|
+
ignorePattern?: (string | string[]);
|
|
5954
|
+
from?: "lib";
|
|
5955
|
+
} | {
|
|
5956
|
+
name?: (string | string[]);
|
|
5957
|
+
pattern?: (string | string[]);
|
|
5958
|
+
ignoreName?: (string | string[]);
|
|
5959
|
+
ignorePattern?: (string | string[]);
|
|
5960
|
+
from?: "package";
|
|
5961
|
+
package?: string;
|
|
5962
|
+
})[]);
|
|
5963
|
+
options?: {
|
|
5964
|
+
ignoreIdentifierPattern?: (string | string[]);
|
|
5965
|
+
ignoreAccessorPattern?: (string | string[]);
|
|
5966
|
+
ignoreClasses?: (boolean | "fieldsOnly");
|
|
5967
|
+
ignoreImmediateMutation?: boolean;
|
|
5968
|
+
ignoreNonConstDeclarations?: (boolean | {
|
|
5969
|
+
treatParametersAsConst?: boolean;
|
|
5970
|
+
});
|
|
5971
|
+
};
|
|
5972
|
+
inherit?: boolean;
|
|
5973
|
+
disable?: boolean;
|
|
5974
|
+
}[];
|
|
5921
5975
|
}
|
|
5922
5976
|
];
|
|
5923
5977
|
// ----- functional/no-conditional-statements -----
|
package/dist/index.mjs
CHANGED
|
@@ -3478,18 +3478,13 @@ function rsEslint(options, ...userConfigs) {
|
|
|
3478
3478
|
? functionalOptions.functionalEnforcement ?? "recommended"
|
|
3479
3479
|
: "recommended";
|
|
3480
3480
|
const hasTypeScript = Boolean(typeScriptOptions);
|
|
3481
|
-
const typeScriptSubOptions = resolveSubOptions(options, "typescript");
|
|
3481
|
+
const { filesTypeAware, tsconfig, parserOptions, ...typeScriptSubOptions } = resolveSubOptions(options, "typescript");
|
|
3482
3482
|
const typescriptConfigOptions = {
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
: defaultFilesTypesAware,
|
|
3483
|
+
...typeScriptSubOptions,
|
|
3484
|
+
filesTypeAware: filesTypeAware ?? defaultFilesTypesAware,
|
|
3486
3485
|
parserOptions: {
|
|
3487
|
-
project:
|
|
3488
|
-
|
|
3489
|
-
: null,
|
|
3490
|
-
...("parserOptions" in typeScriptSubOptions
|
|
3491
|
-
? typeScriptSubOptions.parserOptions
|
|
3492
|
-
: {}),
|
|
3486
|
+
project: tsconfig ?? null,
|
|
3487
|
+
...parserOptions,
|
|
3493
3488
|
},
|
|
3494
3489
|
};
|
|
3495
3490
|
const functionalConfigOptions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.22",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
88
88
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
89
89
|
"eslint-plugin-format": "0.1.1",
|
|
90
|
-
"eslint-plugin-functional": "7.0.0-alpha.
|
|
90
|
+
"eslint-plugin-functional": "7.0.0-alpha.5",
|
|
91
91
|
"eslint-plugin-import-x": "0.5.0",
|
|
92
92
|
"eslint-plugin-jsdoc": "48.2.3",
|
|
93
93
|
"eslint-plugin-jsonc": "2.15.1",
|