@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/dist/preset.mjs CHANGED
@@ -12833,7 +12833,10 @@ const plugin = {
12833
12833
  processors: {}
12834
12834
  };
12835
12835
  plugin.configs && (plugin.configs.recommended = [
12836
- { name: "banner/recommended/plugin", plugins: { banner: plugin } },
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
- // eslint.configs.recommended,
12886
+ eslint.configs.recommended,
12884
12887
  // https://typescript-eslint.io/
12885
- // ...tsEslint.configs.recommended.map(config => ({
12886
- // ...config,
12887
- // files: [TS_FILE] // We use TS config only for TS files
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"][0],
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: ["*.json", "*.jsonc"],
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: ["**/*.ts"],
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$1.configs.recommended.reduce(
13017
- (ret, record) => ({ ...ret, ...record.rules }),
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
- ...plugin.configs["recommended"][1]?.rules,
13026
+ // ...banner.configs!["recommended"]![1]?.rules,
13026
13027
  ...config$1,
13027
- "banner/banner": [
13028
- "error",
13029
- {
13030
- repositoryName: options.name,
13031
- banner: options.banner,
13032
- commentType: "block",
13033
- numNewlines: 2
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: [