@storm-software/eslint 0.78.6 → 0.79.0
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 +6252 -655
- package/dist/preset.d.ts +6252 -655
- package/dist/preset.mjs +43 -11
- package/dist/rules.d.ts +6253 -656
- package/package.json +1 -1
package/dist/preset.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const __dirname = banner_dirname(__filename);
|
|
|
7
7
|
import { plugins, rules } from '@cspell/eslint-plugin/recommended';
|
|
8
8
|
import next from '@next/eslint-plugin-next';
|
|
9
9
|
import nxPlugin from '@nx/eslint-plugin';
|
|
10
|
+
import json from 'eslint-plugin-json';
|
|
10
11
|
import markdown from 'eslint-plugin-markdown';
|
|
11
12
|
import prettierConfig from 'eslint-plugin-prettier/recommended';
|
|
12
13
|
import react from 'eslint-plugin-react';
|
|
@@ -16,7 +17,7 @@ import tsdoc from 'eslint-plugin-tsdoc';
|
|
|
16
17
|
import unicorn from 'eslint-plugin-unicorn';
|
|
17
18
|
import yml from 'eslint-plugin-yml';
|
|
18
19
|
import globals from 'globals';
|
|
19
|
-
import
|
|
20
|
+
import tsEslint$1 from 'typescript-eslint';
|
|
20
21
|
import require$$0 from 'eslint/use-at-your-own-risk';
|
|
21
22
|
import require$$0$1 from 'eslint';
|
|
22
23
|
import os from 'node:os';
|
|
@@ -12888,10 +12889,11 @@ function getStormConfig(options = {
|
|
|
12888
12889
|
// https://eslint.org/docs/latest/rules/
|
|
12889
12890
|
eslint.configs.recommended,
|
|
12890
12891
|
// https://typescript-eslint.io/
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12892
|
+
...tsEslint$1.configs.recommended.map((config) => ({
|
|
12893
|
+
...config,
|
|
12894
|
+
files: [TS_FILE]
|
|
12895
|
+
// We use TS config only for TS files
|
|
12896
|
+
})),
|
|
12895
12897
|
// https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
12896
12898
|
unicorn.configs["flat/recommended"],
|
|
12897
12899
|
// Prettier
|
|
@@ -12908,9 +12910,9 @@ function getStormConfig(options = {
|
|
|
12908
12910
|
...plugin.configs["recommended"],
|
|
12909
12911
|
// TSDoc
|
|
12910
12912
|
// https://www.npmjs.com/package/eslint-plugin-tsdoc
|
|
12911
|
-
{ plugins: { tsdoc } },
|
|
12912
12913
|
{
|
|
12913
12914
|
files: [TS_FILE],
|
|
12915
|
+
plugins: { tsdoc },
|
|
12914
12916
|
rules: config
|
|
12915
12917
|
},
|
|
12916
12918
|
// NX
|
|
@@ -12919,11 +12921,11 @@ function getStormConfig(options = {
|
|
|
12919
12921
|
},
|
|
12920
12922
|
// Json
|
|
12921
12923
|
// https://www.npmjs.com/package/eslint-plugin-json
|
|
12922
|
-
// json.configs["recommended-with-comments"],
|
|
12923
12924
|
{
|
|
12924
|
-
files: ["
|
|
12925
|
-
|
|
12926
|
-
|
|
12925
|
+
files: ["**/*.json"],
|
|
12926
|
+
...json.configs["recommended"],
|
|
12927
|
+
rules: {
|
|
12928
|
+
"json/json": ["warn", { "allowComments": true }]
|
|
12927
12929
|
}
|
|
12928
12930
|
},
|
|
12929
12931
|
{
|
|
@@ -13014,7 +13016,7 @@ function getStormConfig(options = {
|
|
|
13014
13016
|
},
|
|
13015
13017
|
rules: {
|
|
13016
13018
|
// // https://eslint.org/docs/latest/rules/
|
|
13017
|
-
...eslint.configs.recommended.rules,
|
|
13019
|
+
// ...eslint.configs.recommended.rules,
|
|
13018
13020
|
// // https://typescript-eslint.io/
|
|
13019
13021
|
// ...tsEslint.configs.recommended.reduce(
|
|
13020
13022
|
// (ret, record) => ({ ...ret, ...record.rules }),
|
|
@@ -13068,6 +13070,16 @@ function getStormConfig(options = {
|
|
|
13068
13070
|
},
|
|
13069
13071
|
{
|
|
13070
13072
|
files: ["**/*.tsx"],
|
|
13073
|
+
ignores: [
|
|
13074
|
+
"**/node_modules/**",
|
|
13075
|
+
"**/dist/**",
|
|
13076
|
+
"**/coverage/**",
|
|
13077
|
+
"**/tmp/**",
|
|
13078
|
+
"**/.nx/**",
|
|
13079
|
+
"**/.tamagui/**",
|
|
13080
|
+
"**/.next/**",
|
|
13081
|
+
...options.ignores || []
|
|
13082
|
+
],
|
|
13071
13083
|
...reactHooks.configs?.recommended
|
|
13072
13084
|
}
|
|
13073
13085
|
// {
|
|
@@ -13078,6 +13090,16 @@ function getStormConfig(options = {
|
|
|
13078
13090
|
if (options.useReactCompiler === true) {
|
|
13079
13091
|
reactConfigs.push({
|
|
13080
13092
|
files: ["**/*.tsx"],
|
|
13093
|
+
ignores: [
|
|
13094
|
+
"**/node_modules/**",
|
|
13095
|
+
"**/dist/**",
|
|
13096
|
+
"**/coverage/**",
|
|
13097
|
+
"**/tmp/**",
|
|
13098
|
+
"**/.nx/**",
|
|
13099
|
+
"**/.tamagui/**",
|
|
13100
|
+
"**/.next/**",
|
|
13101
|
+
...options.ignores || []
|
|
13102
|
+
],
|
|
13081
13103
|
plugins: {
|
|
13082
13104
|
"react-compiler": reactCompiler
|
|
13083
13105
|
},
|
|
@@ -13091,6 +13113,16 @@ function getStormConfig(options = {
|
|
|
13091
13113
|
if (options.nextFiles && options.nextFiles.length > 0) {
|
|
13092
13114
|
configs.push({
|
|
13093
13115
|
...next.configs["core-web-vitals"],
|
|
13116
|
+
ignores: [
|
|
13117
|
+
"**/node_modules/**",
|
|
13118
|
+
"**/dist/**",
|
|
13119
|
+
"**/coverage/**",
|
|
13120
|
+
"**/tmp/**",
|
|
13121
|
+
"**/.nx/**",
|
|
13122
|
+
"**/.tamagui/**",
|
|
13123
|
+
"**/.next/**",
|
|
13124
|
+
...options.ignores || []
|
|
13125
|
+
],
|
|
13094
13126
|
files: options.nextFiles
|
|
13095
13127
|
});
|
|
13096
13128
|
}
|