@storm-software/eslint 0.170.80 → 0.170.82
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.cjs +65 -63
- package/dist/preset.d.cts +6 -6
- package/dist/preset.d.ts +6 -6
- package/dist/preset.js +65 -63
- package/dist/types.d.cts +6 -2
- package/dist/types.d.ts +6 -2
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/dist/preset.cjs
CHANGED
|
@@ -4439,7 +4439,7 @@ init_cjs_shims();
|
|
|
4439
4439
|
|
|
4440
4440
|
// ../eslint-plugin-banner/package.json
|
|
4441
4441
|
var package_default = {
|
|
4442
|
-
version: "0.0.
|
|
4442
|
+
version: "0.0.21"};
|
|
4443
4443
|
|
|
4444
4444
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
4445
4445
|
init_cjs_shims();
|
|
@@ -18459,7 +18459,7 @@ plugin3.configs = configs3;
|
|
|
18459
18459
|
|
|
18460
18460
|
// ../eslint-plugin-pnpm/package.json
|
|
18461
18461
|
var package_default2 = {
|
|
18462
|
-
version: "0.0.
|
|
18462
|
+
version: "0.0.20"};
|
|
18463
18463
|
|
|
18464
18464
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
18465
18465
|
var plugin4 = {
|
|
@@ -18714,17 +18714,17 @@ async function react(options = {}) {
|
|
|
18714
18714
|
name: "storm/react/rules",
|
|
18715
18715
|
rules: {
|
|
18716
18716
|
// recommended rules from @eslint-react/dom
|
|
18717
|
-
"react-
|
|
18718
|
-
"react-
|
|
18719
|
-
"react-
|
|
18720
|
-
"react-
|
|
18721
|
-
"react-
|
|
18722
|
-
"react-
|
|
18723
|
-
"react-
|
|
18724
|
-
"react-
|
|
18725
|
-
"react-
|
|
18726
|
-
"react-
|
|
18727
|
-
"react-
|
|
18717
|
+
"@eslint-react/dom-no-void-elements-with-children": "warn",
|
|
18718
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
18719
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
18720
|
+
"@eslint-react/dom-no-find-dom-node": "error",
|
|
18721
|
+
"@eslint-react/dom-no-missing-button-type": "warn",
|
|
18722
|
+
"@eslint-react/dom-no-missing-iframe-sandbox": "warn",
|
|
18723
|
+
"@eslint-react/dom-no-namespace": "error",
|
|
18724
|
+
"@eslint-react/dom-no-render-return-value": "error",
|
|
18725
|
+
"@eslint-react/dom-no-script-url": "warn",
|
|
18726
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
18727
|
+
"@eslint-react/dom-no-unsafe-target-blank": "warn",
|
|
18728
18728
|
// recommended rules react-hooks
|
|
18729
18729
|
"react-hooks/exhaustive-deps": "warn",
|
|
18730
18730
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -18753,51 +18753,52 @@ async function react(options = {}) {
|
|
|
18753
18753
|
}
|
|
18754
18754
|
],
|
|
18755
18755
|
// recommended rules from @eslint-react/web-api
|
|
18756
|
-
"react
|
|
18757
|
-
"react
|
|
18758
|
-
"react
|
|
18759
|
-
"react
|
|
18756
|
+
"@eslint-react/web-api-no-leaked-event-listener": "warn",
|
|
18757
|
+
"@eslint-react/web-api-no-leaked-interval": "warn",
|
|
18758
|
+
"@eslint-react/web-api-no-leaked-resize-observer": "warn",
|
|
18759
|
+
"@eslint-react/web-api-no-leaked-timeout": "warn",
|
|
18760
18760
|
// recommended rules from @eslint-react
|
|
18761
|
-
"react/
|
|
18762
|
-
"react/
|
|
18763
|
-
"react/jsx-
|
|
18764
|
-
"react/
|
|
18765
|
-
"react/no-
|
|
18766
|
-
"react/no-
|
|
18767
|
-
"react/no-children-
|
|
18768
|
-
"react/no-children-
|
|
18769
|
-
"react/no-children-
|
|
18770
|
-
"react/no-children-
|
|
18771
|
-
"react/no-
|
|
18772
|
-
"react/no-
|
|
18773
|
-
"react/no-
|
|
18774
|
-
"react/no-component-will-
|
|
18775
|
-
"react/no-component-will-
|
|
18776
|
-
"react/no-
|
|
18777
|
-
"react/no-
|
|
18778
|
-
"react/no-
|
|
18779
|
-
"react/no-
|
|
18780
|
-
"react/no-
|
|
18781
|
-
"react/no-
|
|
18782
|
-
"react/no-
|
|
18783
|
-
"react/no-
|
|
18784
|
-
"react/no-
|
|
18785
|
-
"react/no-
|
|
18786
|
-
"react/no-
|
|
18787
|
-
"react/no-
|
|
18788
|
-
"react/no-set-state-in-component-did-
|
|
18789
|
-
"react/no-set-state-in-component-
|
|
18790
|
-
"react/no-
|
|
18791
|
-
"react/no-
|
|
18792
|
-
"react/no-unsafe-component-will-
|
|
18793
|
-
"react/no-unsafe-component-will-
|
|
18794
|
-
"react/no-
|
|
18795
|
-
"react/no-unstable-
|
|
18796
|
-
"react/no-
|
|
18797
|
-
"react/no-unused-
|
|
18798
|
-
"react/
|
|
18799
|
-
"react/prefer-
|
|
18800
|
-
"react/prefer-shorthand-
|
|
18761
|
+
"@eslint-react/error-boundaries": "error",
|
|
18762
|
+
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
18763
|
+
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
18764
|
+
"@eslint-react/jsx-uses-vars": "warn",
|
|
18765
|
+
"@eslint-react/no-access-state-in-setstate": "error",
|
|
18766
|
+
"@eslint-react/no-array-index-key": "warn",
|
|
18767
|
+
"@eslint-react/no-children-count": "warn",
|
|
18768
|
+
"@eslint-react/no-children-for-each": "warn",
|
|
18769
|
+
"@eslint-react/no-children-map": "warn",
|
|
18770
|
+
"@eslint-react/no-children-only": "warn",
|
|
18771
|
+
"@eslint-react/no-children-to-array": "warn",
|
|
18772
|
+
"@eslint-react/no-clone-element": "warn",
|
|
18773
|
+
"@eslint-react/no-comment-textnodes": "warn",
|
|
18774
|
+
"@eslint-react/no-component-will-mount": "error",
|
|
18775
|
+
"@eslint-react/no-component-will-receive-props": "error",
|
|
18776
|
+
"@eslint-react/no-component-will-update": "error",
|
|
18777
|
+
"@eslint-react/no-context-provider": "warn",
|
|
18778
|
+
"@eslint-react/no-create-ref": "error",
|
|
18779
|
+
"@eslint-react/no-default-props": "error",
|
|
18780
|
+
"@eslint-react/no-direct-mutation-state": "error",
|
|
18781
|
+
"@eslint-react/no-duplicate-key": "error",
|
|
18782
|
+
"@eslint-react/no-forward-ref": "warn",
|
|
18783
|
+
"@eslint-react/no-implicit-key": "warn",
|
|
18784
|
+
"@eslint-react/no-missing-key": "error",
|
|
18785
|
+
"@eslint-react/no-nested-components": "error",
|
|
18786
|
+
"@eslint-react/no-prop-types": "error",
|
|
18787
|
+
"@eslint-react/no-redundant-should-component-update": "error",
|
|
18788
|
+
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
18789
|
+
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
18790
|
+
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
18791
|
+
"@eslint-react/no-string-refs": "error",
|
|
18792
|
+
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
18793
|
+
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
18794
|
+
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
18795
|
+
"@eslint-react/no-unstable-context-value": "warn",
|
|
18796
|
+
"@eslint-react/no-unstable-default-props": "warn",
|
|
18797
|
+
"@eslint-react/no-unused-class-component-members": "warn",
|
|
18798
|
+
"@eslint-react/no-unused-state": "warn",
|
|
18799
|
+
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
18800
|
+
"@eslint-react/prefer-shorthand-boolean": "warn",
|
|
18801
|
+
"@eslint-react/prefer-shorthand-fragment": "warn",
|
|
18801
18802
|
// recommended rules from eslint-plugin-react-compiler
|
|
18802
18803
|
"react-compiler/react-compiler": "error",
|
|
18803
18804
|
// overrides
|
|
@@ -19798,7 +19799,7 @@ function getOverrides(options, key) {
|
|
|
19798
19799
|
const sub = resolveSubOptions(options, key);
|
|
19799
19800
|
return "overrides" in sub ? sub.overrides : {};
|
|
19800
19801
|
}
|
|
19801
|
-
function
|
|
19802
|
+
function preset(options, ...userConfigs) {
|
|
19802
19803
|
const {
|
|
19803
19804
|
name: name3,
|
|
19804
19805
|
globals = {},
|
|
@@ -19808,6 +19809,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
19808
19809
|
componentExts = [],
|
|
19809
19810
|
gitignore: enableGitignore = true,
|
|
19810
19811
|
jsx: enableJsx = true,
|
|
19812
|
+
mdx: enableMdx = true,
|
|
19811
19813
|
cspell: enableCSpell = true,
|
|
19812
19814
|
react: enableReact = false,
|
|
19813
19815
|
"react-native": enableReactNative = false,
|
|
@@ -20033,7 +20035,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
20033
20035
|
})
|
|
20034
20036
|
);
|
|
20035
20037
|
}
|
|
20036
|
-
if (
|
|
20038
|
+
if (enableMdx) {
|
|
20037
20039
|
configs6.push(
|
|
20038
20040
|
mdx({
|
|
20039
20041
|
overrides: getOverrides(options, "mdx")
|
|
@@ -20078,14 +20080,14 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
20078
20080
|
}
|
|
20079
20081
|
return composer;
|
|
20080
20082
|
}
|
|
20081
|
-
var getConfig =
|
|
20082
|
-
var defineConfig =
|
|
20083
|
-
var preset_default =
|
|
20083
|
+
var getConfig = preset;
|
|
20084
|
+
var defineConfig = preset;
|
|
20085
|
+
var preset_default = preset;
|
|
20084
20086
|
|
|
20085
20087
|
exports.default = preset_default;
|
|
20086
20088
|
exports.defaultPluginRenaming = defaultPluginRenaming;
|
|
20087
20089
|
exports.defineConfig = defineConfig;
|
|
20088
20090
|
exports.getConfig = getConfig;
|
|
20089
20091
|
exports.getOverrides = getOverrides;
|
|
20090
|
-
exports.
|
|
20092
|
+
exports.preset = preset;
|
|
20091
20093
|
exports.resolveSubOptions = resolveSubOptions;
|
package/dist/preset.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
import {
|
|
3
|
-
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames, RuleOptions } from './types.cjs';
|
|
2
|
+
import { PresetConfig, OptionsConfig, UserConfig, PresetResult, RuleOptions } from './types.cjs';
|
|
4
3
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
5
4
|
import '@stylistic/eslint-plugin';
|
|
6
5
|
import '@typescript-eslint/parser';
|
|
7
6
|
import 'eslint-config-flat-gitignore';
|
|
7
|
+
import 'eslint-flat-config-utils';
|
|
8
8
|
|
|
9
9
|
declare const defaultPluginRenaming: {
|
|
10
10
|
"@eslint-react": string;
|
|
@@ -27,8 +27,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
27
27
|
* @param options - The preset options.
|
|
28
28
|
* @param userConfigs - Additional ESLint configurations.
|
|
29
29
|
*/
|
|
30
|
-
declare function
|
|
31
|
-
declare const getConfig: typeof
|
|
32
|
-
declare const defineConfig: typeof
|
|
30
|
+
declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
|
|
31
|
+
declare const getConfig: typeof preset;
|
|
32
|
+
declare const defineConfig: typeof preset;
|
|
33
33
|
|
|
34
|
-
export { type ResolvedOptions,
|
|
34
|
+
export { type ResolvedOptions, preset as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
|
package/dist/preset.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
import {
|
|
3
|
-
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames, RuleOptions } from './types.js';
|
|
2
|
+
import { PresetConfig, OptionsConfig, UserConfig, PresetResult, RuleOptions } from './types.js';
|
|
4
3
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
5
4
|
import '@stylistic/eslint-plugin';
|
|
6
5
|
import '@typescript-eslint/parser';
|
|
7
6
|
import 'eslint-config-flat-gitignore';
|
|
7
|
+
import 'eslint-flat-config-utils';
|
|
8
8
|
|
|
9
9
|
declare const defaultPluginRenaming: {
|
|
10
10
|
"@eslint-react": string;
|
|
@@ -27,8 +27,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
27
27
|
* @param options - The preset options.
|
|
28
28
|
* @param userConfigs - Additional ESLint configurations.
|
|
29
29
|
*/
|
|
30
|
-
declare function
|
|
31
|
-
declare const getConfig: typeof
|
|
32
|
-
declare const defineConfig: typeof
|
|
30
|
+
declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
|
|
31
|
+
declare const getConfig: typeof preset;
|
|
32
|
+
declare const defineConfig: typeof preset;
|
|
33
33
|
|
|
34
|
-
export { type ResolvedOptions,
|
|
34
|
+
export { type ResolvedOptions, preset as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
|
package/dist/preset.js
CHANGED
|
@@ -4285,7 +4285,7 @@ init_esm_shims();
|
|
|
4285
4285
|
|
|
4286
4286
|
// ../eslint-plugin-banner/package.json
|
|
4287
4287
|
var package_default = {
|
|
4288
|
-
version: "0.0.
|
|
4288
|
+
version: "0.0.21"};
|
|
4289
4289
|
|
|
4290
4290
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
4291
4291
|
init_esm_shims();
|
|
@@ -18047,7 +18047,7 @@ plugin3.configs = configs3;
|
|
|
18047
18047
|
|
|
18048
18048
|
// ../eslint-plugin-pnpm/package.json
|
|
18049
18049
|
var package_default2 = {
|
|
18050
|
-
version: "0.0.
|
|
18050
|
+
version: "0.0.20"};
|
|
18051
18051
|
|
|
18052
18052
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
18053
18053
|
var plugin4 = {
|
|
@@ -18302,17 +18302,17 @@ async function react(options = {}) {
|
|
|
18302
18302
|
name: "storm/react/rules",
|
|
18303
18303
|
rules: {
|
|
18304
18304
|
// recommended rules from @eslint-react/dom
|
|
18305
|
-
"react-
|
|
18306
|
-
"react-
|
|
18307
|
-
"react-
|
|
18308
|
-
"react-
|
|
18309
|
-
"react-
|
|
18310
|
-
"react-
|
|
18311
|
-
"react-
|
|
18312
|
-
"react-
|
|
18313
|
-
"react-
|
|
18314
|
-
"react-
|
|
18315
|
-
"react-
|
|
18305
|
+
"@eslint-react/dom-no-void-elements-with-children": "warn",
|
|
18306
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
18307
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
18308
|
+
"@eslint-react/dom-no-find-dom-node": "error",
|
|
18309
|
+
"@eslint-react/dom-no-missing-button-type": "warn",
|
|
18310
|
+
"@eslint-react/dom-no-missing-iframe-sandbox": "warn",
|
|
18311
|
+
"@eslint-react/dom-no-namespace": "error",
|
|
18312
|
+
"@eslint-react/dom-no-render-return-value": "error",
|
|
18313
|
+
"@eslint-react/dom-no-script-url": "warn",
|
|
18314
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
18315
|
+
"@eslint-react/dom-no-unsafe-target-blank": "warn",
|
|
18316
18316
|
// recommended rules react-hooks
|
|
18317
18317
|
"react-hooks/exhaustive-deps": "warn",
|
|
18318
18318
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -18341,51 +18341,52 @@ async function react(options = {}) {
|
|
|
18341
18341
|
}
|
|
18342
18342
|
],
|
|
18343
18343
|
// recommended rules from @eslint-react/web-api
|
|
18344
|
-
"react
|
|
18345
|
-
"react
|
|
18346
|
-
"react
|
|
18347
|
-
"react
|
|
18344
|
+
"@eslint-react/web-api-no-leaked-event-listener": "warn",
|
|
18345
|
+
"@eslint-react/web-api-no-leaked-interval": "warn",
|
|
18346
|
+
"@eslint-react/web-api-no-leaked-resize-observer": "warn",
|
|
18347
|
+
"@eslint-react/web-api-no-leaked-timeout": "warn",
|
|
18348
18348
|
// recommended rules from @eslint-react
|
|
18349
|
-
"react/
|
|
18350
|
-
"react/
|
|
18351
|
-
"react/jsx-
|
|
18352
|
-
"react/
|
|
18353
|
-
"react/no-
|
|
18354
|
-
"react/no-
|
|
18355
|
-
"react/no-children-
|
|
18356
|
-
"react/no-children-
|
|
18357
|
-
"react/no-children-
|
|
18358
|
-
"react/no-children-
|
|
18359
|
-
"react/no-
|
|
18360
|
-
"react/no-
|
|
18361
|
-
"react/no-
|
|
18362
|
-
"react/no-component-will-
|
|
18363
|
-
"react/no-component-will-
|
|
18364
|
-
"react/no-
|
|
18365
|
-
"react/no-
|
|
18366
|
-
"react/no-
|
|
18367
|
-
"react/no-
|
|
18368
|
-
"react/no-
|
|
18369
|
-
"react/no-
|
|
18370
|
-
"react/no-
|
|
18371
|
-
"react/no-
|
|
18372
|
-
"react/no-
|
|
18373
|
-
"react/no-
|
|
18374
|
-
"react/no-
|
|
18375
|
-
"react/no-
|
|
18376
|
-
"react/no-set-state-in-component-did-
|
|
18377
|
-
"react/no-set-state-in-component-
|
|
18378
|
-
"react/no-
|
|
18379
|
-
"react/no-
|
|
18380
|
-
"react/no-unsafe-component-will-
|
|
18381
|
-
"react/no-unsafe-component-will-
|
|
18382
|
-
"react/no-
|
|
18383
|
-
"react/no-unstable-
|
|
18384
|
-
"react/no-
|
|
18385
|
-
"react/no-unused-
|
|
18386
|
-
"react/
|
|
18387
|
-
"react/prefer-
|
|
18388
|
-
"react/prefer-shorthand-
|
|
18349
|
+
"@eslint-react/error-boundaries": "error",
|
|
18350
|
+
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
18351
|
+
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
18352
|
+
"@eslint-react/jsx-uses-vars": "warn",
|
|
18353
|
+
"@eslint-react/no-access-state-in-setstate": "error",
|
|
18354
|
+
"@eslint-react/no-array-index-key": "warn",
|
|
18355
|
+
"@eslint-react/no-children-count": "warn",
|
|
18356
|
+
"@eslint-react/no-children-for-each": "warn",
|
|
18357
|
+
"@eslint-react/no-children-map": "warn",
|
|
18358
|
+
"@eslint-react/no-children-only": "warn",
|
|
18359
|
+
"@eslint-react/no-children-to-array": "warn",
|
|
18360
|
+
"@eslint-react/no-clone-element": "warn",
|
|
18361
|
+
"@eslint-react/no-comment-textnodes": "warn",
|
|
18362
|
+
"@eslint-react/no-component-will-mount": "error",
|
|
18363
|
+
"@eslint-react/no-component-will-receive-props": "error",
|
|
18364
|
+
"@eslint-react/no-component-will-update": "error",
|
|
18365
|
+
"@eslint-react/no-context-provider": "warn",
|
|
18366
|
+
"@eslint-react/no-create-ref": "error",
|
|
18367
|
+
"@eslint-react/no-default-props": "error",
|
|
18368
|
+
"@eslint-react/no-direct-mutation-state": "error",
|
|
18369
|
+
"@eslint-react/no-duplicate-key": "error",
|
|
18370
|
+
"@eslint-react/no-forward-ref": "warn",
|
|
18371
|
+
"@eslint-react/no-implicit-key": "warn",
|
|
18372
|
+
"@eslint-react/no-missing-key": "error",
|
|
18373
|
+
"@eslint-react/no-nested-components": "error",
|
|
18374
|
+
"@eslint-react/no-prop-types": "error",
|
|
18375
|
+
"@eslint-react/no-redundant-should-component-update": "error",
|
|
18376
|
+
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
18377
|
+
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
18378
|
+
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
18379
|
+
"@eslint-react/no-string-refs": "error",
|
|
18380
|
+
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
18381
|
+
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
18382
|
+
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
18383
|
+
"@eslint-react/no-unstable-context-value": "warn",
|
|
18384
|
+
"@eslint-react/no-unstable-default-props": "warn",
|
|
18385
|
+
"@eslint-react/no-unused-class-component-members": "warn",
|
|
18386
|
+
"@eslint-react/no-unused-state": "warn",
|
|
18387
|
+
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
18388
|
+
"@eslint-react/prefer-shorthand-boolean": "warn",
|
|
18389
|
+
"@eslint-react/prefer-shorthand-fragment": "warn",
|
|
18389
18390
|
// recommended rules from eslint-plugin-react-compiler
|
|
18390
18391
|
"react-compiler/react-compiler": "error",
|
|
18391
18392
|
// overrides
|
|
@@ -19347,7 +19348,7 @@ function getOverrides(options, key) {
|
|
|
19347
19348
|
const sub = resolveSubOptions(options, key);
|
|
19348
19349
|
return "overrides" in sub ? sub.overrides : {};
|
|
19349
19350
|
}
|
|
19350
|
-
function
|
|
19351
|
+
function preset(options, ...userConfigs) {
|
|
19351
19352
|
const {
|
|
19352
19353
|
name: name3,
|
|
19353
19354
|
globals = {},
|
|
@@ -19357,6 +19358,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
19357
19358
|
componentExts = [],
|
|
19358
19359
|
gitignore: enableGitignore = true,
|
|
19359
19360
|
jsx: enableJsx = true,
|
|
19361
|
+
mdx: enableMdx = true,
|
|
19360
19362
|
cspell: enableCSpell = true,
|
|
19361
19363
|
react: enableReact = false,
|
|
19362
19364
|
"react-native": enableReactNative = false,
|
|
@@ -19582,7 +19584,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
19582
19584
|
})
|
|
19583
19585
|
);
|
|
19584
19586
|
}
|
|
19585
|
-
if (
|
|
19587
|
+
if (enableMdx) {
|
|
19586
19588
|
configs6.push(
|
|
19587
19589
|
mdx({
|
|
19588
19590
|
overrides: getOverrides(options, "mdx")
|
|
@@ -19627,8 +19629,8 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
19627
19629
|
}
|
|
19628
19630
|
return composer;
|
|
19629
19631
|
}
|
|
19630
|
-
var getConfig =
|
|
19631
|
-
var defineConfig =
|
|
19632
|
-
var preset_default =
|
|
19632
|
+
var getConfig = preset;
|
|
19633
|
+
var defineConfig = preset;
|
|
19634
|
+
var preset_default = preset;
|
|
19633
19635
|
|
|
19634
|
-
export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides,
|
|
19636
|
+
export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
|
package/dist/types.d.cts
CHANGED
|
@@ -3,6 +3,7 @@ import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
|
|
|
3
3
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
4
|
import { Linter } from 'eslint';
|
|
5
5
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
6
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
6
7
|
|
|
7
8
|
/* eslint-disable */
|
|
8
9
|
/* prettier-ignore */
|
|
@@ -19301,7 +19302,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
19301
19302
|
/**
|
|
19302
19303
|
* Enable linting for mdx files.
|
|
19303
19304
|
*
|
|
19304
|
-
* @defaultValue
|
|
19305
|
+
* @defaultValue false
|
|
19305
19306
|
*/
|
|
19306
19307
|
mdx?: boolean | OptionsOverrides;
|
|
19307
19308
|
/**
|
|
@@ -19392,5 +19393,8 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
19392
19393
|
*/
|
|
19393
19394
|
autoRenamePlugins?: boolean;
|
|
19394
19395
|
}
|
|
19396
|
+
type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>;
|
|
19397
|
+
type PresetConfig<TOptions> = TOptions & Omit<TypedFlatConfigItem, "files">;
|
|
19398
|
+
type PresetResult = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
19395
19399
|
|
|
19396
|
-
export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem };
|
|
19400
|
+
export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, PresetConfig, PresetResult, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem, UserConfig };
|
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
|
|
|
3
3
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
4
|
import { Linter } from 'eslint';
|
|
5
5
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
6
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
6
7
|
|
|
7
8
|
/* eslint-disable */
|
|
8
9
|
/* prettier-ignore */
|
|
@@ -19301,7 +19302,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
19301
19302
|
/**
|
|
19302
19303
|
* Enable linting for mdx files.
|
|
19303
19304
|
*
|
|
19304
|
-
* @defaultValue
|
|
19305
|
+
* @defaultValue false
|
|
19305
19306
|
*/
|
|
19306
19307
|
mdx?: boolean | OptionsOverrides;
|
|
19307
19308
|
/**
|
|
@@ -19392,5 +19393,8 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
19392
19393
|
*/
|
|
19393
19394
|
autoRenamePlugins?: boolean;
|
|
19394
19395
|
}
|
|
19396
|
+
type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>;
|
|
19397
|
+
type PresetConfig<TOptions> = TOptions & Omit<TypedFlatConfigItem, "files">;
|
|
19398
|
+
type PresetResult = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
19395
19399
|
|
|
19396
|
-
export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem };
|
|
19400
|
+
export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, PresetConfig, PresetResult, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem, UserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.82",
|
|
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": "1.137.
|
|
145
|
-
"@storm-software/config-tools": "1.190.
|
|
146
|
-
"@storm-software/package-constants": "0.1.
|
|
144
|
+
"@storm-software/config": "^1.137.89",
|
|
145
|
+
"@storm-software/config-tools": "^1.190.57",
|
|
146
|
+
"@storm-software/package-constants": "^0.1.70",
|
|
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",
|
|
@@ -162,7 +162,6 @@
|
|
|
162
162
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
163
163
|
"eslint-plugin-markdown": "^5.1.0",
|
|
164
164
|
"eslint-plugin-markdownlint": "^0.6.0",
|
|
165
|
-
"eslint-plugin-mdx": "^3.8.1",
|
|
166
165
|
"eslint-plugin-n": "^17.24.0",
|
|
167
166
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
168
167
|
"eslint-plugin-no-secrets": "^2.3.3",
|
|
@@ -197,9 +196,9 @@
|
|
|
197
196
|
"@next/eslint-plugin-next": "^15.5.19",
|
|
198
197
|
"@nx/eslint": "22.7.5",
|
|
199
198
|
"@prettier/plugin-xml": "^3.4.2",
|
|
200
|
-
"@storm-software/eslint-plugin-banner": "0.0.
|
|
201
|
-
"@storm-software/eslint-plugin-pnpm": "0.0.
|
|
202
|
-
"@storm-software/eslint-plugin-tsdoc": "0.0.
|
|
199
|
+
"@storm-software/eslint-plugin-banner": "^0.0.21",
|
|
200
|
+
"@storm-software/eslint-plugin-pnpm": "^0.0.20",
|
|
201
|
+
"@storm-software/eslint-plugin-tsdoc": "^0.0.20",
|
|
203
202
|
"@stylistic/eslint-plugin-migrate": "^4.4.1",
|
|
204
203
|
"@types/eslint": "^9.6.1",
|
|
205
204
|
"@types/eslint__js": "^8.42.3",
|
|
@@ -212,6 +211,7 @@
|
|
|
212
211
|
"eslint-plugin-format": "^1.5.0",
|
|
213
212
|
"eslint-plugin-import-x": "^4.16.2",
|
|
214
213
|
"eslint-plugin-import-zod": "^1.2.1",
|
|
214
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
215
215
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
216
216
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
217
217
|
"eslint-plugin-react-native": "^5.0.0",
|
|
@@ -240,6 +240,7 @@
|
|
|
240
240
|
"eslint-plugin-astro": "^1.2.0",
|
|
241
241
|
"eslint-plugin-format": ">=0.1.0",
|
|
242
242
|
"eslint-plugin-import-zod": "^1.2.0",
|
|
243
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
243
244
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
244
245
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
245
246
|
"eslint-plugin-react-native": "^5.0.0",
|
|
@@ -251,5 +252,5 @@
|
|
|
251
252
|
"zod": "^3.25.0 || ^4.0.0"
|
|
252
253
|
},
|
|
253
254
|
"publishConfig": { "access": "public" },
|
|
254
|
-
"gitHead": "
|
|
255
|
+
"gitHead": "7fb312fc7be7b8242baacfa77919c5317f4df349"
|
|
255
256
|
}
|