eslint-config-un 1.0.0-alpha.14 → 1.0.0-alpha.15
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-5DMQ6RDM.js → angular-ZFGONNG5.js} +1 -1
- package/dist/{astro-KVB7ATU2.js → astro-6SPPSRQA.js} +2 -2
- package/dist/{ava-M3BMVLGN.js → ava-IO6ZXELD.js} +2 -2
- package/dist/{better-tailwind-X7PO3LP2.js → better-tailwind-FNHSFHYZ.js} +1 -1
- package/dist/{case-police-CZW6MDXX.js → case-police-QTIM3NUF.js} +1 -1
- package/dist/{chunk-RAMEXQZ5.js → chunk-2BBKB537.js} +1 -1
- package/dist/{chunk-BN2S7ZH4.js → chunk-6RJG6B4Y.js} +1 -1
- package/dist/{chunk-KQGVHDGS.js → chunk-A57BVULE.js} +1 -1
- package/dist/{chunk-BK3ATM7I.js → chunk-YFMHTZZZ.js} +1 -1
- package/dist/{cli-B75WY4L6.js → cli-YTJSWN4V.js} +1 -1
- package/dist/{cloudfront-functions-HI6XEPKT.js → cloudfront-functions-OU4634OO.js} +2 -2
- package/dist/{compat-7XQEWN77.js → compat-TYMUWVEZ.js} +1 -1
- package/dist/{cspell-N7GLKTC5.js → cspell-QDOZWFC4.js} +1 -1
- package/dist/{css-WQH2LKFP.js → css-B66S3I3H.js} +1 -1
- package/dist/{css-in-js-JLOXLDIJ.js → css-in-js-T5BZSDEE.js} +1 -1
- package/dist/{cypress-DA7J74H4.js → cypress-VM4PMBDZ.js} +2 -2
- package/dist/{de-morgan-7AUYR3NC.js → de-morgan-YVLXOZXF.js} +1 -1
- package/dist/{depend-VSYQMH2U.js → depend-MHNS5N2F.js} +2 -2
- package/dist/{ember-ATVJYIS4.js → ember-LSRHJ7SQ.js} +2 -2
- package/dist/{erasable-syntax-only-F5BMUOQK.js → erasable-syntax-only-OBTCSL27.js} +1 -1
- package/dist/es-Y7P3OIBW.js +7 -0
- package/dist/{eslint-comments-LEBLFV2S.js → eslint-comments-7TF4UFF4.js} +1 -1
- package/dist/{eslint-plugin-TMPSBSLJ.js → eslint-plugin-UDOXOXEK.js} +2 -2
- package/dist/{file-progress-66M622QW.js → file-progress-HKX5TR3F.js} +1 -1
- package/dist/{graphql-LITDMEJW.js → graphql-UR5SUQ23.js} +1 -1
- package/dist/{html-ISDS6M6I.js → html-44X5CV25.js} +1 -1
- package/dist/{import-USOAV7SO.js → import-P22DCT3J.js} +5 -7
- package/dist/index.d.ts +7 -0
- package/dist/index.js +68 -68
- package/dist/{jest-FJITBJSC.js → jest-HFXUIO7F.js} +2 -2
- package/dist/{js-RLL7IHQC.js → js-YXGEV4GD.js} +1 -1
- package/dist/{js-inline-TWDWPGG6.js → js-inline-24EEJR5E.js} +1 -1
- package/dist/{jsdoc-XMEZGCS5.js → jsdoc-TDY3I4S7.js} +1 -1
- package/dist/{json-schema-validator-PIS2T7BX.js → json-schema-validator-4NERYR6W.js} +2 -2
- package/dist/{jsonc-HBZ7N6WK.js → jsonc-LOOFCMVP.js} +2 -2
- package/dist/{jsx-a11y-VLHIEVJO.js → jsx-a11y-7JNZWW5C.js} +1 -1
- package/dist/{lit-BSGU2E4C.js → lit-Z4S3DDFV.js} +2 -2
- package/dist/{markdown-5V6JPZ7C.js → markdown-RDN6VJYO.js} +2 -2
- package/dist/{math-ZP62SAKP.js → math-L3HDG5ZY.js} +1 -1
- package/dist/{mdx-X5A44VPQ.js → mdx-F7XXJVRU.js} +2 -2
- package/dist/{mocha-AH42ESWD.js → mocha-TL3I4LS4.js} +2 -2
- package/dist/{nextjs-E2446B3G.js → nextjs-KXQX5GR2.js} +1 -1
- package/dist/{no-only-tests-VERIH3TS.js → no-only-tests-MO75G7V3.js} +2 -2
- package/dist/{no-stylistic-rules-TTTFJC5U.js → no-stylistic-rules-G54INGJF.js} +1 -1
- package/dist/{no-unsanitized-DSNJIJWJ.js → no-unsanitized-P3YTDMSI.js} +1 -1
- package/dist/{node-372I6PAG.js → node-O2V7Y54C.js} +1 -1
- package/dist/{node-dependencies-ZWRSJ37Z.js → node-dependencies-MVMYIYM2.js} +2 -2
- package/dist/{package-json-ELH5XFZN.js → package-json-G52S5DEC.js} +2 -2
- package/dist/{perfectionist-ESNI7IYA.js → perfectionist-4CPH4E22.js} +1 -1
- package/dist/{playwright-KWU4XSRT.js → playwright-2QMKYCFV.js} +2 -2
- package/dist/{pnpm-POJRCTVY.js → pnpm-JB6CHWSI.js} +1 -1
- package/dist/{prefer-arrow-functions-BIRRY4WP.js → prefer-arrow-functions-AIQSPYZI.js} +1 -1
- package/dist/{promise-Q5T6XMBB.js → promise-SVBDM7B5.js} +1 -1
- package/dist/{qwik-7I7AUDLM.js → qwik-7UYJITDH.js} +1 -1
- package/dist/{react-BRWMDCZ6.js → react-ZTVZUVGN.js} +2 -2
- package/dist/{regexp-KN2EVGUD.js → regexp-ZWUAFGHY.js} +1 -1
- package/dist/{security-GTIB4UPG.js → security-AG4DWBEH.js} +1 -1
- package/dist/{solid-JMFXRFF5.js → solid-EY4WAYIG.js} +1 -1
- package/dist/{sonar-7ICIC2KD.js → sonar-32BSVXAW.js} +1 -1
- package/dist/{storybook-BYT7BXSN.js → storybook-HUKBVEVW.js} +1 -1
- package/dist/{svelte-R7V2WF56.js → svelte-UHE24AYG.js} +2 -2
- package/dist/{tailwind-YIKAXT5R.js → tailwind-GLK5II3H.js} +1 -1
- package/dist/{tanstack-query-P5RAWEXG.js → tanstack-query-DHF2RPFD.js} +1 -1
- package/dist/{testing-library-OYLXZWQA.js → testing-library-HKODELS7.js} +2 -2
- package/dist/{toml-QX4OBOP2.js → toml-SZTZFRWK.js} +2 -2
- package/dist/{ts-B65HEUVH.js → ts-IRWXYK4B.js} +1 -1
- package/dist/{turbo-LNYCBDDH.js → turbo-QJM4M36C.js} +1 -1
- package/dist/{unicorn-36ZI5CRX.js → unicorn-HU4WANTH.js} +1 -1
- package/dist/{unused-imports-34VFEHWJ.js → unused-imports-5EJWQNJD.js} +1 -1
- package/dist/{vitest-CPNSRCZG.js → vitest-SUNJXQGH.js} +2 -2
- package/dist/{vue-FAY3EE74.js → vue-ALJW74V3.js} +2 -2
- package/dist/{yaml-Y2R2GW2P.js → yaml-GSFGSGA6.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-5CFZLPEZ.js → you-dont-need-lodash-underscore-733NY7HU.js} +1 -1
- package/package.json +1 -1
- package/dist/es-3PIBZIHA.js +0 -7
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault,
|
|
9
9
|
pluginsLoaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YFMHTZZZ.js";
|
|
11
11
|
|
|
12
12
|
// src/configs/astro.ts
|
|
13
13
|
var DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -62,7 +62,7 @@ var astroUnConfig = async (context) => {
|
|
|
62
62
|
configs: [
|
|
63
63
|
configBuilder,
|
|
64
64
|
...configJsxA11y === false ? [] : await (async () => {
|
|
65
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
65
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-7JNZWW5C.js");
|
|
66
66
|
const result = await jsxA11yUnConfig(context, {
|
|
67
67
|
prefix: "astro",
|
|
68
68
|
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-6RJG6B4Y.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-YFMHTZZZ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/ava.ts
|
|
16
16
|
var avaUnConfig = (context) => {
|
|
@@ -188,7 +188,7 @@ import stylistic from "@stylistic/eslint-plugin";
|
|
|
188
188
|
// package.json
|
|
189
189
|
var package_default = {
|
|
190
190
|
name: "eslint-config-un",
|
|
191
|
-
version: "1.0.0-alpha.
|
|
191
|
+
version: "1.0.0-alpha.15",
|
|
192
192
|
description: "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
193
193
|
keywords: [
|
|
194
194
|
"eslint",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esUnConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A57BVULE.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
assignDefaults,
|
|
8
8
|
createConfigBuilder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YFMHTZZZ.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-6RJG6B4Y.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-YFMHTZZZ.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-2BBKB537.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
assignDefaults,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YFMHTZZZ.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-6RJG6B4Y.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
assignDefaults,
|
|
13
13
|
createConfigBuilder,
|
|
14
14
|
interopDefault
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YFMHTZZZ.js";
|
|
16
16
|
|
|
17
17
|
// src/configs/ember.ts
|
|
18
18
|
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-6RJG6B4Y.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-YFMHTZZZ.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/eslint-plugin.ts
|
|
14
14
|
var eslintPluginUnConfig = (context) => {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
interopDefault,
|
|
9
9
|
isNonEmptyArray,
|
|
10
10
|
pluginsLoaders
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YFMHTZZZ.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/import.ts
|
|
14
14
|
var importUnConfig = async (context) => {
|
|
@@ -18,10 +18,12 @@ var importUnConfig = async (context) => {
|
|
|
18
18
|
]);
|
|
19
19
|
const optionsRaw = context.rootOptions.configs?.import;
|
|
20
20
|
const optionsResolved = assignDefaults(optionsRaw, {
|
|
21
|
-
isTypescriptEnabled: context.configsMeta.ts.enabled
|
|
21
|
+
isTypescriptEnabled: context.configsMeta.ts.enabled,
|
|
22
|
+
allowDevDependencies: context.rootOptions.mode !== "lib"
|
|
22
23
|
});
|
|
23
24
|
const {
|
|
24
25
|
settings: pluginSettings,
|
|
26
|
+
allowDevDependencies,
|
|
25
27
|
isTypescriptEnabled,
|
|
26
28
|
tsResolverOptions,
|
|
27
29
|
noDuplicatesOptions,
|
|
@@ -54,11 +56,7 @@ var importUnConfig = async (context) => {
|
|
|
54
56
|
),
|
|
55
57
|
...typeof requireModuleExtensions === "object" && requireModuleExtensions
|
|
56
58
|
}
|
|
57
|
-
]).addRule("first", ERROR).addRule("group-exports", OFF).addRule("max-dependencies", OFF).addRule("named", isTypescriptEnabled ? OFF : ERROR).addRule("namespace", ERROR).addRule("newline-after-import", ERROR).addRule("no-absolute-path", ERROR).addRule("no-amd", OFF).addRule("no-anonymous-default-export", OFF).addRule("no-commonjs", OFF).addRule("no-cycle", WARNING).addRule("no-default-export", ERROR).addRule("no-deprecated", isTypescriptEnabled ? OFF : WARNING).addRule("no-duplicates", ERROR, [{ "prefer-inline": true, ...noDuplicatesOptions }]).addRule("no-dynamic-require", OFF).addRule("no-empty-named-blocks", ERROR).addRule("no-extraneous-dependencies", ERROR, [
|
|
58
|
-
{
|
|
59
|
-
devDependencies: context.rootOptions.mode !== "lib"
|
|
60
|
-
}
|
|
61
|
-
]).addRule("no-import-module-exports", OFF).addRule("no-internal-modules", OFF).addRule("no-mutable-exports", WARNING).addRule("no-named-as-default-member", OFF).addRule("no-named-as-default", OFF).addRule("no-named-default", OFF).addRule("no-named-export", OFF).addRule("no-namespace", OFF).addRule("no-nodejs-modules", OFF).addRule("no-relative-packages", OFF).addRule("no-relative-parent-imports", OFF).addRule("no-restricted-paths", OFF).addRule("no-self-import", ERROR).addRule("no-unassigned-import", OFF).addRule("no-unresolved", ERROR, [
|
|
59
|
+
]).addRule("first", ERROR).addRule("group-exports", OFF).addRule("max-dependencies", OFF).addRule("named", isTypescriptEnabled ? OFF : ERROR).addRule("namespace", ERROR).addRule("newline-after-import", ERROR).addRule("no-absolute-path", ERROR).addRule("no-amd", OFF).addRule("no-anonymous-default-export", OFF).addRule("no-commonjs", OFF).addRule("no-cycle", WARNING).addRule("no-default-export", ERROR).addRule("no-deprecated", isTypescriptEnabled ? OFF : WARNING).addRule("no-duplicates", ERROR, [{ "prefer-inline": true, ...noDuplicatesOptions }]).addRule("no-dynamic-require", OFF).addRule("no-empty-named-blocks", ERROR).addRule("no-extraneous-dependencies", ERROR, [{ devDependencies: allowDevDependencies }]).addRule("no-import-module-exports", OFF).addRule("no-internal-modules", OFF).addRule("no-mutable-exports", WARNING).addRule("no-named-as-default-member", OFF).addRule("no-named-as-default", OFF).addRule("no-named-default", OFF).addRule("no-named-export", OFF).addRule("no-namespace", OFF).addRule("no-nodejs-modules", OFF).addRule("no-relative-packages", OFF).addRule("no-relative-parent-imports", OFF).addRule("no-restricted-paths", OFF).addRule("no-self-import", ERROR).addRule("no-unassigned-import", OFF).addRule("no-unresolved", ERROR, [
|
|
62
60
|
{
|
|
63
61
|
...isNonEmptyArray(noUnresolvedIgnores) && {
|
|
64
62
|
ignore: noUnresolvedIgnores
|
package/dist/index.d.ts
CHANGED
|
@@ -5069,6 +5069,13 @@ interface ImportEslintConfigOptions extends UnConfigOptions<'import'> {
|
|
|
5069
5069
|
* @see https://github.com/un-ts/eslint-plugin-import-x/tree/HEAD?tab=readme-ov-file#settings
|
|
5070
5070
|
*/
|
|
5071
5071
|
settings?: PluginSettings;
|
|
5072
|
+
/**
|
|
5073
|
+
* Whether the use of dependencies from `devDependencies` is not going to be reported by
|
|
5074
|
+
* the [`import/no-extraneous-dependencies`](https://github.com/un-ts/eslint-plugin-import-x/blob/HEAD/docs/rules/no-extraneous-dependencies.md) rule. You can specify glob patterns or allow
|
|
5075
|
+
* universally by setting this option to `true`.
|
|
5076
|
+
* @default false <=> `mode` root option is set to `lib`
|
|
5077
|
+
*/
|
|
5078
|
+
allowDevDependencies?: string[] | boolean;
|
|
5072
5079
|
/**
|
|
5073
5080
|
* Recognized automatically and normally should not be set manually.
|
|
5074
5081
|
*
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
omit,
|
|
22
22
|
pluginsLoaders,
|
|
23
23
|
resolveOverrides
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YFMHTZZZ.js";
|
|
25
25
|
|
|
26
26
|
// src/config.ts
|
|
27
27
|
import fs from "fs/promises";
|
|
@@ -302,17 +302,17 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
302
302
|
logger,
|
|
303
303
|
debug
|
|
304
304
|
};
|
|
305
|
-
const jsEslintConfigResult = isJsEnabled && await import("./js-
|
|
305
|
+
const jsEslintConfigResult = isJsEnabled && await import("./js-YXGEV4GD.js").then((m) => m.jsUnConfig(context));
|
|
306
306
|
const vanillaFinalFlatConfigRules = (
|
|
307
307
|
// eslint-disable-next-line ts/no-unnecessary-condition -- TODO report?
|
|
308
308
|
jsEslintConfigResult && jsEslintConfigResult.finalFlatConfigRules || {}
|
|
309
309
|
);
|
|
310
310
|
const [astroEslintConfigResult, vueEslintConfigResult, svelteEslintConfigResult] = await Promise.all([
|
|
311
|
-
isAstroEnabled && import("./astro-
|
|
312
|
-
isVueEnabled && import("./vue-
|
|
313
|
-
isSvelteEnabled && import("./svelte-
|
|
311
|
+
isAstroEnabled && import("./astro-6SPPSRQA.js").then((m) => m.astroUnConfig(context)),
|
|
312
|
+
isVueEnabled && import("./vue-ALJW74V3.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
313
|
+
isSvelteEnabled && import("./svelte-UHE24AYG.js").then((m) => m.svelteUnConfig(context))
|
|
314
314
|
]);
|
|
315
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
315
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-IRWXYK4B.js").then(
|
|
316
316
|
(m) => m.tsUnConfig(context, {
|
|
317
317
|
vanillaFinalFlatConfigRules,
|
|
318
318
|
astroResolvedOptions: astroEslintConfigResult ? astroEslintConfigResult.optionsResolved : null,
|
|
@@ -373,90 +373,90 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
373
373
|
},
|
|
374
374
|
/* Enabled by default or conditionally */
|
|
375
375
|
jsEslintConfigResult,
|
|
376
|
-
isUnicornEnabled && import("./unicorn-
|
|
377
|
-
isImportEnabled && import("./import-
|
|
378
|
-
isNodeEnabled && import("./node-
|
|
379
|
-
isPromiseEnabled && import("./promise-
|
|
380
|
-
isSonarEnabled && import("./sonar-
|
|
381
|
-
isTailwindEnabled && import("./tailwind-
|
|
382
|
-
isRegexpEnabled && import("./regexp-
|
|
383
|
-
isEslintCommentsEnabled && import("./eslint-comments-
|
|
384
|
-
isCssInJsEnabled && import("./css-in-js-
|
|
385
|
-
isJestEnabled && import("./jest-
|
|
386
|
-
isVitestEnabled && import("./vitest-
|
|
387
|
-
isJsdocEnabled && import("./jsdoc-
|
|
388
|
-
isQwikEnabled && import("./qwik-
|
|
389
|
-
isCssEnabled && import("./css-
|
|
390
|
-
isUnusedImportsEnabled && import("./unused-imports-
|
|
391
|
-
isReactEnabled && import("./react-
|
|
376
|
+
isUnicornEnabled && import("./unicorn-HU4WANTH.js").then((m) => m.unicornUnConfig(context)),
|
|
377
|
+
isImportEnabled && import("./import-P22DCT3J.js").then((m) => m.importUnConfig(context)),
|
|
378
|
+
isNodeEnabled && import("./node-O2V7Y54C.js").then((m) => m.nodeUnConfig(context)),
|
|
379
|
+
isPromiseEnabled && import("./promise-SVBDM7B5.js").then((m) => m.promiseUnConfig(context)),
|
|
380
|
+
isSonarEnabled && import("./sonar-32BSVXAW.js").then((m) => m.sonarUnConfig(context)),
|
|
381
|
+
isTailwindEnabled && import("./tailwind-GLK5II3H.js").then((m) => m.tailwindUnConfig(context)),
|
|
382
|
+
isRegexpEnabled && import("./regexp-ZWUAFGHY.js").then((m) => m.regexpUnConfig(context)),
|
|
383
|
+
isEslintCommentsEnabled && import("./eslint-comments-7TF4UFF4.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
384
|
+
isCssInJsEnabled && import("./css-in-js-T5BZSDEE.js").then((m) => m.cssInJsUnConfig(context)),
|
|
385
|
+
isJestEnabled && import("./jest-HFXUIO7F.js").then((m) => m.jestUnConfig(context)),
|
|
386
|
+
isVitestEnabled && import("./vitest-SUNJXQGH.js").then((m) => m.vitestUnConfig(context)),
|
|
387
|
+
isJsdocEnabled && import("./jsdoc-TDY3I4S7.js").then((m) => m.jsdocUnConfig(context)),
|
|
388
|
+
isQwikEnabled && import("./qwik-7UYJITDH.js").then((m) => m.qwikUnConfig(context)),
|
|
389
|
+
isCssEnabled && import("./css-B66S3I3H.js").then((m) => m.cssUnConfig(context)),
|
|
390
|
+
isUnusedImportsEnabled && import("./unused-imports-5EJWQNJD.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
391
|
+
isReactEnabled && import("./react-ZTVZUVGN.js").then(
|
|
392
392
|
(m) => m.reactUnConfig(context, {
|
|
393
393
|
tsFilesTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.filesTypeAware : [],
|
|
394
394
|
tsIgnoresTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.ignoresTypeAware : []
|
|
395
395
|
})
|
|
396
396
|
),
|
|
397
|
-
isJsxA11yEnabled && import("./jsx-a11y-
|
|
398
|
-
isPnpmEnabled && import("./pnpm-
|
|
399
|
-
isNextJsEnabled && import("./nextjs-
|
|
400
|
-
isSolidEnabled && import("./solid-
|
|
401
|
-
isJsInlineEnabled && import("./js-inline-
|
|
402
|
-
isHtmlEnabled && import("./html-
|
|
403
|
-
isMathEnabled && import("./math-
|
|
404
|
-
isTanstackQueryEnabled && import("./tanstack-query-
|
|
405
|
-
isAvaEnabled && import("./ava-
|
|
406
|
-
isTestingLibraryEnabled && import("./testing-library-
|
|
407
|
-
isStorybookEnabled && import("./storybook-
|
|
408
|
-
isEmberEnabled && import("./ember-
|
|
409
|
-
isCypressEnabled && import("./cypress-
|
|
410
|
-
isTurboEnabled && import("./turbo-
|
|
411
|
-
isNoUnsanitizedEnabled && import("./no-unsanitized-
|
|
412
|
-
isBetterTailwindEnabled && import("./better-tailwind-
|
|
413
|
-
isMdxEnabled && import("./mdx-
|
|
414
|
-
isPlaywrightEnabled && import("./playwright-
|
|
415
|
-
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-
|
|
397
|
+
isJsxA11yEnabled && import("./jsx-a11y-7JNZWW5C.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
398
|
+
isPnpmEnabled && import("./pnpm-JB6CHWSI.js").then((m) => m.pnpmUnConfig(context)),
|
|
399
|
+
isNextJsEnabled && import("./nextjs-KXQX5GR2.js").then((m) => m.nextJsUnConfig(context)),
|
|
400
|
+
isSolidEnabled && import("./solid-EY4WAYIG.js").then((m) => m.solidUnConfig(context)),
|
|
401
|
+
isJsInlineEnabled && import("./js-inline-24EEJR5E.js").then((m) => m.jsInlineUnConfig(context)),
|
|
402
|
+
isHtmlEnabled && import("./html-44X5CV25.js").then((m) => m.htmlUnConfig(context)),
|
|
403
|
+
isMathEnabled && import("./math-L3HDG5ZY.js").then((m) => m.mathUnConfig(context)),
|
|
404
|
+
isTanstackQueryEnabled && import("./tanstack-query-DHF2RPFD.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
405
|
+
isAvaEnabled && import("./ava-IO6ZXELD.js").then((m) => m.avaUnConfig(context)),
|
|
406
|
+
isTestingLibraryEnabled && import("./testing-library-HKODELS7.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
407
|
+
isStorybookEnabled && import("./storybook-HUKBVEVW.js").then((m) => m.storybookUnConfig(context)),
|
|
408
|
+
isEmberEnabled && import("./ember-LSRHJ7SQ.js").then((m) => m.emberUnConfig(context)),
|
|
409
|
+
isCypressEnabled && import("./cypress-VM4PMBDZ.js").then((m) => m.cypressUnConfig(context)),
|
|
410
|
+
isTurboEnabled && import("./turbo-QJM4M36C.js").then((m) => m.turboUnConfig(context)),
|
|
411
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-P3YTDMSI.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
412
|
+
isBetterTailwindEnabled && import("./better-tailwind-FNHSFHYZ.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
413
|
+
isMdxEnabled && import("./mdx-F7XXJVRU.js").then((m) => m.mdxUnConfig(context)),
|
|
414
|
+
isPlaywrightEnabled && import("./playwright-2QMKYCFV.js").then((m) => m.playwrightUnConfig(context)),
|
|
415
|
+
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-733NY7HU.js").then(
|
|
416
416
|
(m) => m.youDontNeedLodashUnderscoreUnConfig(context)
|
|
417
417
|
),
|
|
418
|
-
isLitEnabled && import("./lit-
|
|
419
|
-
isMochaEnabled && import("./mocha-
|
|
418
|
+
isLitEnabled && import("./lit-Z4S3DDFV.js").then((m) => m.litUnConfig(context)),
|
|
419
|
+
isMochaEnabled && import("./mocha-TL3I4LS4.js").then((m) => m.mochaUnConfig(context)),
|
|
420
420
|
/* Disabled by default */
|
|
421
|
-
isSecurityEnabled && import("./security-
|
|
422
|
-
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-
|
|
421
|
+
isSecurityEnabled && import("./security-AG4DWBEH.js").then((m) => m.securityUnConfig(context)),
|
|
422
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-AIQSPYZI.js").then(
|
|
423
423
|
(m) => m.preferArrowFunctionsUnConfig(context)
|
|
424
424
|
),
|
|
425
|
-
isYamlEnabled && import("./yaml-
|
|
426
|
-
isTomlEnabled && import("./toml-
|
|
427
|
-
isJsoncEnabled && import("./jsonc-
|
|
428
|
-
isPackageJsonEnabled && import("./package-json-
|
|
429
|
-
isPerfectionistEnabled && import("./perfectionist-
|
|
430
|
-
isDeMorganEnabled && import("./de-morgan-
|
|
431
|
-
isJsonSchemaValidatorEnabled && import("./json-schema-validator-
|
|
432
|
-
isCasePoliceEnabled && import("./case-police-
|
|
433
|
-
isNodeDependenciesEnabled && import("./node-dependencies-
|
|
434
|
-
isDependEnabled && import("./depend-
|
|
435
|
-
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-
|
|
436
|
-
isCspellEnabled && import("./cspell-
|
|
437
|
-
isEslintPluginEnabled && import("./eslint-plugin-
|
|
438
|
-
isFileProgressEnabled && import("./file-progress-
|
|
439
|
-
isNoOnlyTestsEnabled && import("./no-only-tests-
|
|
440
|
-
isCompatEnabled && import("./compat-
|
|
425
|
+
isYamlEnabled && import("./yaml-GSFGSGA6.js").then((m) => m.yamlUnConfig(context)),
|
|
426
|
+
isTomlEnabled && import("./toml-SZTZFRWK.js").then((m) => m.tomlUnConfig(context)),
|
|
427
|
+
isJsoncEnabled && import("./jsonc-LOOFCMVP.js").then((m) => m.jsoncUnConfig(context)),
|
|
428
|
+
isPackageJsonEnabled && import("./package-json-G52S5DEC.js").then((m) => m.packageJsonUnConfig(context)),
|
|
429
|
+
isPerfectionistEnabled && import("./perfectionist-4CPH4E22.js").then((m) => m.perfectionistUnConfig(context)),
|
|
430
|
+
isDeMorganEnabled && import("./de-morgan-YVLXOZXF.js").then((m) => m.deMorganUnConfig(context)),
|
|
431
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-4NERYR6W.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
432
|
+
isCasePoliceEnabled && import("./case-police-QTIM3NUF.js").then((m) => m.casePoliceUnConfig(context)),
|
|
433
|
+
isNodeDependenciesEnabled && import("./node-dependencies-MVMYIYM2.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
434
|
+
isDependEnabled && import("./depend-MHNS5N2F.js").then((m) => m.dependUnConfig(context)),
|
|
435
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-OBTCSL27.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
436
|
+
isCspellEnabled && import("./cspell-QDOZWFC4.js").then((m) => m.cspellUnConfig(context)),
|
|
437
|
+
isEslintPluginEnabled && import("./eslint-plugin-UDOXOXEK.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
438
|
+
isFileProgressEnabled && import("./file-progress-HKX5TR3F.js").then((m) => m.fileProgressUnConfig(context)),
|
|
439
|
+
isNoOnlyTestsEnabled && import("./no-only-tests-MO75G7V3.js").then((m) => m.noOnlyTestsUnConfig(context)),
|
|
440
|
+
isCompatEnabled && import("./compat-TYMUWVEZ.js").then((m) => m.compatUnConfig(context)),
|
|
441
441
|
/* Other configs */
|
|
442
442
|
tsEslintConfigResult,
|
|
443
443
|
// Must come after all rulesets for vanilla JS
|
|
444
|
-
isEsEnabled && import("./es-
|
|
444
|
+
isEsEnabled && import("./es-Y7P3OIBW.js").then((m) => m.esUnConfig(context)),
|
|
445
445
|
// Must come after ts
|
|
446
446
|
vueEslintConfigResult,
|
|
447
447
|
// Must come after ts
|
|
448
448
|
astroEslintConfigResult,
|
|
449
449
|
// Must come after ts
|
|
450
|
-
isAngularEnabled && import("./angular-
|
|
450
|
+
isAngularEnabled && import("./angular-ZFGONNG5.js").then((m) => m.angularUnConfig(context)),
|
|
451
451
|
// Must come after ts
|
|
452
452
|
svelteEslintConfigResult,
|
|
453
453
|
// Must be after ts
|
|
454
|
-
isGraphqlEnabled && import("./graphql-
|
|
455
|
-
isMarkdownEnabled && import("./markdown-
|
|
454
|
+
isGraphqlEnabled && import("./graphql-UR5SUQ23.js").then((m) => m.graphqlUnConfig(context)),
|
|
455
|
+
isMarkdownEnabled && import("./markdown-RDN6VJYO.js").then((m) => m.markdownUnConfig(context)),
|
|
456
456
|
// Must be last
|
|
457
457
|
rootConfigBuilder,
|
|
458
|
-
isCliEnabled && import("./cli-
|
|
459
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
458
|
+
isCliEnabled && import("./cli-YTJSWN4V.js").then((m) => m.cliUnConfig(context)),
|
|
459
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-OU4634OO.js").then(
|
|
460
460
|
(m) => m.cloudfrontFunctionsEslintConfig(context)
|
|
461
461
|
),
|
|
462
462
|
...extraConfigs.map((config, configIndex) => ({
|
|
@@ -465,7 +465,7 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
465
465
|
name: genFlatConfigEntryName(`extra-config/${config.name || `unnamed${configIndex}`}`)
|
|
466
466
|
})),
|
|
467
467
|
// MUST be last
|
|
468
|
-
isNoStylisticRulesEnabled && import("./no-stylistic-rules-
|
|
468
|
+
isNoStylisticRulesEnabled && import("./no-stylistic-rules-G54INGJF.js").then((m) => m.noStylisticRulesUnConfig(context)),
|
|
469
469
|
disablePrettierIncompatibleRules && interopDefault(import("eslint-config-prettier")).then((eslintConfigPrettier) => ({
|
|
470
470
|
name: genFlatConfigEntryName("eslint-config-prettier"),
|
|
471
471
|
rules: Object.fromEntries(
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
generateConfigNoOnlyTestsBuilder,
|
|
4
4
|
generateConsistentTestItOptions,
|
|
5
5
|
generateDefaultTestFiles
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6RJG6B4Y.js";
|
|
7
7
|
import {
|
|
8
8
|
ERROR,
|
|
9
9
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
createConfigBuilder,
|
|
15
15
|
doesPackageExist,
|
|
16
16
|
pluginsLoaders
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YFMHTZZZ.js";
|
|
18
18
|
|
|
19
19
|
// src/configs/jest.ts
|
|
20
20
|
var jestUnConfig = async (context) => {
|