@storm-software/eslint 0.78.3 → 0.78.4
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/README.md +1 -1
- package/dist/preset.d.mts +91 -2344
- package/dist/preset.d.ts +91 -2344
- package/dist/preset.mjs +15 -13
- package/dist/rules.d.ts +91 -2344
- package/package.json +1 -1
package/dist/preset.mjs
CHANGED
|
@@ -12880,15 +12880,17 @@ function getStormConfig(options = {
|
|
|
12880
12880
|
}, ...userConfigs) {
|
|
12881
12881
|
const configs = [
|
|
12882
12882
|
// https://eslint.org/docs/latest/rules/
|
|
12883
|
-
eslint.configs.recommended,
|
|
12883
|
+
// eslint.configs.recommended,
|
|
12884
12884
|
// https://typescript-eslint.io/
|
|
12885
|
-
...tsEslint
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
})),
|
|
12885
|
+
// ...tsEslint.configs.recommended.map(config => ({
|
|
12886
|
+
// ...config,
|
|
12887
|
+
// files: [TS_FILE] // We use TS config only for TS files
|
|
12888
|
+
// })),
|
|
12890
12889
|
// https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
12891
|
-
//
|
|
12890
|
+
// {
|
|
12891
|
+
// ...unicorn.configs["flat/recommended"],
|
|
12892
|
+
// files: ["**/*.ts"]
|
|
12893
|
+
// } as Linter.FlatConfig,
|
|
12892
12894
|
// Prettier
|
|
12893
12895
|
prettierConfig,
|
|
12894
12896
|
// Import
|
|
@@ -12972,7 +12974,7 @@ function getStormConfig(options = {
|
|
|
12972
12974
|
...userConfigs
|
|
12973
12975
|
].filter(Boolean);
|
|
12974
12976
|
const typescriptConfig = {
|
|
12975
|
-
files: [
|
|
12977
|
+
files: ["**/*.ts"],
|
|
12976
12978
|
languageOptions: {
|
|
12977
12979
|
globals: {
|
|
12978
12980
|
...Object.fromEntries(
|
|
@@ -13009,12 +13011,12 @@ function getStormConfig(options = {
|
|
|
13009
13011
|
},
|
|
13010
13012
|
rules: {
|
|
13011
13013
|
// // https://eslint.org/docs/latest/rules/
|
|
13012
|
-
|
|
13014
|
+
...eslint.configs.recommended.rules,
|
|
13013
13015
|
// // https://typescript-eslint.io/
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13016
|
+
...tsEslint$1.configs.recommended.reduce(
|
|
13017
|
+
(ret, record) => ({ ...ret, ...record.rules }),
|
|
13018
|
+
{}
|
|
13019
|
+
),
|
|
13018
13020
|
// Prettier
|
|
13019
13021
|
...prettierConfig.rules,
|
|
13020
13022
|
// https://www.npmjs.com/package/eslint-plugin-unicorn
|