eslint-config-un 1.0.0-alpha.17 → 1.0.0-alpha.19
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-YCMZSUBR.js} +14 -11
- package/dist/{astro-GXI7QBII.js → astro-USB7EQPO.js} +2 -2
- package/dist/{ava-TO7MAEVB.js → ava-2WE465FC.js} +2 -2
- package/dist/{better-tailwind-KMEN4AA3.js → better-tailwind-3LM4EYQQ.js} +1 -1
- package/dist/{case-police-5RMGCLYB.js → case-police-NOCXLAUN.js} +1 -1
- package/dist/{chunk-QQHUJYJX.js → chunk-34U5NLR4.js} +1 -1
- package/dist/{chunk-LSLNWIER.js → chunk-7GRRU4PU.js} +17 -17
- package/dist/{chunk-T5HX4PC2.js → chunk-7NLUWIPQ.js} +1 -1
- package/dist/{chunk-XLOEIP4T.js → chunk-QH3CXGTX.js} +1 -1
- package/dist/{cli-EMKWLE5I.js → cli-7X4BSWJY.js} +1 -1
- package/dist/{cloudfront-functions-G6NQ6E7Q.js → cloudfront-functions-L7RXJUXL.js} +2 -2
- package/dist/{compat-VSJN5QOY.js → compat-7Z4HGBJO.js} +1 -1
- package/dist/{cspell-3T3HP53L.js → cspell-ZJVBJY52.js} +1 -1
- package/dist/{css-RARKHDQR.js → css-HRLA4CL4.js} +1 -1
- package/dist/{css-in-js-BIUJ2LBF.js → css-in-js-76ZEPUBW.js} +1 -1
- package/dist/{cypress-SCRTTGBR.js → cypress-R24VFPUT.js} +2 -2
- package/dist/{de-morgan-MSD5BDPL.js → de-morgan-6W64X5BH.js} +1 -1
- package/dist/{depend-R4F2LYCE.js → depend-VENGPMOB.js} +2 -2
- package/dist/{ember-D6NL77SG.js → ember-EGDXPR45.js} +2 -2
- package/dist/{erasable-syntax-only-T33PKURB.js → erasable-syntax-only-5USINYBA.js} +1 -1
- package/dist/es-ANORRNHP.js +7 -0
- package/dist/{eslint-comments-CSBZTYNA.js → eslint-comments-4VRQELVF.js} +1 -1
- package/dist/{eslint-plugin-N5CGPTPW.js → eslint-plugin-X3KNR2Y6.js} +2 -2
- package/dist/{file-progress-OMN2POVV.js → file-progress-SEBSKC3Z.js} +1 -1
- package/dist/{graphql-7O7BR7WI.js → graphql-242LDQKM.js} +1 -1
- package/dist/{html-TJRKLC2S.js → html-YP3CKETM.js} +1 -1
- package/dist/{import-UVJBHT2S.js → import-VZVFIGD6.js} +1 -1
- package/dist/index.d.ts +92 -16
- package/dist/index.js +85 -78
- package/dist/{jest-NIK3NTYF.js → jest-JLVTPK5H.js} +2 -2
- package/dist/{js-6BZSXK5J.js → js-HGHBG5WC.js} +1 -1
- package/dist/{js-inline-EYDLPQRG.js → js-inline-MHCUA4LN.js} +1 -1
- package/dist/{jsdoc-W5SXLPVV.js → jsdoc-SXCZO6YP.js} +1 -1
- package/dist/{json-schema-validator-3KZPOTSC.js → json-schema-validator-SL3OFJPZ.js} +2 -2
- package/dist/{jsonc-TY64QAMO.js → jsonc-D3PPQB7R.js} +2 -2
- package/dist/{jsx-a11y-UEPJ62AD.js → jsx-a11y-MJR2L2J2.js} +1 -1
- package/dist/{lit-JZF6S4SM.js → lit-GVIY5QFO.js} +2 -2
- package/dist/{markdown-R7DB6BIE.js → markdown-LC4CZA7Q.js} +2 -2
- package/dist/{math-XY6QG5HV.js → math-PTTJZ7SK.js} +1 -1
- package/dist/{mdx-MJT4A6GQ.js → mdx-VHHKRW3B.js} +2 -2
- package/dist/{mocha-OUWFJILW.js → mocha-NBNKBFSN.js} +2 -2
- package/dist/{nextjs-HNKNY5SE.js → nextjs-XJH5ZVRH.js} +1 -1
- package/dist/{no-only-tests-UWCW6LKF.js → no-only-tests-XOYQJWLM.js} +2 -2
- package/dist/{no-stylistic-rules-FBUSSBZJ.js → no-stylistic-rules-GABBHFPQ.js} +17 -3
- package/dist/{no-unsanitized-LHA3QSSU.js → no-unsanitized-OGWYOATL.js} +1 -1
- package/dist/{node-273ZUISN.js → node-7CTPMPVL.js} +1 -1
- package/dist/{node-dependencies-UKV5GOPN.js → node-dependencies-CUKC32FZ.js} +16 -7
- package/dist/{package-json-ZTBAFLNF.js → package-json-YBQP2LMG.js} +2 -2
- package/dist/{perfectionist-7LTRVMVF.js → perfectionist-L3RWKIRE.js} +1 -1
- package/dist/{playwright-CRA6QX5B.js → playwright-TPAZDIXF.js} +2 -2
- package/dist/{pnpm-76WI6QPJ.js → pnpm-R46OJPAM.js} +1 -1
- package/dist/{prefer-arrow-functions-4QXLSDRA.js → prefer-arrow-functions-PAXOQPVI.js} +1 -1
- package/dist/{promise-ODD5RXNB.js → promise-NOSKOFGV.js} +1 -1
- package/dist/{qunit-ZVJGEA2Q.js → qunit-QQGQH32N.js} +2 -2
- package/dist/{qwik-RPJ344TO.js → qwik-LPX5C6YC.js} +1 -1
- package/dist/{react-TOYI5M5T.js → react-ER2LWC6K.js} +3 -3
- package/dist/{regexp-CNS5RQSP.js → regexp-YSTIEWPA.js} +1 -1
- package/dist/{security-VBXXDTVR.js → security-6RL4NLI7.js} +1 -1
- package/dist/{solid-7ZCRUTFS.js → solid-7QKWJPIJ.js} +1 -1
- package/dist/{sonar-L2375M7P.js → sonar-7LDOT2YA.js} +1 -1
- package/dist/{storybook-76UMCZ5I.js → storybook-JMBKGYZB.js} +1 -1
- package/dist/{svelte-JOJDWOIX.js → svelte-5ARXC4EV.js} +2 -2
- package/dist/{tailwind-CRWKODRJ.js → tailwind-6R56UFAJ.js} +1 -1
- package/dist/{tanstack-query-XI73YB5E.js → tanstack-query-DEMDV23E.js} +1 -1
- package/dist/{testing-library-V326F6F3.js → testing-library-KZXEXNWC.js} +2 -2
- package/dist/{toml-NI53T5SB.js → toml-PHKO7GS7.js} +2 -2
- package/dist/{ts-6R6P3NA4.js → ts-UCT2BC5A.js} +2 -3
- package/dist/{turbo-UQ5MXNNT.js → turbo-FDDLGWOI.js} +1 -1
- package/dist/{unicorn-7A2GHV5W.js → unicorn-FO5MAYSE.js} +1 -1
- package/dist/{unused-imports-GPD2LT5L.js → unused-imports-HDTO5QS3.js} +1 -1
- package/dist/{vitest-G2R3C5ZD.js → vitest-XNTUJCDA.js} +2 -2
- package/dist/{vue-RO7Y7LXW.js → vue-O6WXAMCF.js} +2 -2
- package/dist/{yaml-6AMTF3WA.js → yaml-6TDWDDUY.js} +2 -2
- package/dist/you-dont-need-lodash-underscore-PNLNS64I.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
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
interopDefault,
|
|
11
11
|
klona,
|
|
12
12
|
pluginsLoaders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7GRRU4PU.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/angular.ts
|
|
16
16
|
var SUPPORTED_ANGULAR_VERSIONS = [13, 14, 15, 16, 17, 18, 19, 20];
|
|
@@ -68,12 +68,14 @@ var angularUnConfig = async (context) => {
|
|
|
68
68
|
angularEslintPluginPackageInfo,
|
|
69
69
|
angularTemplateEslintPlugin,
|
|
70
70
|
angularTemplateEslintPluginPackageInfo,
|
|
71
|
+
angularTemplateParserPackageInfo,
|
|
71
72
|
extractInlineHtmlProcessor
|
|
72
73
|
] = await Promise.all([
|
|
73
74
|
pluginsLoaders["@angular-eslint"](context).then(({ module }) => module),
|
|
74
75
|
fetchPackageInfo("@angular-eslint/eslint-plugin"),
|
|
75
76
|
pluginsLoaders["@angular-eslint/template"](context).then(({ module }) => module),
|
|
76
77
|
fetchPackageInfo("@angular-eslint/eslint-plugin-template"),
|
|
78
|
+
fetchPackageInfo("@angular-eslint/template-parser"),
|
|
77
79
|
interopDefault(import("@angular-eslint/eslint-plugin-template")).then((m) => m.processors["extract-inline-html"]).then((processor) => {
|
|
78
80
|
const fixedProcessor = klona(processor);
|
|
79
81
|
fixedProcessor.meta ||= {
|
|
@@ -82,16 +84,17 @@ var angularUnConfig = async (context) => {
|
|
|
82
84
|
return fixedProcessor;
|
|
83
85
|
})
|
|
84
86
|
]);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
[
|
|
88
|
+
[angularEslintPluginPackageInfo, "@angular-eslint/eslint-plugin"],
|
|
89
|
+
[angularTemplateEslintPluginPackageInfo, "@angular-eslint/eslint-plugin-template"],
|
|
90
|
+
[angularTemplateParserPackageInfo, "@angular-eslint/template-parser"]
|
|
91
|
+
].forEach(([packageInfo, packageName]) => {
|
|
92
|
+
if (packageInfo?.versions.major != null && packageInfo.versions.major !== angularVersion) {
|
|
93
|
+
context.logger.warn(
|
|
94
|
+
`Your \`${packageName}\` major version (${packageInfo.versions.major}) might not be compatible with the configured (or detected) Angular major version (${angularVersion}).`
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
95
98
|
const angularEslintPluginRules = Object.keys(angularEslintPlugin?.rules || {});
|
|
96
99
|
const getAngularEslintPluginRuleSeverity = (ruleName, severity) => [
|
|
97
100
|
ruleName,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault,
|
|
9
9
|
pluginsLoaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7GRRU4PU.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-MJR2L2J2.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-7NLUWIPQ.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-7GRRU4PU.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.19",
|
|
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",
|
|
@@ -997,16 +997,6 @@ var parsersLoaders = {
|
|
|
997
997
|
"astro-eslint-parser",
|
|
998
998
|
() => import("astro-eslint-parser")
|
|
999
999
|
),
|
|
1000
|
-
...genModuleLoader(
|
|
1001
|
-
"toml-eslint-parser",
|
|
1002
|
-
"toml-eslint-parser",
|
|
1003
|
-
() => import("toml-eslint-parser")
|
|
1004
|
-
),
|
|
1005
|
-
...genModuleLoader(
|
|
1006
|
-
"yaml-eslint-parser",
|
|
1007
|
-
"yaml-eslint-parser",
|
|
1008
|
-
() => import("yaml-eslint-parser")
|
|
1009
|
-
),
|
|
1010
1000
|
...genModuleLoader(
|
|
1011
1001
|
"ember-eslint-parser",
|
|
1012
1002
|
"ember-eslint-parser",
|
|
@@ -1017,6 +1007,16 @@ var parsersLoaders = {
|
|
|
1017
1007
|
"svelte-eslint-parser",
|
|
1018
1008
|
() => import("svelte-eslint-parser")
|
|
1019
1009
|
),
|
|
1010
|
+
...genModuleLoader(
|
|
1011
|
+
"toml-eslint-parser",
|
|
1012
|
+
"toml-eslint-parser",
|
|
1013
|
+
() => import("toml-eslint-parser")
|
|
1014
|
+
),
|
|
1015
|
+
...genModuleLoader(
|
|
1016
|
+
"yaml-eslint-parser",
|
|
1017
|
+
"yaml-eslint-parser",
|
|
1018
|
+
() => import("yaml-eslint-parser")
|
|
1019
|
+
),
|
|
1020
1020
|
...genModuleLoader("vue-eslint-parser", "vue-eslint-parser", () => import("vue-eslint-parser"))
|
|
1021
1021
|
};
|
|
1022
1022
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esUnConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QH3CXGTX.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
assignDefaults,
|
|
8
8
|
createConfigBuilder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7GRRU4PU.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-7NLUWIPQ.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-7GRRU4PU.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-34U5NLR4.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
assignDefaults,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7GRRU4PU.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-7NLUWIPQ.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-7GRRU4PU.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-7NLUWIPQ.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-7GRRU4PU.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/eslint-plugin.ts
|
|
14
14
|
var eslintPluginUnConfig = (context) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
6
6
|
import { detect } from 'package-manager-detector/detect';
|
|
7
7
|
import * as _angular_eslint_template_parser from '@angular-eslint/template-parser';
|
|
8
8
|
import * as astro_eslint_parser from 'astro-eslint-parser';
|
|
9
|
+
import * as svelte_eslint_parser_lib_main from 'svelte-eslint-parser/lib/main';
|
|
9
10
|
import * as toml_eslint_parser from 'toml-eslint-parser';
|
|
10
11
|
import * as yaml_eslint_parser from 'yaml-eslint-parser';
|
|
11
|
-
import * as svelte_eslint_parser_lib_main from 'svelte-eslint-parser/lib/main';
|
|
12
12
|
import * as vue_eslint_parser from 'vue-eslint-parser';
|
|
13
13
|
import * as _html_eslint_eslint_plugin_types from '@html-eslint/eslint-plugin/types';
|
|
14
14
|
import * as _stylistic_eslint_plugin from '@stylistic/eslint-plugin';
|
|
@@ -3549,14 +3549,6 @@ declare const parsersLoaders: {
|
|
|
3549
3549
|
packageName: "vue-eslint-parser";
|
|
3550
3550
|
module: typeof vue_eslint_parser | null;
|
|
3551
3551
|
}>;
|
|
3552
|
-
"svelte-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3553
|
-
packageName: "svelte-eslint-parser";
|
|
3554
|
-
module: typeof svelte_eslint_parser_lib_main | null;
|
|
3555
|
-
}>;
|
|
3556
|
-
"ember-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3557
|
-
packageName: "ember-eslint-parser";
|
|
3558
|
-
module: eslint__default.Linter.Parser | null;
|
|
3559
|
-
}>;
|
|
3560
3552
|
"yaml-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3561
3553
|
packageName: "yaml-eslint-parser";
|
|
3562
3554
|
module: typeof yaml_eslint_parser | null;
|
|
@@ -3565,6 +3557,14 @@ declare const parsersLoaders: {
|
|
|
3565
3557
|
packageName: "toml-eslint-parser";
|
|
3566
3558
|
module: typeof toml_eslint_parser | null;
|
|
3567
3559
|
}>;
|
|
3560
|
+
"svelte-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3561
|
+
packageName: "svelte-eslint-parser";
|
|
3562
|
+
module: typeof svelte_eslint_parser_lib_main | null;
|
|
3563
|
+
}>;
|
|
3564
|
+
"ember-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3565
|
+
packageName: "ember-eslint-parser";
|
|
3566
|
+
module: eslint__default.Linter.Parser | null;
|
|
3567
|
+
}>;
|
|
3568
3568
|
"astro-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
|
|
3569
3569
|
packageName: "astro-eslint-parser";
|
|
3570
3570
|
module: typeof astro_eslint_parser | null;
|
|
@@ -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 only on `dependencies` and `devDependencies`.
|
|
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 & {});
|
|
@@ -6735,7 +6742,6 @@ interface TsEslintConfigOptions extends UnConfigOptions<Omit<RulesRecordPartial<
|
|
|
6735
6742
|
/**
|
|
6736
6743
|
* Globs of files to allow running with the default project compiler options
|
|
6737
6744
|
* despite not being matched by the project service.
|
|
6738
|
-
* @default ['*.config.*s', '.*.*s']
|
|
6739
6745
|
* @see https://typescript-eslint.io/packages/parser#allowdefaultproject
|
|
6740
6746
|
*/
|
|
6741
6747
|
allowDefaultProject?: (ParserOptions['projectService'] & object)['allowDefaultProject'];
|
|
@@ -6850,7 +6856,13 @@ interface YamlEslintConfigOptions extends UnConfigOptions<'yml'> {
|
|
|
6850
6856
|
};
|
|
6851
6857
|
}
|
|
6852
6858
|
|
|
6859
|
+
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
6860
|
interface YouDontNeedLodashUnderscoreEslintConfigOptions extends UnConfigOptions<'you-dont-need-lodash-underscore'> {
|
|
6861
|
+
/**
|
|
6862
|
+
* Lodash methods that will be exempted from the check. Will be merged with the default value.
|
|
6863
|
+
* @example {cloneDeep: true, omit: true, throttle: true}
|
|
6864
|
+
*/
|
|
6865
|
+
ignoredMethods?: Partial<Record<LodashMethods, boolean>>;
|
|
6854
6866
|
}
|
|
6855
6867
|
|
|
6856
6868
|
interface EslintConfigUnOptions {
|
|
@@ -25651,10 +25663,42 @@ type ReactRefreshOnlyExportComponents$1 = []|[{
|
|
|
25651
25663
|
|
|
25652
25664
|
interface PluginReactYouMightNotNeedAnEffect {
|
|
25653
25665
|
/**
|
|
25654
|
-
*
|
|
25655
|
-
* @see https://react.dev/learn/you-might-not-need-an-effect
|
|
25666
|
+
* Disallow chaining state changes in an effect.
|
|
25667
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
|
|
25656
25668
|
*/
|
|
25657
|
-
'
|
|
25669
|
+
'no-chain-state-updates': [];
|
|
25670
|
+
/**
|
|
25671
|
+
* Disallow storing derived state in an effect.
|
|
25672
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
|
|
25673
|
+
*/
|
|
25674
|
+
'no-derived-state': [];
|
|
25675
|
+
/**
|
|
25676
|
+
* Disallow empty React effects.
|
|
25677
|
+
*/
|
|
25678
|
+
'no-empty-effect': [];
|
|
25679
|
+
/**
|
|
25680
|
+
* Disallow using state and an effect as an event handler.
|
|
25681
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
|
|
25682
|
+
*/
|
|
25683
|
+
'no-event-handler': [];
|
|
25684
|
+
/**
|
|
25685
|
+
* Disallow initializing state in an effect.
|
|
25686
|
+
*/
|
|
25687
|
+
'no-initialize-state': [];
|
|
25688
|
+
/**
|
|
25689
|
+
* Disallow effects that only use props.
|
|
25690
|
+
*/
|
|
25691
|
+
'no-manage-parent': [];
|
|
25692
|
+
/**
|
|
25693
|
+
* Disallow passing live state to parent components in an effect.
|
|
25694
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
|
|
25695
|
+
*/
|
|
25696
|
+
'no-pass-live-state-to-parent': [];
|
|
25697
|
+
/**
|
|
25698
|
+
* Disallow resetting all state in an effect when a prop changes.
|
|
25699
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
|
|
25700
|
+
*/
|
|
25701
|
+
'no-reset-all-state-when-a-prop-changes': [];
|
|
25658
25702
|
}
|
|
25659
25703
|
|
|
25660
25704
|
/* ======= Declarations ======= */
|
|
@@ -49023,10 +49067,42 @@ Backward pagination arguments
|
|
|
49023
49067
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
49024
49068
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
49025
49069
|
/**
|
|
49026
|
-
*
|
|
49027
|
-
* @see https://react.dev/learn/you-might-not-need-an-effect
|
|
49070
|
+
* Disallow chaining state changes in an effect.
|
|
49071
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
|
|
49072
|
+
*/
|
|
49073
|
+
'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
|
|
49074
|
+
/**
|
|
49075
|
+
* Disallow storing derived state in an effect.
|
|
49076
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
|
|
49077
|
+
*/
|
|
49078
|
+
'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
|
|
49079
|
+
/**
|
|
49080
|
+
* Disallow empty React effects.
|
|
49081
|
+
*/
|
|
49082
|
+
'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
|
|
49083
|
+
/**
|
|
49084
|
+
* Disallow using state and an effect as an event handler.
|
|
49085
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
|
|
49086
|
+
*/
|
|
49087
|
+
'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
|
|
49088
|
+
/**
|
|
49089
|
+
* Disallow initializing state in an effect.
|
|
49090
|
+
*/
|
|
49091
|
+
'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
|
|
49092
|
+
/**
|
|
49093
|
+
* Disallow effects that only use props.
|
|
49094
|
+
*/
|
|
49095
|
+
'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
|
|
49096
|
+
/**
|
|
49097
|
+
* Disallow passing live state to parent components in an effect.
|
|
49098
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
|
|
49099
|
+
*/
|
|
49100
|
+
'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
|
|
49101
|
+
/**
|
|
49102
|
+
* Disallow resetting all state in an effect when a prop changes.
|
|
49103
|
+
* @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
|
|
49028
49104
|
*/
|
|
49029
|
-
'react-you-might-not-need-an-effect/
|
|
49105
|
+
'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
|
|
49030
49106
|
/**
|
|
49031
49107
|
* Enforces consistent naming for boolean props
|
|
49032
49108
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
|