eslint-config-un 1.0.0-alpha.13 → 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-DHP7W6AX.js → angular-ZFGONNG5.js} +1 -1
- package/dist/{astro-OBOGZNXU.js → astro-6SPPSRQA.js} +2 -2
- package/dist/{ava-RJJUGSBR.js → ava-IO6ZXELD.js} +2 -2
- package/dist/{better-tailwind-RJGV4GIR.js → better-tailwind-FNHSFHYZ.js} +1 -1
- package/dist/{case-police-T42CRVQ3.js → case-police-QTIM3NUF.js} +1 -1
- package/dist/{chunk-QKZ6AXKD.js → chunk-2BBKB537.js} +1 -1
- package/dist/{chunk-25EOEUES.js → chunk-6RJG6B4Y.js} +1 -1
- package/dist/{chunk-MEHRKYGN.js → chunk-A57BVULE.js} +1 -1
- package/dist/{chunk-2TD45ZYJ.js → chunk-YFMHTZZZ.js} +1 -1
- package/dist/{cli-KGH2FPZ6.js → cli-YTJSWN4V.js} +1 -1
- package/dist/{cloudfront-functions-EYFFYYT2.js → cloudfront-functions-OU4634OO.js} +2 -2
- package/dist/{compat-6GGJGQOF.js → compat-TYMUWVEZ.js} +1 -1
- package/dist/{cspell-PEFAN5CN.js → cspell-QDOZWFC4.js} +1 -1
- package/dist/{css-SFLK2WNT.js → css-B66S3I3H.js} +1 -1
- package/dist/{css-in-js-F6APUP7K.js → css-in-js-T5BZSDEE.js} +1 -1
- package/dist/{cypress-Y6RY7ZFZ.js → cypress-VM4PMBDZ.js} +2 -2
- package/dist/{de-morgan-N5GG5KIH.js → de-morgan-YVLXOZXF.js} +1 -1
- package/dist/{depend-KIVMKP5X.js → depend-MHNS5N2F.js} +2 -2
- package/dist/{ember-VWWU2KU3.js → ember-LSRHJ7SQ.js} +2 -2
- package/dist/{erasable-syntax-only-I3MYR7PJ.js → erasable-syntax-only-OBTCSL27.js} +1 -1
- package/dist/es-Y7P3OIBW.js +7 -0
- package/dist/{eslint-comments-QXMEK5OC.js → eslint-comments-7TF4UFF4.js} +1 -1
- package/dist/{eslint-plugin-VL5O35EA.js → eslint-plugin-UDOXOXEK.js} +2 -2
- package/dist/{file-progress-HM5CUGON.js → file-progress-HKX5TR3F.js} +1 -1
- package/dist/{graphql-7MMZT52G.js → graphql-UR5SUQ23.js} +1 -1
- package/dist/{html-E3KJGDJE.js → html-44X5CV25.js} +1 -1
- package/dist/{import-JXXSWNNI.js → import-P22DCT3J.js} +5 -7
- package/dist/index.d.ts +9 -2
- package/dist/index.js +68 -68
- package/dist/{jest-A4KBTPO6.js → jest-HFXUIO7F.js} +2 -2
- package/dist/{js-OKX4EES5.js → js-YXGEV4GD.js} +1 -1
- package/dist/{js-inline-YCLHOFXR.js → js-inline-24EEJR5E.js} +1 -1
- package/dist/{jsdoc-4MZA5ZSC.js → jsdoc-TDY3I4S7.js} +1 -1
- package/dist/{json-schema-validator-GAVHMFQM.js → json-schema-validator-4NERYR6W.js} +2 -2
- package/dist/{jsonc-ZJWLQKHM.js → jsonc-LOOFCMVP.js} +2 -2
- package/dist/{jsx-a11y-PK5LEZSK.js → jsx-a11y-7JNZWW5C.js} +1 -1
- package/dist/{lit-AAAPGHTR.js → lit-Z4S3DDFV.js} +2 -2
- package/dist/{markdown-BYYEL5EM.js → markdown-RDN6VJYO.js} +2 -2
- package/dist/{math-C6BAK7OE.js → math-L3HDG5ZY.js} +1 -1
- package/dist/{mdx-ZXFBF5FU.js → mdx-F7XXJVRU.js} +2 -2
- package/dist/{mocha-FM6Q4XU7.js → mocha-TL3I4LS4.js} +2 -2
- package/dist/{nextjs-V2IP57GV.js → nextjs-KXQX5GR2.js} +1 -1
- package/dist/{no-only-tests-YQQAFYXV.js → no-only-tests-MO75G7V3.js} +2 -2
- package/dist/{no-stylistic-rules-ZGOLIBON.js → no-stylistic-rules-G54INGJF.js} +1 -2
- package/dist/{no-unsanitized-WM2QZYCF.js → no-unsanitized-P3YTDMSI.js} +1 -1
- package/dist/{node-O2FB3XJO.js → node-O2V7Y54C.js} +1 -1
- package/dist/{node-dependencies-GC45HQOH.js → node-dependencies-MVMYIYM2.js} +2 -2
- package/dist/{package-json-WY2KEAFC.js → package-json-G52S5DEC.js} +2 -2
- package/dist/{perfectionist-CSB7ZJXV.js → perfectionist-4CPH4E22.js} +1 -1
- package/dist/{playwright-QU4XQBY6.js → playwright-2QMKYCFV.js} +2 -2
- package/dist/{pnpm-FX5PJAHN.js → pnpm-JB6CHWSI.js} +1 -1
- package/dist/{prefer-arrow-functions-E557UPBZ.js → prefer-arrow-functions-AIQSPYZI.js} +1 -1
- package/dist/{promise-LUWAMCO6.js → promise-SVBDM7B5.js} +1 -1
- package/dist/{qwik-2X5CZXMR.js → qwik-7UYJITDH.js} +1 -1
- package/dist/{react-MKW4SVQU.js → react-ZTVZUVGN.js} +2 -2
- package/dist/{regexp-4VRL4FDE.js → regexp-ZWUAFGHY.js} +1 -1
- package/dist/{security-324EVXHG.js → security-AG4DWBEH.js} +1 -1
- package/dist/{solid-D2E2XNZS.js → solid-EY4WAYIG.js} +1 -1
- package/dist/{sonar-H7MYPCUC.js → sonar-32BSVXAW.js} +1 -1
- package/dist/{storybook-A675KKBD.js → storybook-HUKBVEVW.js} +1 -1
- package/dist/{svelte-LP4LXF2S.js → svelte-UHE24AYG.js} +2 -2
- package/dist/{tailwind-DB3MSXKP.js → tailwind-GLK5II3H.js} +1 -1
- package/dist/{tanstack-query-LV3VCH4S.js → tanstack-query-DHF2RPFD.js} +1 -1
- package/dist/{testing-library-ZX7CQH5J.js → testing-library-HKODELS7.js} +2 -2
- package/dist/{toml-55QMBNDJ.js → toml-SZTZFRWK.js} +2 -2
- package/dist/{ts-KWQJ5KS7.js → ts-IRWXYK4B.js} +1 -1
- package/dist/{turbo-ND4TBHCM.js → turbo-QJM4M36C.js} +1 -1
- package/dist/{unicorn-WMR37NWU.js → unicorn-HU4WANTH.js} +7 -4
- package/dist/{unused-imports-CORCCYIM.js → unused-imports-5EJWQNJD.js} +1 -1
- package/dist/{vitest-4VNVFQK5.js → vitest-SUNJXQGH.js} +2 -2
- package/dist/{vue-S2XTZTUM.js → vue-ALJW74V3.js} +2 -2
- package/dist/{yaml-GT2PU3LX.js → yaml-GSFGSGA6.js} +7 -3
- package/dist/{you-dont-need-lodash-underscore-WG4XPVAV.js → you-dont-need-lodash-underscore-733NY7HU.js} +1 -1
- package/package.json +1 -1
- package/dist/es-GHNMXYYS.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
|
@@ -4839,7 +4839,6 @@ declare const ALL_STYLISTIC_RULES: {
|
|
|
4839
4839
|
readonly 'no-unreadable-array-destructuring': true;
|
|
4840
4840
|
readonly 'no-unreadable-iife': true;
|
|
4841
4841
|
readonly 'no-useless-fallback-in-spread': true;
|
|
4842
|
-
readonly 'no-useless-undefined': true;
|
|
4843
4842
|
readonly 'no-zero-fractions': true;
|
|
4844
4843
|
readonly 'number-literal-case': true;
|
|
4845
4844
|
readonly 'numeric-separators-style': true;
|
|
@@ -5070,6 +5069,13 @@ interface ImportEslintConfigOptions extends UnConfigOptions<'import'> {
|
|
|
5070
5069
|
* @see https://github.com/un-ts/eslint-plugin-import-x/tree/HEAD?tab=readme-ov-file#settings
|
|
5071
5070
|
*/
|
|
5072
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;
|
|
5073
5079
|
/**
|
|
5074
5080
|
* Recognized automatically and normally should not be set manually.
|
|
5075
5081
|
*
|
|
@@ -6769,9 +6775,10 @@ interface YamlEslintConfigOptions extends UnConfigOptions<'yml'> {
|
|
|
6769
6775
|
*/
|
|
6770
6776
|
doNotMergeFilesWithDefault?: boolean;
|
|
6771
6777
|
/**
|
|
6778
|
+
* Set to `false` to not enforce the extension.
|
|
6772
6779
|
* @default 'yml'
|
|
6773
6780
|
*/
|
|
6774
|
-
enforceExtension?: 'yml' | 'yaml';
|
|
6781
|
+
enforceExtension?: 'yml' | 'yaml' | false;
|
|
6775
6782
|
doNotIgnoreFilesByDefault?: Partial<Record<(typeof DEFAULT_FILES_TO_IGNORE)[number], boolean>>;
|
|
6776
6783
|
/**
|
|
6777
6784
|
* Enforce a specific casing style for keys. It is not enforced by default, but passing an empty object here will enforce `camelCase` style (default value for this rule).
|
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) => {
|