@storm-software/eslint 0.78.4 → 0.78.5
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 +3371 -240
- package/dist/preset.d.ts +3371 -240
- package/dist/preset.mjs +33 -32
- package/dist/rules.d.ts +3371 -240
- package/package.json +1 -1
package/dist/preset.mjs
CHANGED
|
@@ -12833,7 +12833,10 @@ const plugin = {
|
|
|
12833
12833
|
processors: {}
|
|
12834
12834
|
};
|
|
12835
12835
|
plugin.configs && (plugin.configs.recommended = [
|
|
12836
|
-
{
|
|
12836
|
+
{
|
|
12837
|
+
name: "banner/recommended/plugin",
|
|
12838
|
+
plugins: { banner: plugin }
|
|
12839
|
+
},
|
|
12837
12840
|
{
|
|
12838
12841
|
name: "banner/recommended/code-files",
|
|
12839
12842
|
files: [
|
|
@@ -12880,17 +12883,15 @@ function getStormConfig(options = {
|
|
|
12880
12883
|
}, ...userConfigs) {
|
|
12881
12884
|
const configs = [
|
|
12882
12885
|
// https://eslint.org/docs/latest/rules/
|
|
12883
|
-
|
|
12886
|
+
eslint.configs.recommended,
|
|
12884
12887
|
// https://typescript-eslint.io/
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12888
|
+
...tsEslint$1.configs.recommended.map((config) => ({
|
|
12889
|
+
...config,
|
|
12890
|
+
files: [TS_FILE]
|
|
12891
|
+
// We use TS config only for TS files
|
|
12892
|
+
})),
|
|
12889
12893
|
// https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
12890
|
-
|
|
12891
|
-
// ...unicorn.configs["flat/recommended"],
|
|
12892
|
-
// files: ["**/*.ts"]
|
|
12893
|
-
// } as Linter.FlatConfig,
|
|
12894
|
+
unicorn.configs["flat/recommended"],
|
|
12894
12895
|
// Prettier
|
|
12895
12896
|
prettierConfig,
|
|
12896
12897
|
// Import
|
|
@@ -12902,7 +12903,7 @@ function getStormConfig(options = {
|
|
|
12902
12903
|
// },
|
|
12903
12904
|
// Banner
|
|
12904
12905
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
12905
|
-
plugin.configs["recommended"]
|
|
12906
|
+
...plugin.configs["recommended"],
|
|
12906
12907
|
// TSDoc
|
|
12907
12908
|
// https://www.npmjs.com/package/eslint-plugin-tsdoc
|
|
12908
12909
|
{ plugins: { tsdoc } },
|
|
@@ -12918,7 +12919,7 @@ function getStormConfig(options = {
|
|
|
12918
12919
|
// https://www.npmjs.com/package/eslint-plugin-json
|
|
12919
12920
|
// json.configs["recommended-with-comments"],
|
|
12920
12921
|
{
|
|
12921
|
-
files: ["*.
|
|
12922
|
+
files: ["*.jsonc"],
|
|
12922
12923
|
languageOptions: {
|
|
12923
12924
|
parser: jsoncParser
|
|
12924
12925
|
}
|
|
@@ -12974,7 +12975,7 @@ function getStormConfig(options = {
|
|
|
12974
12975
|
...userConfigs
|
|
12975
12976
|
].filter(Boolean);
|
|
12976
12977
|
const typescriptConfig = {
|
|
12977
|
-
files: [
|
|
12978
|
+
files: [TS_FILE],
|
|
12978
12979
|
languageOptions: {
|
|
12979
12980
|
globals: {
|
|
12980
12981
|
...Object.fromEntries(
|
|
@@ -13011,28 +13012,28 @@ function getStormConfig(options = {
|
|
|
13011
13012
|
},
|
|
13012
13013
|
rules: {
|
|
13013
13014
|
// // https://eslint.org/docs/latest/rules/
|
|
13014
|
-
...eslint.configs.recommended.rules,
|
|
13015
|
+
// ...eslint.configs.recommended.rules,
|
|
13015
13016
|
// // https://typescript-eslint.io/
|
|
13016
|
-
...tsEslint
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
),
|
|
13020
|
-
// Prettier
|
|
13021
|
-
...prettierConfig.rules,
|
|
13022
|
-
// https://www.npmjs.com/package/eslint-plugin-unicorn
|
|
13023
|
-
...unicorn.configs["flat/recommended"].rules,
|
|
13017
|
+
// ...tsEslint.configs.recommended.reduce(
|
|
13018
|
+
// (ret, record) => ({ ...ret, ...record.rules }),
|
|
13019
|
+
// {}
|
|
13020
|
+
// ),
|
|
13021
|
+
// // Prettier
|
|
13022
|
+
// ...prettierConfig.rules,
|
|
13023
|
+
// // https://www.npmjs.com/package/eslint-plugin-unicorn
|
|
13024
|
+
// ...unicorn.configs["flat/recommended"].rules,
|
|
13024
13025
|
// Banner
|
|
13025
|
-
...
|
|
13026
|
+
// ...banner.configs!["recommended"]![1]?.rules,
|
|
13026
13027
|
...config$1,
|
|
13027
|
-
"banner/banner": [
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
],
|
|
13028
|
+
// "banner/banner": [
|
|
13029
|
+
// "error",
|
|
13030
|
+
// {
|
|
13031
|
+
// repositoryName: options.name,
|
|
13032
|
+
// banner: options.banner,
|
|
13033
|
+
// commentType: "block",
|
|
13034
|
+
// numNewlines: 2
|
|
13035
|
+
// }
|
|
13036
|
+
// ],
|
|
13036
13037
|
...options.rules ?? {}
|
|
13037
13038
|
},
|
|
13038
13039
|
ignores: [
|