eslint-config-un 1.0.0-alpha.17 → 1.0.0-alpha.18
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/{angular-IHCOH3PH.js → angular-PNGGGTJW.js} +1 -1
- package/dist/{astro-GXI7QBII.js → astro-AZD2TV2G.js} +2 -2
- package/dist/{ava-TO7MAEVB.js → ava-VJMIS62T.js} +2 -2
- package/dist/{better-tailwind-KMEN4AA3.js → better-tailwind-LH62VNO5.js} +1 -1
- package/dist/{case-police-5RMGCLYB.js → case-police-GIYTIKWY.js} +1 -1
- package/dist/{chunk-XLOEIP4T.js → chunk-4DHT7IZG.js} +1 -1
- package/dist/{chunk-QQHUJYJX.js → chunk-BGEJKHR6.js} +1 -1
- package/dist/{chunk-T5HX4PC2.js → chunk-IVQBTEE7.js} +1 -1
- package/dist/{chunk-LSLNWIER.js → chunk-MSLCWNNM.js} +7 -7
- package/dist/{cli-EMKWLE5I.js → cli-BDWVLILO.js} +1 -1
- package/dist/{cloudfront-functions-G6NQ6E7Q.js → cloudfront-functions-GXH7ZOBS.js} +2 -2
- package/dist/{compat-VSJN5QOY.js → compat-2UHZKQBN.js} +1 -1
- package/dist/{cspell-3T3HP53L.js → cspell-O74CNNLZ.js} +1 -1
- package/dist/{css-RARKHDQR.js → css-A6EE2FZF.js} +1 -1
- package/dist/{css-in-js-BIUJ2LBF.js → css-in-js-T5FHMLEM.js} +1 -1
- package/dist/{cypress-SCRTTGBR.js → cypress-G73G2KK7.js} +2 -2
- package/dist/{de-morgan-MSD5BDPL.js → de-morgan-WD3UJ7TL.js} +1 -1
- package/dist/{depend-R4F2LYCE.js → depend-3DHZU66D.js} +2 -2
- package/dist/{ember-D6NL77SG.js → ember-3XTGEAOD.js} +2 -2
- package/dist/{erasable-syntax-only-T33PKURB.js → erasable-syntax-only-23DUI7AS.js} +1 -1
- package/dist/es-EAVZOLC4.js +7 -0
- package/dist/{eslint-comments-CSBZTYNA.js → eslint-comments-UWWI26UX.js} +1 -1
- package/dist/{eslint-plugin-N5CGPTPW.js → eslint-plugin-AG5N43H7.js} +2 -2
- package/dist/{file-progress-OMN2POVV.js → file-progress-T46J7RHU.js} +1 -1
- package/dist/{graphql-7O7BR7WI.js → graphql-XSKUQDPZ.js} +1 -1
- package/dist/{html-TJRKLC2S.js → html-S74XCAAX.js} +1 -1
- package/dist/{import-UVJBHT2S.js → import-6EIERPAB.js} +1 -1
- package/dist/index.d.ts +83 -6
- package/dist/index.js +69 -69
- package/dist/{jest-NIK3NTYF.js → jest-7CRPXVYA.js} +2 -2
- package/dist/{js-6BZSXK5J.js → js-PSYV4H4U.js} +1 -1
- package/dist/{js-inline-EYDLPQRG.js → js-inline-PYJ2QX2Q.js} +1 -1
- package/dist/{jsdoc-W5SXLPVV.js → jsdoc-UNE2OZCL.js} +1 -1
- package/dist/{json-schema-validator-3KZPOTSC.js → json-schema-validator-TUPFHRHR.js} +2 -2
- package/dist/{jsonc-TY64QAMO.js → jsonc-D26ESFP2.js} +2 -2
- package/dist/{jsx-a11y-UEPJ62AD.js → jsx-a11y-AZIKNHOL.js} +1 -1
- package/dist/{lit-JZF6S4SM.js → lit-FNAQGDDD.js} +2 -2
- package/dist/{markdown-R7DB6BIE.js → markdown-7WQ7D4GT.js} +2 -2
- package/dist/{math-XY6QG5HV.js → math-6VPBB2E4.js} +1 -1
- package/dist/{mdx-MJT4A6GQ.js → mdx-YSJ5BUWF.js} +2 -2
- package/dist/{mocha-OUWFJILW.js → mocha-V6FEC5CR.js} +2 -2
- package/dist/{nextjs-HNKNY5SE.js → nextjs-C46H5SON.js} +1 -1
- package/dist/{no-only-tests-UWCW6LKF.js → no-only-tests-P7FOFJMP.js} +2 -2
- package/dist/{no-stylistic-rules-FBUSSBZJ.js → no-stylistic-rules-NLX47BQ4.js} +17 -3
- package/dist/{no-unsanitized-LHA3QSSU.js → no-unsanitized-TQAZGLR6.js} +1 -1
- package/dist/{node-273ZUISN.js → node-U3Y53JET.js} +1 -1
- package/dist/{node-dependencies-UKV5GOPN.js → node-dependencies-2K5I2HCA.js} +11 -7
- package/dist/{package-json-ZTBAFLNF.js → package-json-EKTSKN7P.js} +2 -2
- package/dist/{perfectionist-7LTRVMVF.js → perfectionist-5OSJURYW.js} +1 -1
- package/dist/{playwright-CRA6QX5B.js → playwright-QNTTJXTT.js} +2 -2
- package/dist/{pnpm-76WI6QPJ.js → pnpm-UI5K6LPU.js} +1 -1
- package/dist/{prefer-arrow-functions-4QXLSDRA.js → prefer-arrow-functions-IDT73HOP.js} +1 -1
- package/dist/{promise-ODD5RXNB.js → promise-KES6UDPT.js} +1 -1
- package/dist/{qunit-ZVJGEA2Q.js → qunit-G2QZURYN.js} +2 -2
- package/dist/{qwik-RPJ344TO.js → qwik-6RJSDYTC.js} +1 -1
- package/dist/{react-TOYI5M5T.js → react-OWDNZWWB.js} +3 -3
- package/dist/{regexp-CNS5RQSP.js → regexp-KOFSATIJ.js} +1 -1
- package/dist/{security-VBXXDTVR.js → security-EVK233CD.js} +1 -1
- package/dist/{solid-7ZCRUTFS.js → solid-WOCBBBHW.js} +1 -1
- package/dist/{sonar-L2375M7P.js → sonar-3PHFBKFW.js} +1 -1
- package/dist/{storybook-76UMCZ5I.js → storybook-Y5GVC52G.js} +1 -1
- package/dist/{svelte-JOJDWOIX.js → svelte-QLLPEMVO.js} +2 -2
- package/dist/{tailwind-CRWKODRJ.js → tailwind-JET5KGHU.js} +1 -1
- package/dist/{tanstack-query-XI73YB5E.js → tanstack-query-SPFRXAKE.js} +1 -1
- package/dist/{testing-library-V326F6F3.js → testing-library-EN6YADCW.js} +2 -2
- package/dist/{toml-NI53T5SB.js → toml-ENZVL6RY.js} +2 -2
- package/dist/{ts-6R6P3NA4.js → ts-SXPMTDZO.js} +1 -1
- package/dist/{turbo-UQ5MXNNT.js → turbo-IIZP553B.js} +1 -1
- package/dist/{unicorn-7A2GHV5W.js → unicorn-ISSH6UI2.js} +1 -1
- package/dist/{unused-imports-GPD2LT5L.js → unused-imports-HAPEMTHR.js} +1 -1
- package/dist/{vitest-G2R3C5ZD.js → vitest-5QYDHEPB.js} +2 -2
- package/dist/{vue-RO7Y7LXW.js → vue-IPGT7CYQ.js} +2 -2
- package/dist/{yaml-6AMTF3WA.js → yaml-HFLH2BAF.js} +2 -2
- package/dist/you-dont-need-lodash-underscore-GOVYTR37.js +113 -0
- package/package.json +7 -7
- package/dist/es-2I3FZ33P.js +0 -7
- package/dist/you-dont-need-lodash-underscore-44IIQOXW.js +0 -27
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault,
|
|
9
9
|
pluginsLoaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MSLCWNNM.js";
|
|
11
11
|
|
|
12
12
|
// src/configs/astro.ts
|
|
13
13
|
var DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -61,7 +61,7 @@ var astroUnConfig = async (context) => {
|
|
|
61
61
|
configs: [
|
|
62
62
|
configBuilder,
|
|
63
63
|
...configJsxA11y === false ? [] : await (async () => {
|
|
64
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
64
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-AZIKNHOL.js");
|
|
65
65
|
const result = await jsxA11yUnConfig(context, {
|
|
66
66
|
prefix: "astro",
|
|
67
67
|
options: {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConfigNoOnlyTestsBuilder,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IVQBTEE7.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WARNING,
|
|
11
11
|
assignDefaults,
|
|
12
12
|
createConfigBuilder
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MSLCWNNM.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/ava.ts
|
|
16
16
|
var avaUnConfig = (context) => {
|
|
@@ -198,7 +198,7 @@ import stylistic from "@stylistic/eslint-plugin";
|
|
|
198
198
|
// package.json
|
|
199
199
|
var package_default = {
|
|
200
200
|
name: "eslint-config-un",
|
|
201
|
-
version: "1.0.0-alpha.
|
|
201
|
+
version: "1.0.0-alpha.18",
|
|
202
202
|
description: "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
203
203
|
keywords: [
|
|
204
204
|
"eslint",
|
|
@@ -268,8 +268,8 @@ var package_default = {
|
|
|
268
268
|
"@html-eslint/eslint-plugin": "0.42.0",
|
|
269
269
|
"@html-eslint/parser": "0.42.0",
|
|
270
270
|
"@stylistic/eslint-plugin": "5.1.0",
|
|
271
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
272
|
-
"@typescript-eslint/parser": "8.
|
|
271
|
+
"@typescript-eslint/eslint-plugin": "8.36.0",
|
|
272
|
+
"@typescript-eslint/parser": "8.36.0",
|
|
273
273
|
"@vue/compiler-sfc": "3.5.17",
|
|
274
274
|
consola: "3.4.2",
|
|
275
275
|
debug: "4.4.1",
|
|
@@ -319,7 +319,7 @@ var package_default = {
|
|
|
319
319
|
"read-package-up": "11.0.0",
|
|
320
320
|
semver: "7.7.2",
|
|
321
321
|
"type-fest": "4.41.0",
|
|
322
|
-
"typescript-eslint": "8.
|
|
322
|
+
"typescript-eslint": "8.36.0"
|
|
323
323
|
},
|
|
324
324
|
devDependencies: {
|
|
325
325
|
"@angular-eslint/eslint-plugin": "20.1.1",
|
|
@@ -377,7 +377,7 @@ var package_default = {
|
|
|
377
377
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
378
378
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
379
379
|
"eslint-plugin-react-refresh": "0.4.20",
|
|
380
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "0.
|
|
380
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "0.3.1",
|
|
381
381
|
"eslint-plugin-solid": "0.14.5",
|
|
382
382
|
"eslint-plugin-storybook": "9.0.15",
|
|
383
383
|
"eslint-plugin-svelte": "3.10.1",
|
|
@@ -419,7 +419,7 @@ var package_default = {
|
|
|
419
419
|
"eslint-plugin-ava": "^15.0.1",
|
|
420
420
|
"eslint-plugin-better-tailwindcss": "^3.4.3",
|
|
421
421
|
"eslint-plugin-case-police": "^2.0.0",
|
|
422
|
-
"eslint-plugin-compat": "6.0.2",
|
|
422
|
+
"eslint-plugin-compat": "^6.0.2",
|
|
423
423
|
"eslint-plugin-cypress": "^5.1.0",
|
|
424
424
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
425
425
|
"eslint-plugin-ember": "^12.5.0",
|
|
@@ -441,7 +441,7 @@ var package_default = {
|
|
|
441
441
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
442
442
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
443
443
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
444
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.
|
|
444
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.3.1",
|
|
445
445
|
"eslint-plugin-solid": "^0.14.5",
|
|
446
446
|
"eslint-plugin-storybook": "^9.0.15",
|
|
447
447
|
"eslint-plugin-svelte": "^3.10.1",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esUnConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4DHT7IZG.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
assignDefaults,
|
|
8
8
|
createConfigBuilder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSLCWNNM.js";
|
|
10
10
|
|
|
11
11
|
// src/configs/extra/cloudfront-functions.ts
|
|
12
12
|
var genSyntaxNotAllowedErrorMessage = (syntax, isPlural = false) => `${syntax} ${isPlural ? "are" : "is"} not allowed in CloudFront functions`;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConfigNoOnlyTestsBuilder,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IVQBTEE7.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WARNING,
|
|
11
11
|
assignDefaults,
|
|
12
12
|
createConfigBuilder
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MSLCWNNM.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/cypress.ts
|
|
16
16
|
var cypressUnConfig = (context) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_FILES_PACKAGE_JSON
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BGEJKHR6.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
assignDefaults,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSLCWNNM.js";
|
|
10
10
|
|
|
11
11
|
// src/configs/depend.ts
|
|
12
12
|
var dependUnConfig = async (context) => {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConfigNoOnlyTestsBuilder,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IVQBTEE7.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
WARNING,
|
|
12
12
|
assignDefaults,
|
|
13
13
|
createConfigBuilder
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MSLCWNNM.js";
|
|
15
15
|
|
|
16
16
|
// src/configs/ember.ts
|
|
17
17
|
var GLIMMER_TEMPLATES_FILES = ["**/*.{gjs,gts}"];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateDefaultTestFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IVQBTEE7.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS_EXTENSION,
|
|
8
8
|
OFF,
|
|
9
9
|
assignDefaults,
|
|
10
10
|
createConfigBuilder
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MSLCWNNM.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/eslint-plugin.ts
|
|
14
14
|
var eslintPluginUnConfig = (context) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -5752,6 +5752,13 @@ interface NodeEslintConfigOptions extends UnConfigOptions<'node'> {
|
|
|
5752
5752
|
}
|
|
5753
5753
|
|
|
5754
5754
|
interface NodeDependenciesEslintConfigOptions extends UnConfigOptions<'node-dependencies'> {
|
|
5755
|
+
/**
|
|
5756
|
+
* - `true`: enforces to use the absolute version.
|
|
5757
|
+
* - `'never'`: enforces not to use the absolute version.
|
|
5758
|
+
* - `false`: do not enforce anything.
|
|
5759
|
+
* @default false
|
|
5760
|
+
*/
|
|
5761
|
+
enforceAbsoluteVersion?: boolean | 'never' | (GetRuleOptions<'node-dependencies', 'absolute-version'>[0] & object);
|
|
5755
5762
|
}
|
|
5756
5763
|
|
|
5757
5764
|
type PackageJsonCollection = 'scripts' | 'devDependencies' | 'dependencies' | 'peerDependencies' | 'peerDependenciesMeta' | 'optionalDependencies' | 'config' | 'exports' | 'overrides' | 'resolutions' | 'dependenciesMeta' | 'pnpm.allowedDeprecatedVersions' | 'pnpm.overrides' | 'pnpm.packageExtensions' | 'pnpm.patchedDependencies' | 'pnpm.peerDependencyRules.allowedVersions' | (string & {});
|
|
@@ -6850,7 +6857,13 @@ interface YamlEslintConfigOptions extends UnConfigOptions<'yml'> {
|
|
|
6850
6857
|
};
|
|
6851
6858
|
}
|
|
6852
6859
|
|
|
6860
|
+
type LodashMethods = 'all' | 'any' | 'assign' | 'bind' | 'capitalize' | 'castArray' | 'cloneDeep' | 'collect' | 'concat' | 'contains' | 'defaults' | 'detect' | 'drop' | 'dropRight' | 'each' | 'endsWith' | 'entries' | 'every' | 'extendOwn' | 'fill' | 'filter' | 'find' | 'findIndex' | 'first' | 'flatten' | 'foldl' | 'foldr' | 'forEach' | 'get' | 'head' | 'includes' | 'indexOf' | 'inject' | 'isArray' | 'isArrayBuffer' | 'isDate' | 'isFinite' | 'isFunction' | 'isInteger' | 'isNan' | 'isNil' | 'isNull' | 'isString' | 'isUndefined' | 'join' | 'keys' | 'last' | 'lastIndexOf' | 'map' | 'omit' | 'padEnd' | 'padStart' | 'pairs' | 'reduce' | 'reduceRight' | 'repeat' | 'replace' | 'reverse' | 'select' | 'size' | 'slice' | 'some' | 'split' | 'startsWith' | 'takeRight' | 'throttle' | 'toLower' | 'toPairs' | 'toUpper' | 'trim' | 'unionBy' | 'uniq' | 'values';
|
|
6853
6861
|
interface YouDontNeedLodashUnderscoreEslintConfigOptions extends UnConfigOptions<'you-dont-need-lodash-underscore'> {
|
|
6862
|
+
/**
|
|
6863
|
+
* Lodash methods that will be exempted from the check. Will be merged with the default value.
|
|
6864
|
+
* @example {cloneDeep: true, omit: true, throttle: true}
|
|
6865
|
+
*/
|
|
6866
|
+
ignoredMethods?: Partial<Record<LodashMethods, boolean>>;
|
|
6854
6867
|
}
|
|
6855
6868
|
|
|
6856
6869
|
interface EslintConfigUnOptions {
|
|
@@ -25651,10 +25664,42 @@ type ReactRefreshOnlyExportComponents$1 = []|[{
|
|
|
25651
25664
|
|
|
25652
25665
|
interface PluginReactYouMightNotNeedAnEffect {
|
|
25653
25666
|
/**
|
|
25654
|
-
*
|
|
25655
|
-
* @see https://react.dev/learn/you-might-not-need-an-effect
|
|
25667
|
+
* Disallow chaining state changes in an effect.
|
|
25668
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
|
|
25669
|
+
*/
|
|
25670
|
+
'no-chain-state-updates': [];
|
|
25671
|
+
/**
|
|
25672
|
+
* Disallow storing derived state in an effect.
|
|
25673
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
|
|
25674
|
+
*/
|
|
25675
|
+
'no-derived-state': [];
|
|
25676
|
+
/**
|
|
25677
|
+
* Disallow empty React effects.
|
|
25678
|
+
*/
|
|
25679
|
+
'no-empty-effect': [];
|
|
25680
|
+
/**
|
|
25681
|
+
* Disallow using state and an effect as an event handler.
|
|
25682
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
|
|
25683
|
+
*/
|
|
25684
|
+
'no-event-handler': [];
|
|
25685
|
+
/**
|
|
25686
|
+
* Disallow initializing state in an effect.
|
|
25687
|
+
*/
|
|
25688
|
+
'no-initialize-state': [];
|
|
25689
|
+
/**
|
|
25690
|
+
* Disallow effects that only use props.
|
|
25691
|
+
*/
|
|
25692
|
+
'no-manage-parent': [];
|
|
25693
|
+
/**
|
|
25694
|
+
* Disallow passing live state to parent components in an effect.
|
|
25695
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
|
|
25656
25696
|
*/
|
|
25657
|
-
'
|
|
25697
|
+
'no-pass-live-state-to-parent': [];
|
|
25698
|
+
/**
|
|
25699
|
+
* Disallow resetting all state in an effect when a prop changes.
|
|
25700
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
|
|
25701
|
+
*/
|
|
25702
|
+
'no-reset-all-state-when-a-prop-changes': [];
|
|
25658
25703
|
}
|
|
25659
25704
|
|
|
25660
25705
|
/* ======= Declarations ======= */
|
|
@@ -49023,10 +49068,42 @@ Backward pagination arguments
|
|
|
49023
49068
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
49024
49069
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
49025
49070
|
/**
|
|
49026
|
-
*
|
|
49027
|
-
* @see https://react.dev/learn/you-might-not-need-an-effect
|
|
49071
|
+
* Disallow chaining state changes in an effect.
|
|
49072
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
|
|
49073
|
+
*/
|
|
49074
|
+
'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
|
|
49075
|
+
/**
|
|
49076
|
+
* Disallow storing derived state in an effect.
|
|
49077
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
|
|
49078
|
+
*/
|
|
49079
|
+
'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
|
|
49080
|
+
/**
|
|
49081
|
+
* Disallow empty React effects.
|
|
49082
|
+
*/
|
|
49083
|
+
'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
|
|
49084
|
+
/**
|
|
49085
|
+
* Disallow using state and an effect as an event handler.
|
|
49086
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
|
|
49087
|
+
*/
|
|
49088
|
+
'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
|
|
49089
|
+
/**
|
|
49090
|
+
* Disallow initializing state in an effect.
|
|
49091
|
+
*/
|
|
49092
|
+
'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
|
|
49093
|
+
/**
|
|
49094
|
+
* Disallow effects that only use props.
|
|
49095
|
+
*/
|
|
49096
|
+
'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
|
|
49097
|
+
/**
|
|
49098
|
+
* Disallow passing live state to parent components in an effect.
|
|
49099
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
|
|
49100
|
+
*/
|
|
49101
|
+
'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
|
|
49102
|
+
/**
|
|
49103
|
+
* Disallow resetting all state in an effect when a prop changes.
|
|
49104
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
|
|
49028
49105
|
*/
|
|
49029
|
-
'react-you-might-not-need-an-effect/
|
|
49106
|
+
'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
|
|
49030
49107
|
/**
|
|
49031
49108
|
* Enforces consistent naming for boolean props
|
|
49032
49109
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
|