@storm-software/eslint 0.170.93 → 0.170.95
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.cjs +26 -7
- package/dist/preset.js +27 -8
- package/package.json +8 -8
package/dist/preset.cjs
CHANGED
|
@@ -5707,7 +5707,7 @@ init_cjs_shims();
|
|
|
5707
5707
|
|
|
5708
5708
|
// ../eslint-plugin-banner/package.json
|
|
5709
5709
|
var package_default = {
|
|
5710
|
-
version: "0.0.
|
|
5710
|
+
version: "0.0.26"};
|
|
5711
5711
|
|
|
5712
5712
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
5713
5713
|
init_cjs_shims();
|
|
@@ -20095,6 +20095,7 @@ async function react(options = {}) {
|
|
|
20095
20095
|
ignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],
|
|
20096
20096
|
strict = false,
|
|
20097
20097
|
overrides = {},
|
|
20098
|
+
componentExts = [],
|
|
20098
20099
|
tsconfigPath
|
|
20099
20100
|
} = options;
|
|
20100
20101
|
await ensurePackages([
|
|
@@ -20136,8 +20137,11 @@ async function react(options = {}) {
|
|
|
20136
20137
|
(i) => localPkg.isPackageExists(i)
|
|
20137
20138
|
);
|
|
20138
20139
|
const isUsingReactRouter = ReactRouterPackages.some((i) => localPkg.isPackageExists(i));
|
|
20140
|
+
const [pluginTs, parserTs] = await Promise.all([
|
|
20141
|
+
interopDefault(import('@typescript-eslint/eslint-plugin')),
|
|
20142
|
+
interopDefault(import('@typescript-eslint/parser'))
|
|
20143
|
+
]);
|
|
20139
20144
|
return [
|
|
20140
|
-
pluginReactHooks.configs.flat["recommended-latest"],
|
|
20141
20145
|
{
|
|
20142
20146
|
name: "storm/react/setup",
|
|
20143
20147
|
plugins: {
|
|
@@ -20152,6 +20156,7 @@ async function react(options = {}) {
|
|
|
20152
20156
|
"react-web-api": pluginReactWebApi
|
|
20153
20157
|
}
|
|
20154
20158
|
},
|
|
20159
|
+
pluginReactHooks.configs.flat["recommended-latest"],
|
|
20155
20160
|
{
|
|
20156
20161
|
files,
|
|
20157
20162
|
languageOptions: {
|
|
@@ -20165,7 +20170,7 @@ async function react(options = {}) {
|
|
|
20165
20170
|
name: "storm/react/rules",
|
|
20166
20171
|
rules: {
|
|
20167
20172
|
...renameRules2(
|
|
20168
|
-
|
|
20173
|
+
strict ? pluginReact.configs["strict"] : pluginReact.configs["recommended"]
|
|
20169
20174
|
),
|
|
20170
20175
|
"react-hooks/exhaustive-deps": strict ? "error" : "warn",
|
|
20171
20176
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -20238,9 +20243,6 @@ async function react(options = {}) {
|
|
|
20238
20243
|
"react/no-unstable-default-props": "warn",
|
|
20239
20244
|
"react/no-unused-class-component-members": "warn",
|
|
20240
20245
|
"react/no-unused-state": "warn",
|
|
20241
|
-
// "react/prefer-destructuring-assignment": "warn",
|
|
20242
|
-
// "react/prefer-shorthand-boolean": "warn",
|
|
20243
|
-
// "react/prefer-shorthand-fragment": "warn",
|
|
20244
20246
|
...overrides
|
|
20245
20247
|
}
|
|
20246
20248
|
},
|
|
@@ -20248,8 +20250,25 @@ async function react(options = {}) {
|
|
|
20248
20250
|
{
|
|
20249
20251
|
files: filesTypeAware,
|
|
20250
20252
|
ignores: ignoresTypeAware,
|
|
20253
|
+
languageOptions: {
|
|
20254
|
+
parser: parserTs,
|
|
20255
|
+
parserOptions: {
|
|
20256
|
+
extraFileExtensions: componentExts.map((ext2) => `.${ext2}`),
|
|
20257
|
+
ecmaFeatures: { jsx: true },
|
|
20258
|
+
ecmaVersion: 2022,
|
|
20259
|
+
sourceType: "module",
|
|
20260
|
+
projectService: {
|
|
20261
|
+
allowDefaultProject: [GLOB_SRC_FILE],
|
|
20262
|
+
defaultProject: tsconfigPath
|
|
20263
|
+
},
|
|
20264
|
+
tsconfigRootDir: findWorkspaceRoot2()
|
|
20265
|
+
}
|
|
20266
|
+
},
|
|
20251
20267
|
name: "storm/react/type-aware-rules",
|
|
20252
20268
|
rules: {
|
|
20269
|
+
...renameRules2(
|
|
20270
|
+
strict ? pluginReact.configs["strict-type-checked"] : pluginReact.configs["recommended-type-checked"]
|
|
20271
|
+
),
|
|
20253
20272
|
"react/no-leaked-conditional-rendering": "warn",
|
|
20254
20273
|
"react/no-implicit-key": "warn",
|
|
20255
20274
|
"react/no-unused-props": strict ? "error" : "warn"
|
|
@@ -20802,7 +20821,7 @@ async function typescript(options = {}) {
|
|
|
20802
20821
|
allowDefaultProject: [GLOB_SRC_FILE],
|
|
20803
20822
|
defaultProject: tsconfigPath
|
|
20804
20823
|
},
|
|
20805
|
-
tsconfigRootDir:
|
|
20824
|
+
tsconfigRootDir: findWorkspaceRoot2()
|
|
20806
20825
|
} : {},
|
|
20807
20826
|
...parserOptions
|
|
20808
20827
|
}
|
package/dist/preset.js
CHANGED
|
@@ -14,7 +14,7 @@ import { loadConfig } from 'c12';
|
|
|
14
14
|
import defu from 'defu';
|
|
15
15
|
import chalk from 'chalk';
|
|
16
16
|
import fs3, { existsSync, readFileSync } from 'node:fs';
|
|
17
|
-
import path16, {
|
|
17
|
+
import path16, { join } from 'node:path';
|
|
18
18
|
import { readFile } from 'node:fs/promises';
|
|
19
19
|
import { EOL } from 'node:os';
|
|
20
20
|
import cspellConfig from '@cspell/eslint-plugin/recommended';
|
|
@@ -5566,7 +5566,7 @@ init_esm_shims();
|
|
|
5566
5566
|
|
|
5567
5567
|
// ../eslint-plugin-banner/package.json
|
|
5568
5568
|
var package_default = {
|
|
5569
|
-
version: "0.0.
|
|
5569
|
+
version: "0.0.26"};
|
|
5570
5570
|
|
|
5571
5571
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
5572
5572
|
init_esm_shims();
|
|
@@ -19696,6 +19696,7 @@ async function react(options = {}) {
|
|
|
19696
19696
|
ignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],
|
|
19697
19697
|
strict = false,
|
|
19698
19698
|
overrides = {},
|
|
19699
|
+
componentExts = [],
|
|
19699
19700
|
tsconfigPath
|
|
19700
19701
|
} = options;
|
|
19701
19702
|
await ensurePackages([
|
|
@@ -19737,8 +19738,11 @@ async function react(options = {}) {
|
|
|
19737
19738
|
(i) => isPackageExists(i)
|
|
19738
19739
|
);
|
|
19739
19740
|
const isUsingReactRouter = ReactRouterPackages.some((i) => isPackageExists(i));
|
|
19741
|
+
const [pluginTs, parserTs] = await Promise.all([
|
|
19742
|
+
interopDefault(import('@typescript-eslint/eslint-plugin')),
|
|
19743
|
+
interopDefault(import('@typescript-eslint/parser'))
|
|
19744
|
+
]);
|
|
19740
19745
|
return [
|
|
19741
|
-
pluginReactHooks.configs.flat["recommended-latest"],
|
|
19742
19746
|
{
|
|
19743
19747
|
name: "storm/react/setup",
|
|
19744
19748
|
plugins: {
|
|
@@ -19753,6 +19757,7 @@ async function react(options = {}) {
|
|
|
19753
19757
|
"react-web-api": pluginReactWebApi
|
|
19754
19758
|
}
|
|
19755
19759
|
},
|
|
19760
|
+
pluginReactHooks.configs.flat["recommended-latest"],
|
|
19756
19761
|
{
|
|
19757
19762
|
files,
|
|
19758
19763
|
languageOptions: {
|
|
@@ -19766,7 +19771,7 @@ async function react(options = {}) {
|
|
|
19766
19771
|
name: "storm/react/rules",
|
|
19767
19772
|
rules: {
|
|
19768
19773
|
...renameRules2(
|
|
19769
|
-
|
|
19774
|
+
strict ? pluginReact.configs["strict"] : pluginReact.configs["recommended"]
|
|
19770
19775
|
),
|
|
19771
19776
|
"react-hooks/exhaustive-deps": strict ? "error" : "warn",
|
|
19772
19777
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -19839,9 +19844,6 @@ async function react(options = {}) {
|
|
|
19839
19844
|
"react/no-unstable-default-props": "warn",
|
|
19840
19845
|
"react/no-unused-class-component-members": "warn",
|
|
19841
19846
|
"react/no-unused-state": "warn",
|
|
19842
|
-
// "react/prefer-destructuring-assignment": "warn",
|
|
19843
|
-
// "react/prefer-shorthand-boolean": "warn",
|
|
19844
|
-
// "react/prefer-shorthand-fragment": "warn",
|
|
19845
19847
|
...overrides
|
|
19846
19848
|
}
|
|
19847
19849
|
},
|
|
@@ -19849,8 +19851,25 @@ async function react(options = {}) {
|
|
|
19849
19851
|
{
|
|
19850
19852
|
files: filesTypeAware,
|
|
19851
19853
|
ignores: ignoresTypeAware,
|
|
19854
|
+
languageOptions: {
|
|
19855
|
+
parser: parserTs,
|
|
19856
|
+
parserOptions: {
|
|
19857
|
+
extraFileExtensions: componentExts.map((ext2) => `.${ext2}`),
|
|
19858
|
+
ecmaFeatures: { jsx: true },
|
|
19859
|
+
ecmaVersion: 2022,
|
|
19860
|
+
sourceType: "module",
|
|
19861
|
+
projectService: {
|
|
19862
|
+
allowDefaultProject: [GLOB_SRC_FILE],
|
|
19863
|
+
defaultProject: tsconfigPath
|
|
19864
|
+
},
|
|
19865
|
+
tsconfigRootDir: findWorkspaceRoot()
|
|
19866
|
+
}
|
|
19867
|
+
},
|
|
19852
19868
|
name: "storm/react/type-aware-rules",
|
|
19853
19869
|
rules: {
|
|
19870
|
+
...renameRules2(
|
|
19871
|
+
strict ? pluginReact.configs["strict-type-checked"] : pluginReact.configs["recommended-type-checked"]
|
|
19872
|
+
),
|
|
19854
19873
|
"react/no-leaked-conditional-rendering": "warn",
|
|
19855
19874
|
"react/no-implicit-key": "warn",
|
|
19856
19875
|
"react/no-unused-props": strict ? "error" : "warn"
|
|
@@ -20403,7 +20422,7 @@ async function typescript(options = {}) {
|
|
|
20403
20422
|
allowDefaultProject: [GLOB_SRC_FILE],
|
|
20404
20423
|
defaultProject: tsconfigPath
|
|
20405
20424
|
},
|
|
20406
|
-
tsconfigRootDir:
|
|
20425
|
+
tsconfigRootDir: findWorkspaceRoot()
|
|
20407
20426
|
} : {},
|
|
20408
20427
|
...parserOptions
|
|
20409
20428
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.95",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"keywords": [
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
"@eslint/eslintrc": "^3.3.5",
|
|
142
142
|
"@eslint/markdown": "^6.6.0",
|
|
143
143
|
"@nx/eslint-plugin": "22.7.5",
|
|
144
|
-
"@storm-software/config": "
|
|
145
|
-
"@storm-software/config-tools": "
|
|
146
|
-
"@storm-software/package-constants": "
|
|
144
|
+
"@storm-software/config": "1.137.94",
|
|
145
|
+
"@storm-software/config-tools": "1.190.62",
|
|
146
|
+
"@storm-software/package-constants": "0.1.75",
|
|
147
147
|
"@stylistic/eslint-plugin": "^4.4.1",
|
|
148
148
|
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
149
149
|
"@typescript-eslint/parser": "^8.61.0",
|
|
@@ -196,9 +196,9 @@
|
|
|
196
196
|
"@next/eslint-plugin-next": "^15.5.19",
|
|
197
197
|
"@nx/eslint": "22.7.5",
|
|
198
198
|
"@prettier/plugin-xml": "^3.4.2",
|
|
199
|
-
"@storm-software/eslint-plugin-banner": "0.0.
|
|
200
|
-
"@storm-software/eslint-plugin-pnpm": "
|
|
201
|
-
"@storm-software/eslint-plugin-tsdoc": "
|
|
199
|
+
"@storm-software/eslint-plugin-banner": "0.0.27",
|
|
200
|
+
"@storm-software/eslint-plugin-pnpm": "0.0.25",
|
|
201
|
+
"@storm-software/eslint-plugin-tsdoc": "0.0.25",
|
|
202
202
|
"@stylistic/eslint-plugin-migrate": "^4.4.1",
|
|
203
203
|
"@types/eslint": "^9.6.1",
|
|
204
204
|
"@types/eslint__js": "^8.42.3",
|
|
@@ -271,5 +271,5 @@
|
|
|
271
271
|
"zod": { "optional": true }
|
|
272
272
|
},
|
|
273
273
|
"publishConfig": { "access": "public" },
|
|
274
|
-
"gitHead": "
|
|
274
|
+
"gitHead": "b6da2d24e56e885c36947d4888e1a6380c1907b8"
|
|
275
275
|
}
|