eslint-config-un 1.0.0-alpha.2 → 1.0.0-alpha.3
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-I35S5TJH.js → angular-PZI3A3TT.js} +1 -1
- package/dist/{astro-MLSGY523.js → astro-SPEGCL4X.js} +2 -2
- package/dist/{ava-CAB2XAKV.js → ava-OGL4ZYIU.js} +2 -2
- package/dist/{better-tailwind-NA5OXT2H.js → better-tailwind-B3H7LLD3.js} +1 -1
- package/dist/{case-police-KMZSDSFQ.js → case-police-VBM65QND.js} +1 -1
- package/dist/{chunk-L7NY4DIR.js → chunk-A6BNKVXQ.js} +7 -1
- package/dist/{chunk-MCOXOJTL.js → chunk-DCPED2ZM.js} +1 -1
- package/dist/{chunk-RRWPVU6R.js → chunk-HVHXEX2N.js} +1 -1
- package/dist/{chunk-FGAYX7NU.js → chunk-R6XLKF5J.js} +1 -1
- package/dist/{chunk-HKH2EDN6.js → chunk-Y6GBHMX5.js} +1 -1
- package/dist/{cli-7VWSINFJ.js → cli-CLCDYQFQ.js} +1 -1
- package/dist/{cloudfront-functions-J3ZL2G7J.js → cloudfront-functions-JNZHKWCE.js} +2 -2
- package/dist/{cspell-KNSKMNWV.js → cspell-WUO3ZUYY.js} +1 -1
- package/dist/{css-4C5B5QF6.js → css-PBPAF7WU.js} +1 -1
- package/dist/{css-in-js-ABBJATKZ.js → css-in-js-F6V2FJMX.js} +1 -1
- package/dist/{cypress-45S7U2IO.js → cypress-GZXOIWLV.js} +2 -2
- package/dist/{de-morgan-JZ4JTOTR.js → de-morgan-FIQQMXXC.js} +1 -1
- package/dist/{depend-XWLM6SPV.js → depend-VY7OJIJK.js} +2 -2
- package/dist/{ember-JM7X4YIN.js → ember-QVWJPE67.js} +2 -2
- package/dist/{erasable-syntax-only-VFSUE2CS.js → erasable-syntax-only-76OX5PVR.js} +1 -1
- package/dist/es-3DTZALVI.js +7 -0
- package/dist/{eslint-comments-GGQMOKBE.js → eslint-comments-PC2VOBAC.js} +1 -1
- package/dist/{eslint-plugin-KK6S5YF2.js → eslint-plugin-BZ2G7E6F.js} +2 -2
- package/dist/{file-progress-PXQ5E6ZB.js → file-progress-2TB5JEAY.js} +1 -1
- package/dist/{graphql-PQYKHC4Z.js → graphql-J33QTJKH.js} +1 -1
- package/dist/{html-OLR7NJPB.js → html-Q2JM45UB.js} +1 -1
- package/dist/{import-EVB7KBNB.js → import-SAGZNT6U.js} +1 -1
- package/dist/index.js +62 -62
- package/dist/{jest-4SOUHP7H.js → jest-HWHVJQUD.js} +2 -2
- package/dist/{js-WGUYBQB5.js → js-F54BQ4AF.js} +1 -1
- package/dist/{js-inline-SF6EL5O2.js → js-inline-D4LC5F7K.js} +1 -1
- package/dist/{jsdoc-KMLZKKGT.js → jsdoc-HH6UWCAO.js} +1 -1
- package/dist/{json-schema-validator-RWRUMTWK.js → json-schema-validator-UFDHXJR6.js} +2 -2
- package/dist/{jsonc-EHTQMHF3.js → jsonc-TC5NGRVI.js} +2 -2
- package/dist/jsx-a11y-KM73RAFZ.js +7 -0
- package/dist/{markdown-RIUVNCJH.js → markdown-L3THHMHN.js} +2 -2
- package/dist/{math-D7C3M6DY.js → math-RYSG7JEV.js} +1 -1
- package/dist/{mdx-CQMRG7EH.js → mdx-V2IURSRP.js} +2 -2
- package/dist/{nextjs-O3ZBLJKX.js → nextjs-5DOQMIMR.js} +1 -1
- package/dist/{no-stylistic-rules-TDZMA2QP.js → no-stylistic-rules-Q6NBOIKA.js} +1 -1
- package/dist/{no-unsanitized-RCDGAB3H.js → no-unsanitized-2KPEJSCX.js} +1 -1
- package/dist/{node-4R37GFKD.js → node-673CBR44.js} +1 -1
- package/dist/{node-dependencies-P66DDLRP.js → node-dependencies-MRETNKW5.js} +2 -2
- package/dist/{package-json-EY64FXUV.js → package-json-2CA7EEQE.js} +2 -2
- package/dist/{perfectionist-TYM4X3IE.js → perfectionist-2LFG57QU.js} +1 -1
- package/dist/{pnpm-GNIQAYQ2.js → pnpm-XFEA4BGX.js} +1 -1
- package/dist/{prefer-arrow-functions-GE7ETKBL.js → prefer-arrow-functions-DY5UA7O6.js} +1 -1
- package/dist/{promise-W4IRNE3V.js → promise-3MWSL3R2.js} +1 -1
- package/dist/{qwik-ONACLAWX.js → qwik-QF7NLOE3.js} +1 -1
- package/dist/{react-M2OHKXEL.js → react-QRLTTQM2.js} +2 -2
- package/dist/{regexp-5P5WG6DD.js → regexp-NL27XPQR.js} +1 -1
- package/dist/{security-BOD7G3FC.js → security-2NGVDTYK.js} +1 -1
- package/dist/{solid-ODNLS7SN.js → solid-IEWXKLHX.js} +1 -1
- package/dist/{sonar-Z6F7MNH6.js → sonar-FMNW6U2M.js} +1 -1
- package/dist/{storybook-FTCC76IN.js → storybook-Y7FBXLKH.js} +1 -1
- package/dist/{svelte-GPW3LGHY.js → svelte-CAT2RYHH.js} +2 -2
- package/dist/{tailwind-M2454UPC.js → tailwind-6LMXE44Z.js} +1 -1
- package/dist/{tanstack-query-GD4D2UDP.js → tanstack-query-ALV2FXOI.js} +1 -1
- package/dist/{testing-library-HFSYANBY.js → testing-library-WEUZZEJO.js} +2 -2
- package/dist/{toml-2WTWKMRI.js → toml-UCBYLOME.js} +2 -2
- package/dist/{ts-KLDZ6EFW.js → ts-IH7HITVU.js} +1 -1
- package/dist/{turbo-MJMSZ63M.js → turbo-MN5RGR4K.js} +1 -1
- package/dist/{unicorn-XZ6MBR47.js → unicorn-WFY6AAUO.js} +1 -1
- package/dist/{unused-imports-7MBVNHIW.js → unused-imports-7I576FY2.js} +1 -1
- package/dist/{vitest-DRRMX77G.js → vitest-ZOAYUEWH.js} +2 -2
- package/dist/{vue-TE4ETXYZ.js → vue-5UGWOT77.js} +2 -2
- package/dist/{yaml-H3HW2OFQ.js → yaml-BIZ6RRWD.js} +2 -2
- package/package.json +2 -3
- package/dist/es-ZQWFEZ5B.js +0 -7
- package/dist/jsx-a11y-XJXMXHQT.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jsxA11yUnConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DCPED2ZM.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_ASTRO,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
defu,
|
|
11
11
|
interopDefault,
|
|
12
12
|
pluginsLoaders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/astro.ts
|
|
16
16
|
var DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateDefaultTestFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R6XLKF5J.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
WARNING,
|
|
10
10
|
createConfigBuilder,
|
|
11
11
|
defu
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
13
13
|
|
|
14
14
|
// src/configs/ava.ts
|
|
15
15
|
var avaUnConfig = (context) => {
|
|
@@ -139,7 +139,7 @@ import stylistic from "@stylistic/eslint-plugin";
|
|
|
139
139
|
// package.json
|
|
140
140
|
var package_default = {
|
|
141
141
|
name: "eslint-config-un",
|
|
142
|
-
version: "1.0.0-alpha.
|
|
142
|
+
version: "1.0.0-alpha.3",
|
|
143
143
|
description: "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
144
144
|
keywords: [
|
|
145
145
|
"eslint",
|
|
@@ -362,6 +362,12 @@ var package_default = {
|
|
|
362
362
|
optional: true
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
+
bundleDependencies: [
|
|
366
|
+
"eslint-plugin-prettier",
|
|
367
|
+
"angular-eslint-plugin-template17",
|
|
368
|
+
"angular-eslint-plugin18",
|
|
369
|
+
"eslint-plugin-no-type-assertion"
|
|
370
|
+
],
|
|
365
371
|
packageManager: "pnpm@10.12.1",
|
|
366
372
|
engines: {
|
|
367
373
|
node: "^20.11 || >=21.2.0"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esUnConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6GBHMX5.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
defu
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A6BNKVXQ.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`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateDefaultTestFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R6XLKF5J.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
WARNING,
|
|
10
10
|
createConfigBuilder,
|
|
11
11
|
defu
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
13
13
|
|
|
14
14
|
// src/configs/cypress.ts
|
|
15
15
|
var cypressUnConfig = (context) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_FILES_PACKAGE_JSON
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HVHXEX2N.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
createConfigBuilder,
|
|
7
7
|
defu,
|
|
8
8
|
interopDefault
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
10
10
|
|
|
11
11
|
// src/configs/depend.ts
|
|
12
12
|
var dependUnConfig = async (context) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateDefaultTestFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R6XLKF5J.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createConfigBuilder,
|
|
12
12
|
defu,
|
|
13
13
|
interopDefault
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A6BNKVXQ.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-R6XLKF5J.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS_EXTENSION,
|
|
8
8
|
OFF,
|
|
9
9
|
createConfigBuilder,
|
|
10
10
|
defu
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/eslint-plugin.ts
|
|
14
14
|
var eslintPluginUnConfig = (context) => {
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
omit,
|
|
18
18
|
pluginsLoaders,
|
|
19
19
|
resolveOverrides
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
import fs from "fs/promises";
|
|
@@ -282,7 +282,7 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
282
282
|
logger,
|
|
283
283
|
debug
|
|
284
284
|
};
|
|
285
|
-
const jsEslintConfigResult = isJsEnabled && await import("./js-
|
|
285
|
+
const jsEslintConfigResult = isJsEnabled && await import("./js-F54BQ4AF.js").then((m) => m.jsUnConfig(context));
|
|
286
286
|
const vanillaFinalFlatConfigRules = (
|
|
287
287
|
// eslint-disable-next-line ts/no-unnecessary-condition -- TODO report?
|
|
288
288
|
jsEslintConfigResult && jsEslintConfigResult.finalFlatConfigRules || {}
|
|
@@ -293,12 +293,12 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
293
293
|
vueEslintConfigResult,
|
|
294
294
|
svelteEslintConfigResult
|
|
295
295
|
] = await Promise.all([
|
|
296
|
-
isAngularEnabled && import("./angular-
|
|
297
|
-
isAstroEnabled && import("./astro-
|
|
298
|
-
isVueEnabled && import("./vue-
|
|
299
|
-
isSvelteEnabled && import("./svelte-
|
|
296
|
+
isAngularEnabled && import("./angular-PZI3A3TT.js").then((m) => m.angularUnConfig(context)),
|
|
297
|
+
isAstroEnabled && import("./astro-SPEGCL4X.js").then((m) => m.astroUnConfig(context)),
|
|
298
|
+
isVueEnabled && import("./vue-5UGWOT77.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
299
|
+
isSvelteEnabled && import("./svelte-CAT2RYHH.js").then((m) => m.svelteUnConfig(context))
|
|
300
300
|
]);
|
|
301
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
301
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-IH7HITVU.js").then(
|
|
302
302
|
(m) => m.tsUnConfig(context, {
|
|
303
303
|
vanillaFinalFlatConfigRules,
|
|
304
304
|
astroResolvedOptions: astroEslintConfigResult ? astroEslintConfigResult.optionsResolved : null,
|
|
@@ -359,67 +359,67 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
359
359
|
},
|
|
360
360
|
/* Enabled by default or conditionally */
|
|
361
361
|
jsEslintConfigResult,
|
|
362
|
-
isUnicornEnabled && import("./unicorn-
|
|
363
|
-
isImportEnabled && import("./import-
|
|
364
|
-
isNodeEnabled && import("./node-
|
|
365
|
-
isPromiseEnabled && import("./promise-
|
|
366
|
-
isSonarEnabled && import("./sonar-
|
|
367
|
-
isTailwindEnabled && import("./tailwind-
|
|
368
|
-
isRegexpEnabled && import("./regexp-
|
|
369
|
-
isEslintCommentsEnabled && import("./eslint-comments-
|
|
370
|
-
isCssInJsEnabled && import("./css-in-js-
|
|
371
|
-
isJestEnabled && import("./jest-
|
|
372
|
-
isVitestEnabled && import("./vitest-
|
|
373
|
-
isJsdocEnabled && import("./jsdoc-
|
|
374
|
-
isQwikEnabled && import("./qwik-
|
|
375
|
-
isCssEnabled && import("./css-
|
|
376
|
-
isUnusedImportsEnabled && import("./unused-imports-
|
|
377
|
-
isReactEnabled && import("./react-
|
|
362
|
+
isUnicornEnabled && import("./unicorn-WFY6AAUO.js").then((m) => m.unicornUnConfig(context)),
|
|
363
|
+
isImportEnabled && import("./import-SAGZNT6U.js").then((m) => m.importUnConfig(context)),
|
|
364
|
+
isNodeEnabled && import("./node-673CBR44.js").then((m) => m.nodeUnConfig(context)),
|
|
365
|
+
isPromiseEnabled && import("./promise-3MWSL3R2.js").then((m) => m.promiseUnConfig(context)),
|
|
366
|
+
isSonarEnabled && import("./sonar-FMNW6U2M.js").then((m) => m.sonarUnConfig(context)),
|
|
367
|
+
isTailwindEnabled && import("./tailwind-6LMXE44Z.js").then((m) => m.tailwindUnConfig(context)),
|
|
368
|
+
isRegexpEnabled && import("./regexp-NL27XPQR.js").then((m) => m.regexpUnConfig(context)),
|
|
369
|
+
isEslintCommentsEnabled && import("./eslint-comments-PC2VOBAC.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
370
|
+
isCssInJsEnabled && import("./css-in-js-F6V2FJMX.js").then((m) => m.cssInJsUnConfig(context)),
|
|
371
|
+
isJestEnabled && import("./jest-HWHVJQUD.js").then((m) => m.jestUnConfig(context)),
|
|
372
|
+
isVitestEnabled && import("./vitest-ZOAYUEWH.js").then((m) => m.vitestUnConfig(context)),
|
|
373
|
+
isJsdocEnabled && import("./jsdoc-HH6UWCAO.js").then((m) => m.jsdocUnConfig(context)),
|
|
374
|
+
isQwikEnabled && import("./qwik-QF7NLOE3.js").then((m) => m.qwikUnConfig(context)),
|
|
375
|
+
isCssEnabled && import("./css-PBPAF7WU.js").then((m) => m.cssUnConfig(context)),
|
|
376
|
+
isUnusedImportsEnabled && import("./unused-imports-7I576FY2.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
377
|
+
isReactEnabled && import("./react-QRLTTQM2.js").then(
|
|
378
378
|
(m) => m.reactUnConfig(context, {
|
|
379
379
|
tsFilesTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.filesTypeAware : [],
|
|
380
380
|
tsIgnoresTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.ignoresTypeAware : []
|
|
381
381
|
})
|
|
382
382
|
),
|
|
383
|
-
isJsxA11yEnabled && import("./jsx-a11y-
|
|
384
|
-
isPnpmEnabled && import("./pnpm-
|
|
385
|
-
isNextJsEnabled && import("./nextjs-
|
|
386
|
-
isSolidEnabled && import("./solid-
|
|
387
|
-
isJsInlineEnabled && import("./js-inline-
|
|
388
|
-
isHtmlEnabled && import("./html-
|
|
389
|
-
isMathEnabled && import("./math-
|
|
390
|
-
isTanstackQueryEnabled && import("./tanstack-query-
|
|
391
|
-
isAvaEnabled && import("./ava-
|
|
392
|
-
isTestingLibraryEnabled && import("./testing-library-
|
|
393
|
-
isStorybookEnabled && import("./storybook-
|
|
394
|
-
isEmberEnabled && import("./ember-
|
|
395
|
-
isCypressEnabled && import("./cypress-
|
|
396
|
-
isTurboEnabled && import("./turbo-
|
|
397
|
-
isNoUnsanitizedEnabled && import("./no-unsanitized-
|
|
398
|
-
isBetterTailwindEnabled && import("./better-tailwind-
|
|
399
|
-
isMdxEnabled && import("./mdx-
|
|
383
|
+
isJsxA11yEnabled && import("./jsx-a11y-KM73RAFZ.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
384
|
+
isPnpmEnabled && import("./pnpm-XFEA4BGX.js").then((m) => m.pnpmUnConfig(context)),
|
|
385
|
+
isNextJsEnabled && import("./nextjs-5DOQMIMR.js").then((m) => m.nextJsUnConfig(context)),
|
|
386
|
+
isSolidEnabled && import("./solid-IEWXKLHX.js").then((m) => m.solidUnConfig(context)),
|
|
387
|
+
isJsInlineEnabled && import("./js-inline-D4LC5F7K.js").then((m) => m.jsInlineUnConfig(context)),
|
|
388
|
+
isHtmlEnabled && import("./html-Q2JM45UB.js").then((m) => m.htmlUnConfig(context)),
|
|
389
|
+
isMathEnabled && import("./math-RYSG7JEV.js").then((m) => m.mathUnConfig(context)),
|
|
390
|
+
isTanstackQueryEnabled && import("./tanstack-query-ALV2FXOI.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
391
|
+
isAvaEnabled && import("./ava-OGL4ZYIU.js").then((m) => m.avaUnConfig(context)),
|
|
392
|
+
isTestingLibraryEnabled && import("./testing-library-WEUZZEJO.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
393
|
+
isStorybookEnabled && import("./storybook-Y7FBXLKH.js").then((m) => m.storybookUnConfig(context)),
|
|
394
|
+
isEmberEnabled && import("./ember-QVWJPE67.js").then((m) => m.emberUnConfig(context)),
|
|
395
|
+
isCypressEnabled && import("./cypress-GZXOIWLV.js").then((m) => m.cypressUnConfig(context)),
|
|
396
|
+
isTurboEnabled && import("./turbo-MN5RGR4K.js").then((m) => m.turboUnConfig(context)),
|
|
397
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-2KPEJSCX.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
398
|
+
isBetterTailwindEnabled && import("./better-tailwind-B3H7LLD3.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
399
|
+
isMdxEnabled && import("./mdx-V2IURSRP.js").then((m) => m.mdxUnConfig(context)),
|
|
400
400
|
/* Disabled by default */
|
|
401
|
-
isSecurityEnabled && import("./security-
|
|
402
|
-
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-
|
|
401
|
+
isSecurityEnabled && import("./security-2NGVDTYK.js").then((m) => m.securityUnConfig(context)),
|
|
402
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-DY5UA7O6.js").then(
|
|
403
403
|
(m) => m.preferArrowFunctionsUnConfig(context)
|
|
404
404
|
),
|
|
405
|
-
isYamlEnabled && import("./yaml-
|
|
406
|
-
isTomlEnabled && import("./toml-
|
|
407
|
-
isJsoncEnabled && import("./jsonc-
|
|
408
|
-
isPackageJsonEnabled && import("./package-json-
|
|
409
|
-
isPerfectionistEnabled && import("./perfectionist-
|
|
410
|
-
isDeMorganEnabled && import("./de-morgan-
|
|
411
|
-
isJsonSchemaValidatorEnabled && import("./json-schema-validator-
|
|
412
|
-
isCasePoliceEnabled && import("./case-police-
|
|
413
|
-
isNodeDependenciesEnabled && import("./node-dependencies-
|
|
414
|
-
isDependEnabled && import("./depend-
|
|
415
|
-
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-
|
|
416
|
-
isCspellEnabled && import("./cspell-
|
|
417
|
-
isEslintPluginEnabled && import("./eslint-plugin-
|
|
418
|
-
isFileProgressEnabled && import("./file-progress-
|
|
405
|
+
isYamlEnabled && import("./yaml-BIZ6RRWD.js").then((m) => m.yamlUnConfig(context)),
|
|
406
|
+
isTomlEnabled && import("./toml-UCBYLOME.js").then((m) => m.tomlUnConfig(context)),
|
|
407
|
+
isJsoncEnabled && import("./jsonc-TC5NGRVI.js").then((m) => m.jsoncUnConfig(context)),
|
|
408
|
+
isPackageJsonEnabled && import("./package-json-2CA7EEQE.js").then((m) => m.packageJsonUnConfig(context)),
|
|
409
|
+
isPerfectionistEnabled && import("./perfectionist-2LFG57QU.js").then((m) => m.perfectionistUnConfig(context)),
|
|
410
|
+
isDeMorganEnabled && import("./de-morgan-FIQQMXXC.js").then((m) => m.deMorganUnConfig(context)),
|
|
411
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-UFDHXJR6.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
412
|
+
isCasePoliceEnabled && import("./case-police-VBM65QND.js").then((m) => m.casePoliceUnConfig(context)),
|
|
413
|
+
isNodeDependenciesEnabled && import("./node-dependencies-MRETNKW5.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
414
|
+
isDependEnabled && import("./depend-VY7OJIJK.js").then((m) => m.dependUnConfig(context)),
|
|
415
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-76OX5PVR.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
416
|
+
isCspellEnabled && import("./cspell-WUO3ZUYY.js").then((m) => m.cspellUnConfig(context)),
|
|
417
|
+
isEslintPluginEnabled && import("./eslint-plugin-BZ2G7E6F.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
418
|
+
isFileProgressEnabled && import("./file-progress-2TB5JEAY.js").then((m) => m.fileProgressUnConfig(context)),
|
|
419
419
|
/* Other configs */
|
|
420
420
|
tsEslintConfigResult,
|
|
421
421
|
// Must come after all rulesets for vanilla JS
|
|
422
|
-
isEsEnabled && import("./es-
|
|
422
|
+
isEsEnabled && import("./es-3DTZALVI.js").then((m) => m.esUnConfig(context)),
|
|
423
423
|
// Must come after ts
|
|
424
424
|
vueEslintConfigResult,
|
|
425
425
|
// Must come after ts
|
|
@@ -429,12 +429,12 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
429
429
|
// Must come after ts
|
|
430
430
|
svelteEslintConfigResult,
|
|
431
431
|
// Must be after ts
|
|
432
|
-
isGraphqlEnabled && import("./graphql-
|
|
433
|
-
isMarkdownEnabled && import("./markdown-
|
|
432
|
+
isGraphqlEnabled && import("./graphql-J33QTJKH.js").then((m) => m.graphqlUnConfig(context)),
|
|
433
|
+
isMarkdownEnabled && import("./markdown-L3THHMHN.js").then((m) => m.markdownUnConfig(context)),
|
|
434
434
|
// Must be last
|
|
435
435
|
rootConfigBuilder,
|
|
436
|
-
isCliEnabled && import("./cli-
|
|
437
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
436
|
+
isCliEnabled && import("./cli-CLCDYQFQ.js").then((m) => m.cliUnConfig(context)),
|
|
437
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-JNZHKWCE.js").then(
|
|
438
438
|
(m) => m.cloudfrontFunctionsEslintConfig(context)
|
|
439
439
|
),
|
|
440
440
|
...extraConfigs.map((config, configIndex) => ({
|
|
@@ -443,7 +443,7 @@ var eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
443
443
|
name: genFlatConfigEntryName(`extra-config/${config.name || `unnamed${configIndex}`}`)
|
|
444
444
|
})),
|
|
445
445
|
// MUST be last
|
|
446
|
-
isNoStylisticRulesEnabled && import("./no-stylistic-rules-
|
|
446
|
+
isNoStylisticRulesEnabled && import("./no-stylistic-rules-Q6NBOIKA.js").then((m) => m.noStylisticRulesUnConfig(context)),
|
|
447
447
|
disablePrettierIncompatibleRules && interopDefault(import("eslint-config-prettier")).then((eslintConfigPrettier) => ({
|
|
448
448
|
name: genFlatConfigEntryName("eslint-config-prettier"),
|
|
449
449
|
rules: Object.fromEntries(
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConsistentTestItOptions,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R6XLKF5J.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
defu,
|
|
14
14
|
doesPackageExist,
|
|
15
15
|
pluginsLoaders
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
17
17
|
|
|
18
18
|
// src/configs/jest.ts
|
|
19
19
|
var jestUnConfig = async (context) => {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
JSONC_DEFAULT_FILES,
|
|
3
3
|
TOML_DEFAULT_FILES,
|
|
4
4
|
YAML_DEFAULT_FILES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R6XLKF5J.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
createConfigBuilder,
|
|
9
9
|
defu,
|
|
10
10
|
interopDefault
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/json-schema-validator.ts
|
|
14
14
|
var jsonSchemaValidatorUnConfig = async (context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JSONC_DEFAULT_FILES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_JSON,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createConfigBuilder,
|
|
11
11
|
defu,
|
|
12
12
|
interopDefault
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/jsonc.ts
|
|
16
16
|
var jsoncUnConfig = async (context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_MARKDOWN,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
defu,
|
|
11
11
|
interopDefault,
|
|
12
12
|
uniq
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/markdown.ts
|
|
16
16
|
var DEFAULT_FILES = [GLOB_MARKDOWN];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_MDX,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
defu,
|
|
11
11
|
interopDefault,
|
|
12
12
|
pluginsLoaders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/mdx.ts
|
|
16
16
|
var DEFAULT_FILES = [GLOB_MDX];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_FILES_PACKAGE_JSON
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HVHXEX2N.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
createConfigBuilder,
|
|
9
9
|
defu,
|
|
10
10
|
interopDefault
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
12
12
|
|
|
13
13
|
// src/configs/node-dependencies.ts
|
|
14
14
|
var nodeDependenciesUnConfig = async (context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noRestrictedHtmlElementsDefault
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_JS_TS_X,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createConfigBuilder,
|
|
11
11
|
defu,
|
|
12
12
|
doesPackageExist
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/react.ts
|
|
16
16
|
var LATEST_REACT_VERSION = 19;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noRestrictedHtmlElementsDefault
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_SVELTE,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getKeysOfTruthyValues,
|
|
13
13
|
interopDefault,
|
|
14
14
|
pluginsLoaders
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
16
16
|
|
|
17
17
|
// src/configs/svelte.ts
|
|
18
18
|
var LATEST_SVELTE_MAJOR_VERSION = 5;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateDefaultTestFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R6XLKF5J.js";
|
|
5
5
|
import {
|
|
6
6
|
ERROR,
|
|
7
7
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createConfigBuilder,
|
|
11
11
|
defu,
|
|
12
12
|
doesPackageExist
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/testing-library.ts
|
|
16
16
|
var testingLibraryUnConfig = async (context) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TOML_DEFAULT_FILES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
defu,
|
|
9
9
|
interopDefault
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
11
11
|
|
|
12
12
|
// src/configs/toml.ts
|
|
13
13
|
var DEFAULT_FILES_TO_IGNORE = ["Cargo.lock"];
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConsistentTestItOptions,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R6XLKF5J.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createConfigBuilder,
|
|
12
12
|
defu,
|
|
13
13
|
pluginsLoaders
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
15
15
|
|
|
16
16
|
// src/configs/vitest.ts
|
|
17
17
|
var vitestUnConfig = async (context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noRestrictedHtmlElementsDefault
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
GLOB_JS_TS_EXTENSION,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
interopDefault,
|
|
16
16
|
joinPaths,
|
|
17
17
|
pluginsLoaders
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
19
19
|
|
|
20
20
|
// src/configs/vue.ts
|
|
21
21
|
import globals from "globals";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
YAML_DEFAULT_FILES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6XLKF5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR,
|
|
6
6
|
OFF,
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
defu,
|
|
9
9
|
interopDefault
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A6BNKVXQ.js";
|
|
11
11
|
|
|
12
12
|
// src/configs/yaml.ts
|
|
13
13
|
var DEFAULT_FILES_TO_IGNORE = ["yarn.lock", "pnpm-lock.yaml"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-un",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,8 +47,7 @@
|
|
|
47
47
|
"build:code:test": "tsup --silent --out-dir temp",
|
|
48
48
|
"build": "nr typegen && nr build:code",
|
|
49
49
|
"test": "nr typegen && nr knip && nr spellcheck && nr lint && nr build:code:test",
|
|
50
|
-
"lint:public-types": "npx @arethetypeswrong/cli --pack . --profile esm-only"
|
|
51
|
-
"prepublishOnly": "nr test && nr build && nr lint:public-types"
|
|
50
|
+
"lint:public-types": "npx @arethetypeswrong/cli --pack . --profile esm-only"
|
|
52
51
|
},
|
|
53
52
|
"overrides": {
|
|
54
53
|
"eslint-plugin-jest": {
|
package/dist/es-ZQWFEZ5B.js
DELETED