eslint-config-un 1.0.0-alpha.21 → 1.0.0-alpha.22
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-DLww0Y26.js → angular-CmoIOJRD.js} +1 -1
- package/dist/{astro-D8AZOhD0.js → astro-CuNm4OfI.js} +2 -2
- package/dist/{ava-BYX2fcQY.js → ava-V0vD3xTG.js} +2 -2
- package/dist/{better-tailwind-LB2ljC-O.js → better-tailwind-DQzvJ_if.js} +1 -1
- package/dist/{case-police-D13FaTSd.js → case-police-BwtXpUvO.js} +1 -1
- package/dist/{cli-CcfEmvXz.js → cli-dcAxPCtR.js} +1 -1
- package/dist/{cloudfront-functions-cQwLXILe.js → cloudfront-functions-C0--Tsqu.js} +2 -2
- package/dist/{compat-C20wxEDx.js → compat-CPIH8JWU.js} +1 -1
- package/dist/{cspell-k2hge3_L.js → cspell-B4iiI4n_.js} +1 -1
- package/dist/{css-DnjE8VYB.js → css-Ceg2aPBU.js} +1 -1
- package/dist/{css-in-js-2f-NPkCZ.js → css-in-js-B-X9SCIA.js} +1 -1
- package/dist/{cypress-dTklacpF.js → cypress-BJSj70WU.js} +2 -2
- package/dist/{de-morgan-CkTTseh9.js → de-morgan-BJcn6Mna.js} +1 -1
- package/dist/{depend-DF_bzszc.js → depend-DSSJbW62.js} +2 -2
- package/dist/{ember-D-f7y64Z.js → ember-CTicNCnf.js} +2 -2
- package/dist/{erasable-syntax-only-DO7IYLUE.js → erasable-syntax-only-BIyVekTX.js} +1 -1
- package/dist/{es-D5FpQ6s2.js → es-SMonkFZu.js} +1 -1
- package/dist/es-ZhpvdJjc.js +4 -0
- package/dist/{eslint-EtXkypa0.js → eslint-CBved7El.js} +2 -7
- package/dist/{eslint-comments-B2NDQ6Kh.js → eslint-comments-BtCNPDHE.js} +1 -1
- package/dist/{eslint-plugin-BFVOS_CU.js → eslint-plugin-NFD1fnb_.js} +2 -2
- package/dist/{file-progress-DKuRv3KA.js → file-progress-NLWkOlJA.js} +1 -1
- package/dist/{graphql-CLSJvIBB.js → graphql-riuSEarF.js} +1 -1
- package/dist/{header-vBG1QPuB.js → header-Dr1OoDBP.js} +1 -1
- package/dist/{headers-_T6ZZ792.js → headers-C_5uVkE8.js} +1 -1
- package/dist/{html-DvowoBtt.js → html-DVyieQvm.js} +1 -1
- package/dist/{import-BNB3_kr8.js → import-_UHDDAPs.js} +1 -1
- package/dist/index.js +72 -72
- package/dist/{jest-DXuBRg2K.js → jest-BWmaFUF0.js} +2 -2
- package/dist/{js-n4mP1pir.js → js-B7Bx61Yn.js} +1 -1
- package/dist/{js-inline-DHgBTs8h.js → js-inline-ReanlBIW.js} +1 -1
- package/dist/{jsdoc-BC7BXZYT.js → jsdoc-BuxA7doV.js} +1 -1
- package/dist/{json-schema-validator-BxmD6Vz6.js → json-schema-validator-BGuyIeOS.js} +2 -2
- package/dist/{jsonc-D6R1JIdW.js → jsonc-D9osjlpF.js} +2 -2
- package/dist/{jsx-a11y-Bh20kYfb.js → jsx-a11y-CL2e_lbF.js} +1 -1
- package/dist/{lit-CUt2rqE7.js → lit-3K43yugu.js} +2 -2
- package/dist/{markdown-CGmZKpwf.js → markdown-C_mQ9AIB.js} +2 -2
- package/dist/{math-CJAXFvhL.js → math-Ds52fmcH.js} +1 -1
- package/dist/{mdx-DId9JwCi.js → mdx-CgB4oW32.js} +2 -2
- package/dist/{mocha-B8H-483k.js → mocha-DyLcDL0N.js} +2 -2
- package/dist/{nextjs-B-EHoXRb.js → nextjs-NFbq9Cyx.js} +1 -1
- package/dist/{no-only-tests-DbqqmDPO.js → no-only-tests-CV3Xtsrm.js} +2 -2
- package/dist/{no-stylistic-rules-C99vLoel.js → no-stylistic-rules-CB10DO7k.js} +1 -1
- package/dist/{no-unsanitized-BFbI_1Hg.js → no-unsanitized-niNYY_LP.js} +1 -1
- package/dist/{node-m7t6KkNy.js → node-Bazo9WJv.js} +1 -1
- package/dist/{node-dependencies-BbirEtUQ.js → node-dependencies-C5BbOATl.js} +2 -2
- package/dist/{package-json-DgJi0RBN.js → package-json-Bfo9dUgQ.js} +1 -1
- package/dist/package-json-DrrPY2G7.js +4 -0
- package/dist/{perfectionist-Dj33PTfD.js → perfectionist-BAFgCc5I.js} +1 -1
- package/dist/{playwright--uPmQewp.js → playwright-BpeIxRvM.js} +2 -2
- package/dist/{pnpm-CTgl-IZK.js → pnpm-p5MOYB6s.js} +1 -1
- package/dist/{prefer-arrow-functions-CTTOlwMn.js → prefer-arrow-functions-BVmQ5RQr.js} +1 -1
- package/dist/{promise-CzfqFGAu.js → promise-CDxPF4ZD.js} +1 -1
- package/dist/{qunit-DABfK18H.js → qunit-DzibTQ-f.js} +2 -2
- package/dist/{qwik-CPtk4AmI.js → qwik-DRfbtPOj.js} +1 -1
- package/dist/{react-BtoK89g2.js → react-DaclWJ5V.js} +2 -2
- package/dist/{regexp-wD1bWyBG.js → regexp-ScOnbxnf.js} +1 -1
- package/dist/{security-D5_Gp8kh.js → security-D5S4Gpbz.js} +1 -1
- package/dist/{shared-CH_yLc7K.js → shared-B8Jd_wuk.js} +1 -1
- package/dist/{solid-B1O3gGSb.js → solid-Cx7sKD0y.js} +1 -1
- package/dist/{sonar-DSLDNNZ0.js → sonar-Dh0e4hmI.js} +1 -1
- package/dist/{storybook-BjLNx6eG.js → storybook-Cgw6yR5X.js} +1 -1
- package/dist/{svelte-CZM7IxKh.js → svelte-0fdiu8At.js} +2 -2
- package/dist/{tailwind-lrOEqaW1.js → tailwind-B2iv2gB8.js} +1 -1
- package/dist/{tanstack-query-1XofMMVk.js → tanstack-query-C-I1jxQL.js} +1 -1
- package/dist/{testing-library-Cp9_qES-.js → testing-library-XWcM15HP.js} +2 -2
- package/dist/{toml-BE1KCWVS.js → toml-BGNGLeyv.js} +2 -2
- package/dist/{ts-B2ArqOV5.js → ts-Di0FV6KP.js} +1 -1
- package/dist/{turbo-QGclpMqa.js → turbo-K5a9t3bg.js} +1 -1
- package/dist/{unicorn-D8gfj0uM.js → unicorn-BXzB_SaS.js} +1 -1
- package/dist/{unused-imports-BeJkq73w.js → unused-imports-DaHdFWID.js} +1 -1
- package/dist/{vitest-DaczRodo.js → vitest-DWPhH4JL.js} +2 -2
- package/dist/{vue-BI-r9DOJ.js → vue-BXXcKY59.js} +2 -2
- package/dist/{web-components-BOXrki7A.js → web-components-BmF_n_LD.js} +1 -1
- package/dist/{yaml-Bo9gZVkB.js → yaml-CBW6aDXg.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-CdLskd-k.js → you-dont-need-lodash-underscore-JMrRBZBh.js} +1 -1
- package/package.json +1 -3
- package/dist/es-B8Qglwrl.js +0 -4
- package/dist/package-json-DRCBe_2x.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML, GLOB_JS_TS_X, OFF, WARNING, assignDefaults, cloneDeep, createConfigBuilder, fetchPackageInfo, interopDefault, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_HTML, GLOB_JS_TS_X, OFF, WARNING, assignDefaults, cloneDeep, createConfigBuilder, fetchPackageInfo, interopDefault, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/angular.ts
|
|
4
4
|
const SUPPORTED_ANGULAR_VERSIONS = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_ASTRO, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_ASTRO, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/astro.ts
|
|
4
4
|
const DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -32,7 +32,7 @@ const astroUnConfig = async (context) => {
|
|
|
32
32
|
}]).addRule("missing-client-only-directive-value", ERROR).addRule("no-conflict-set-directives", ERROR).addRule("no-deprecated-astro-canonicalurl", ERROR).addRule("no-deprecated-astro-fetchcontent", ERROR).addRule("no-deprecated-astro-resolve", ERROR).addRule("no-deprecated-getentrybyslug", ERROR).addRule("no-exports-from-components", ERROR).addRule("no-unused-define-vars-in-style", ERROR).addRule("valid-compile", ERROR).addRule("no-set-html-directive", ERROR).addRule("no-set-text-directive", OFF).addRule("no-unused-css-selector", WARNING).addRule("prefer-class-list-directive", ERROR).addRule("prefer-object-class-list", ERROR).addRule("prefer-split-class-list", ERROR).addRule("sort-attributes", ERROR).addRule("semi", OFF).addOverrides();
|
|
33
33
|
return {
|
|
34
34
|
configs: [configBuilder, ...configJsxA11y === false ? [] : await (async () => {
|
|
35
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
35
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-CL2e_lbF.js");
|
|
36
36
|
const result = await jsxA11yUnConfig(context, {
|
|
37
37
|
prefix: "astro",
|
|
38
38
|
options: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/ava.ts
|
|
5
5
|
const avaUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/better-tailwind.ts
|
|
4
4
|
const betterTailwindUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_EXTENSION, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_EXTENSION, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/extra/cli.ts
|
|
4
4
|
const DEFAULT_CLI_DIRS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { esUnConfig } from "./es-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { esUnConfig } from "./es-SMonkFZu.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/extra/cloudfront-functions.ts
|
|
5
5
|
const genSyntaxNotAllowedErrorMessage = (syntax, isPlural = false) => `${syntax} ${isPlural ? "are" : "is"} not allowed in CloudFront functions`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_CSS, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_CSS, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/css.ts
|
|
4
4
|
const cssUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/cypress.ts
|
|
5
5
|
const cypressUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
2
|
-
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-
|
|
1
|
+
import { ERROR, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-Bfo9dUgQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/depend.ts
|
|
5
5
|
const dependUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS, GLOB_JS_TS_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS, GLOB_JS_TS_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/ember.ts
|
|
5
5
|
const GLIMMER_TEMPLATES_FILES = ["**/*.{gjs,gts}"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/erasable-syntax-only.ts
|
|
4
4
|
const erasableSyntaxOnlyUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, memoize } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, memoize } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -136,7 +136,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region package.json
|
|
138
138
|
var name = "eslint-config-un";
|
|
139
|
-
var version = "1.0.0-alpha.
|
|
139
|
+
var version = "1.0.0-alpha.22";
|
|
140
140
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
141
141
|
var keywords = ["eslint", "eslint-config"];
|
|
142
142
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -441,12 +441,7 @@ var peerDependenciesMeta = {
|
|
|
441
441
|
"vue-eslint-parser": { "optional": true },
|
|
442
442
|
"yaml-eslint-parser": { "optional": true }
|
|
443
443
|
};
|
|
444
|
-
var bundleDependencies = [
|
|
445
|
-
"eslint-plugin-prettier",
|
|
446
|
-
"angular-eslint-plugin-template17",
|
|
447
|
-
"angular-eslint-plugin18",
|
|
448
|
-
"eslint-plugin-no-type-assertion"
|
|
449
|
-
];
|
|
444
|
+
var bundleDependencies = ["eslint-plugin-prettier", "eslint-plugin-no-type-assertion"];
|
|
450
445
|
var packageManager = "pnpm@10.12.4";
|
|
451
446
|
var engines = { "node": "^20.12 || >=21.7.0" };
|
|
452
447
|
var package_default = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_EXTENSION, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_EXTENSION, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/eslint-plugin.ts
|
|
5
5
|
const eslintPluginUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_ASTRO, GLOB_EMBER_GLIMMER, GLOB_FLOW, GLOB_GRAPHQL, GLOB_JS_TS_X, GLOB_SVELTE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, getKeysOfTruthyValues, pickBy, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_ASTRO, GLOB_EMBER_GLIMMER, GLOB_FLOW, GLOB_GRAPHQL, GLOB_JS_TS_X, GLOB_SVELTE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, getKeysOfTruthyValues, pickBy, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/html.ts
|
|
4
4
|
const htmlUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CHECKED_LODASH_METHODS, ConfigEntryBuilder, DEFAULT_GLOBAL_IGNORES, GLOB_CONFIG_FILES, GLOB_JS_TS_X_EXTENSION, LOADABLE_PLUGIN_PREFIXES_LIST, OPTIONAL_PEER_DEPENDENCIES, PACKAGES_TO_GET_INFO_FOR, PLUGIN_PREFIXES_LIST, arraify, assignDefaults, capitalize, createConfigBuilder, disableAutofixForAllRulesInPlugin, eslintPluginVanillaRules, fetchPackageInfo, genFlatConfigEntryName, interopDefault, isIn, objectEntriesUnsafe, objectKeysUnsafe, omit, parsersLoaders, partition, pluginsLoaders, resolveOverrides } from "./eslint-
|
|
1
|
+
import { CHECKED_LODASH_METHODS, ConfigEntryBuilder, DEFAULT_GLOBAL_IGNORES, GLOB_CONFIG_FILES, GLOB_JS_TS_X_EXTENSION, LOADABLE_PLUGIN_PREFIXES_LIST, OPTIONAL_PEER_DEPENDENCIES, PACKAGES_TO_GET_INFO_FOR, PLUGIN_PREFIXES_LIST, arraify, assignDefaults, capitalize, createConfigBuilder, disableAutofixForAllRulesInPlugin, eslintPluginVanillaRules, fetchPackageInfo, genFlatConfigEntryName, interopDefault, isIn, objectEntriesUnsafe, objectKeysUnsafe, omit, parsersLoaders, partition, pluginsLoaders, resolveOverrides } from "./eslint-CBved7El.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import consola from "consola";
|
|
@@ -279,14 +279,14 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
279
279
|
logger,
|
|
280
280
|
debug
|
|
281
281
|
};
|
|
282
|
-
const jsEslintConfigResult = isJsEnabled && await import("./js-
|
|
282
|
+
const jsEslintConfigResult = isJsEnabled && await import("./js-B7Bx61Yn.js").then((m) => m.jsUnConfig(context));
|
|
283
283
|
const vanillaFinalFlatConfigRules = jsEslintConfigResult && jsEslintConfigResult.finalFlatConfigRules || {};
|
|
284
284
|
const [astroEslintConfigResult, vueEslintConfigResult, svelteEslintConfigResult] = await Promise.all([
|
|
285
|
-
isAstroEnabled && import("./astro-
|
|
286
|
-
isVueEnabled && import("./vue-
|
|
287
|
-
isSvelteEnabled && import("./svelte-
|
|
285
|
+
isAstroEnabled && import("./astro-CuNm4OfI.js").then((m) => m.astroUnConfig(context)),
|
|
286
|
+
isVueEnabled && import("./vue-BXXcKY59.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
287
|
+
isSvelteEnabled && import("./svelte-0fdiu8At.js").then((m) => m.svelteUnConfig(context))
|
|
288
288
|
]);
|
|
289
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
289
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-Di0FV6KP.js").then((m) => m.tsUnConfig(context, {
|
|
290
290
|
vanillaFinalFlatConfigRules,
|
|
291
291
|
astroResolvedOptions: astroEslintConfigResult ? astroEslintConfigResult.optionsResolved : null,
|
|
292
292
|
vueResolvedOptions: vueEslintConfigResult ? vueEslintConfigResult.optionsResolved : null,
|
|
@@ -330,85 +330,85 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
330
330
|
languageOptions: { globals: { ...globals$1.commonjs } }
|
|
331
331
|
},
|
|
332
332
|
jsEslintConfigResult,
|
|
333
|
-
isUnicornEnabled && import("./unicorn-
|
|
334
|
-
isImportEnabled && import("./import-
|
|
335
|
-
isNodeEnabled && import("./node-
|
|
336
|
-
isPromiseEnabled && import("./promise-
|
|
337
|
-
isSonarEnabled && import("./sonar-
|
|
338
|
-
isTailwindEnabled && import("./tailwind-
|
|
339
|
-
isRegexpEnabled && import("./regexp-
|
|
340
|
-
isEslintCommentsEnabled && import("./eslint-comments-
|
|
341
|
-
isCssInJsEnabled && import("./css-in-js-
|
|
342
|
-
isJestEnabled && import("./jest-
|
|
343
|
-
isVitestEnabled && import("./vitest-
|
|
344
|
-
isJsdocEnabled && import("./jsdoc-
|
|
345
|
-
isQwikEnabled && import("./qwik-
|
|
346
|
-
isCssEnabled && import("./css-
|
|
347
|
-
isUnusedImportsEnabled && import("./unused-imports-
|
|
348
|
-
isReactEnabled && import("./react-
|
|
333
|
+
isUnicornEnabled && import("./unicorn-BXzB_SaS.js").then((m) => m.unicornUnConfig(context)),
|
|
334
|
+
isImportEnabled && import("./import-_UHDDAPs.js").then((m) => m.importUnConfig(context)),
|
|
335
|
+
isNodeEnabled && import("./node-Bazo9WJv.js").then((m) => m.nodeUnConfig(context)),
|
|
336
|
+
isPromiseEnabled && import("./promise-CDxPF4ZD.js").then((m) => m.promiseUnConfig(context)),
|
|
337
|
+
isSonarEnabled && import("./sonar-Dh0e4hmI.js").then((m) => m.sonarUnConfig(context)),
|
|
338
|
+
isTailwindEnabled && import("./tailwind-B2iv2gB8.js").then((m) => m.tailwindUnConfig(context)),
|
|
339
|
+
isRegexpEnabled && import("./regexp-ScOnbxnf.js").then((m) => m.regexpUnConfig(context)),
|
|
340
|
+
isEslintCommentsEnabled && import("./eslint-comments-BtCNPDHE.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
341
|
+
isCssInJsEnabled && import("./css-in-js-B-X9SCIA.js").then((m) => m.cssInJsUnConfig(context)),
|
|
342
|
+
isJestEnabled && import("./jest-BWmaFUF0.js").then((m) => m.jestUnConfig(context)),
|
|
343
|
+
isVitestEnabled && import("./vitest-DWPhH4JL.js").then((m) => m.vitestUnConfig(context)),
|
|
344
|
+
isJsdocEnabled && import("./jsdoc-BuxA7doV.js").then((m) => m.jsdocUnConfig(context)),
|
|
345
|
+
isQwikEnabled && import("./qwik-DRfbtPOj.js").then((m) => m.qwikUnConfig(context)),
|
|
346
|
+
isCssEnabled && import("./css-Ceg2aPBU.js").then((m) => m.cssUnConfig(context)),
|
|
347
|
+
isUnusedImportsEnabled && import("./unused-imports-DaHdFWID.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
348
|
+
isReactEnabled && import("./react-DaclWJ5V.js").then((m) => m.reactUnConfig(context, {
|
|
349
349
|
tsFilesTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.filesTypeAware : [],
|
|
350
350
|
tsIgnoresTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.ignoresTypeAware : []
|
|
351
351
|
})),
|
|
352
|
-
isJsxA11yEnabled && import("./jsx-a11y-
|
|
353
|
-
isPnpmEnabled && import("./pnpm-
|
|
354
|
-
isNextJsEnabled && import("./nextjs-
|
|
355
|
-
isSolidEnabled && import("./solid-
|
|
356
|
-
isJsInlineEnabled && import("./js-inline-
|
|
357
|
-
isHtmlEnabled && import("./html-
|
|
358
|
-
isMathEnabled && import("./math-
|
|
359
|
-
isTanstackQueryEnabled && import("./tanstack-query-
|
|
360
|
-
isAvaEnabled && import("./ava-
|
|
361
|
-
isTestingLibraryEnabled && import("./testing-library-
|
|
362
|
-
isStorybookEnabled && import("./storybook-
|
|
363
|
-
isEmberEnabled && import("./ember-
|
|
364
|
-
isCypressEnabled && import("./cypress-
|
|
365
|
-
isTurboEnabled && import("./turbo-
|
|
366
|
-
isNoUnsanitizedEnabled && import("./no-unsanitized-
|
|
367
|
-
isBetterTailwindEnabled && import("./better-tailwind-
|
|
368
|
-
isMdxEnabled && import("./mdx-
|
|
369
|
-
isPlaywrightEnabled && import("./playwright
|
|
370
|
-
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-
|
|
371
|
-
isLitEnabled && import("./lit-
|
|
372
|
-
isMochaEnabled && import("./mocha-
|
|
373
|
-
isQunitEnabled && import("./qunit-
|
|
374
|
-
isSecurityEnabled && import("./security-
|
|
375
|
-
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-
|
|
376
|
-
isYamlEnabled && import("./yaml-
|
|
377
|
-
isTomlEnabled && import("./toml-
|
|
378
|
-
isJsoncEnabled && import("./jsonc-
|
|
379
|
-
isPackageJsonEnabled && import("./package-json-
|
|
380
|
-
isPerfectionistEnabled && import("./perfectionist-
|
|
381
|
-
isDeMorganEnabled && import("./de-morgan-
|
|
382
|
-
isJsonSchemaValidatorEnabled && import("./json-schema-validator-
|
|
383
|
-
isCasePoliceEnabled && import("./case-police-
|
|
384
|
-
isNodeDependenciesEnabled && import("./node-dependencies-
|
|
385
|
-
isDependEnabled && import("./depend-
|
|
386
|
-
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-
|
|
387
|
-
isCspellEnabled && import("./cspell-
|
|
388
|
-
isEslintPluginEnabled && import("./eslint-plugin-
|
|
389
|
-
isFileProgressEnabled && import("./file-progress-
|
|
390
|
-
isNoOnlyTestsEnabled && import("./no-only-tests-
|
|
391
|
-
isCompatEnabled && import("./compat-
|
|
392
|
-
isWebComponentsEnabled && import("./web-components-
|
|
393
|
-
isHeaderEnabled && import("./header-
|
|
394
|
-
isHeadersEnabled && import("./headers-
|
|
352
|
+
isJsxA11yEnabled && import("./jsx-a11y-CL2e_lbF.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
353
|
+
isPnpmEnabled && import("./pnpm-p5MOYB6s.js").then((m) => m.pnpmUnConfig(context)),
|
|
354
|
+
isNextJsEnabled && import("./nextjs-NFbq9Cyx.js").then((m) => m.nextJsUnConfig(context)),
|
|
355
|
+
isSolidEnabled && import("./solid-Cx7sKD0y.js").then((m) => m.solidUnConfig(context)),
|
|
356
|
+
isJsInlineEnabled && import("./js-inline-ReanlBIW.js").then((m) => m.jsInlineUnConfig(context)),
|
|
357
|
+
isHtmlEnabled && import("./html-DVyieQvm.js").then((m) => m.htmlUnConfig(context)),
|
|
358
|
+
isMathEnabled && import("./math-Ds52fmcH.js").then((m) => m.mathUnConfig(context)),
|
|
359
|
+
isTanstackQueryEnabled && import("./tanstack-query-C-I1jxQL.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
360
|
+
isAvaEnabled && import("./ava-V0vD3xTG.js").then((m) => m.avaUnConfig(context)),
|
|
361
|
+
isTestingLibraryEnabled && import("./testing-library-XWcM15HP.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
362
|
+
isStorybookEnabled && import("./storybook-Cgw6yR5X.js").then((m) => m.storybookUnConfig(context)),
|
|
363
|
+
isEmberEnabled && import("./ember-CTicNCnf.js").then((m) => m.emberUnConfig(context)),
|
|
364
|
+
isCypressEnabled && import("./cypress-BJSj70WU.js").then((m) => m.cypressUnConfig(context)),
|
|
365
|
+
isTurboEnabled && import("./turbo-K5a9t3bg.js").then((m) => m.turboUnConfig(context)),
|
|
366
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-niNYY_LP.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
367
|
+
isBetterTailwindEnabled && import("./better-tailwind-DQzvJ_if.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
368
|
+
isMdxEnabled && import("./mdx-CgB4oW32.js").then((m) => m.mdxUnConfig(context)),
|
|
369
|
+
isPlaywrightEnabled && import("./playwright-BpeIxRvM.js").then((m) => m.playwrightUnConfig(context)),
|
|
370
|
+
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-JMrRBZBh.js").then((m) => m.youDontNeedLodashUnderscoreUnConfig(context)),
|
|
371
|
+
isLitEnabled && import("./lit-3K43yugu.js").then((m) => m.litUnConfig(context)),
|
|
372
|
+
isMochaEnabled && import("./mocha-DyLcDL0N.js").then((m) => m.mochaUnConfig(context)),
|
|
373
|
+
isQunitEnabled && import("./qunit-DzibTQ-f.js").then((m) => m.qunitUnConfig(context)),
|
|
374
|
+
isSecurityEnabled && import("./security-D5S4Gpbz.js").then((m) => m.securityUnConfig(context)),
|
|
375
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-BVmQ5RQr.js").then((m) => m.preferArrowFunctionsUnConfig(context)),
|
|
376
|
+
isYamlEnabled && import("./yaml-CBW6aDXg.js").then((m) => m.yamlUnConfig(context)),
|
|
377
|
+
isTomlEnabled && import("./toml-BGNGLeyv.js").then((m) => m.tomlUnConfig(context)),
|
|
378
|
+
isJsoncEnabled && import("./jsonc-D9osjlpF.js").then((m) => m.jsoncUnConfig(context)),
|
|
379
|
+
isPackageJsonEnabled && import("./package-json-DrrPY2G7.js").then((m) => m.packageJsonUnConfig(context)),
|
|
380
|
+
isPerfectionistEnabled && import("./perfectionist-BAFgCc5I.js").then((m) => m.perfectionistUnConfig(context)),
|
|
381
|
+
isDeMorganEnabled && import("./de-morgan-BJcn6Mna.js").then((m) => m.deMorganUnConfig(context)),
|
|
382
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-BGuyIeOS.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
383
|
+
isCasePoliceEnabled && import("./case-police-BwtXpUvO.js").then((m) => m.casePoliceUnConfig(context)),
|
|
384
|
+
isNodeDependenciesEnabled && import("./node-dependencies-C5BbOATl.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
385
|
+
isDependEnabled && import("./depend-DSSJbW62.js").then((m) => m.dependUnConfig(context)),
|
|
386
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-BIyVekTX.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
387
|
+
isCspellEnabled && import("./cspell-B4iiI4n_.js").then((m) => m.cspellUnConfig(context)),
|
|
388
|
+
isEslintPluginEnabled && import("./eslint-plugin-NFD1fnb_.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
389
|
+
isFileProgressEnabled && import("./file-progress-NLWkOlJA.js").then((m) => m.fileProgressUnConfig(context)),
|
|
390
|
+
isNoOnlyTestsEnabled && import("./no-only-tests-CV3Xtsrm.js").then((m) => m.noOnlyTestsUnConfig(context)),
|
|
391
|
+
isCompatEnabled && import("./compat-CPIH8JWU.js").then((m) => m.compatUnConfig(context)),
|
|
392
|
+
isWebComponentsEnabled && import("./web-components-BmF_n_LD.js").then((m) => m.webComponentsUnConfig(context)),
|
|
393
|
+
isHeaderEnabled && import("./header-Dr1OoDBP.js").then((m) => m.headerUnConfig(context)),
|
|
394
|
+
isHeadersEnabled && import("./headers-C_5uVkE8.js").then((m) => m.headerUnConfig(context)),
|
|
395
395
|
tsEslintConfigResult,
|
|
396
|
-
isEsEnabled && import("./es-
|
|
396
|
+
isEsEnabled && import("./es-ZhpvdJjc.js").then((m) => m.esUnConfig(context)),
|
|
397
397
|
vueEslintConfigResult,
|
|
398
398
|
astroEslintConfigResult,
|
|
399
|
-
isAngularEnabled && import("./angular-
|
|
399
|
+
isAngularEnabled && import("./angular-CmoIOJRD.js").then((m) => m.angularUnConfig(context)),
|
|
400
400
|
svelteEslintConfigResult,
|
|
401
|
-
isGraphqlEnabled && import("./graphql-
|
|
402
|
-
isMarkdownEnabled && import("./markdown-
|
|
401
|
+
isGraphqlEnabled && import("./graphql-riuSEarF.js").then((m) => m.graphqlUnConfig(context)),
|
|
402
|
+
isMarkdownEnabled && import("./markdown-C_mQ9AIB.js").then((m) => m.markdownUnConfig(context)),
|
|
403
403
|
rootConfigBuilder,
|
|
404
|
-
isCliEnabled && import("./cli-
|
|
405
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
404
|
+
isCliEnabled && import("./cli-dcAxPCtR.js").then((m) => m.cliUnConfig(context)),
|
|
405
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-C0--Tsqu.js").then((m) => m.cloudfrontFunctionsEslintConfig(context)),
|
|
406
406
|
...extraConfigs.map((config, configIndex) => ({
|
|
407
407
|
...omit(config, ["rules"]),
|
|
408
408
|
...config.rules && { rules: resolveOverrides(context, config.rules) },
|
|
409
409
|
name: genFlatConfigEntryName(`extra-config/${config.name || `unnamed${configIndex}`}`)
|
|
410
410
|
})),
|
|
411
|
-
isNoStylisticRulesEnabled && import("./no-stylistic-rules-
|
|
411
|
+
isNoStylisticRulesEnabled && import("./no-stylistic-rules-CB10DO7k.js").then((m) => m.noStylisticRulesUnConfig(context)),
|
|
412
412
|
disablePrettierIncompatibleRules && interopDefault(import("eslint-config-prettier")).then((eslintConfigPrettier) => ({
|
|
413
413
|
name: genFlatConfigEntryName("eslint-config-prettier"),
|
|
414
414
|
rules: Object.fromEntries(Object.entries(eslintConfigPrettier.rules).filter(([k]) => !RULES_NOT_TO_DISABLE_IN_CONFIG_PRETTIER.has(k)))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, GLOB_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, GLOB_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jest.ts
|
|
5
5
|
const jestUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/js.ts
|
|
4
4
|
const jsUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/js-inline.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/jsdoc.ts
|
|
4
4
|
const jsdocUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
2
|
-
import { JSONC_DEFAULT_FILES, TOML_DEFAULT_FILES, YAML_DEFAULT_FILES } from "./shared-
|
|
1
|
+
import { ERROR, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES, TOML_DEFAULT_FILES, YAML_DEFAULT_FILES } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/json-schema-validator.ts
|
|
5
5
|
const jsonSchemaValidatorUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
2
|
-
import { JSONC_DEFAULT_FILES } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jsonc.ts
|
|
5
5
|
const jsoncUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_ONLY, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, maybeCall } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_ONLY, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, maybeCall } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/jsx-a11y.ts
|
|
4
4
|
const DEFAULT_AMBIGUOUS_WORDS = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/lit.ts
|
|
4
4
|
const litUnConfig = async (context) => {
|
|
@@ -9,7 +9,7 @@ const litUnConfig = async (context) => {
|
|
|
9
9
|
configBuilder?.addConfig(["lit", { includeDefaultFilesAndIgnores: true }], { ...pluginSettings && { settings: { lit: pluginSettings } } }).addRule("attribute-names", ERROR, [{ convention: "kebab" }]).addRule("attribute-value-entities", ERROR).addRule("ban-attributes", OFF).addRule("binding-positions", ERROR).addRule("lifecycle-super", ERROR).addRule("no-classfield-shadowing", ERROR).addRule("no-duplicate-template-bindings", ERROR).addRule("no-invalid-escape-sequences", ERROR).addRule("no-invalid-html", ERROR).addRule("no-legacy-imports", ERROR).addRule("no-legacy-template-syntax", ERROR).addRule("no-native-attributes", ERROR).addRule("no-private-properties", ERROR).addRule("no-property-change-update", ERROR).addRule("no-template-arrow", ERROR).addRule("no-template-bind", ERROR).addRule("no-template-map", OFF).addRule("no-this-assign-in-render", ERROR).addRule("no-useless-template-literals", ERROR).addRule("no-value-attribute", ERROR).addRule("prefer-nothing", ERROR).addRule("prefer-static-styles", ERROR).addRule("quoted-expressions", ERROR, ["never"]).addRule("value-after-constraints", ERROR).addOverrides();
|
|
10
10
|
return {
|
|
11
11
|
configs: [configBuilder, ...configA11y === false ? [] : await (async () => {
|
|
12
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
12
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-CL2e_lbF.js");
|
|
13
13
|
const options = typeof configA11y === "object" ? configA11y : {};
|
|
14
14
|
const result = await jsxA11yUnConfig(context, {
|
|
15
15
|
prefix: "lit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_MARKDOWN, GLOB_MARKDOWN_SUPPORTED_CODE_BLOCKS, OFF, assignDefaults, createConfigBuilder, interopDefault, unique } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_MARKDOWN, GLOB_MARKDOWN_SUPPORTED_CODE_BLOCKS, OFF, assignDefaults, createConfigBuilder, interopDefault, unique } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/markdown.ts
|
|
5
5
|
const DEFAULT_FILES = [GLOB_MARKDOWN];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_MDX, GLOB_MDX_SUPPORTED_CODE_BLOCKS, WARNING, assignDefaults, createConfigBuilder, interopDefault, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_MDX, GLOB_MDX_SUPPORTED_CODE_BLOCKS, WARNING, assignDefaults, createConfigBuilder, interopDefault, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/mdx.ts
|
|
5
5
|
const DEFAULT_FILES = [GLOB_MDX];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/mocha.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/nextjs.ts
|
|
4
4
|
const nextJsUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/no-only-tests.ts
|
|
5
5
|
const noOnlyTestsUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
2
|
import { Range, subset } from "semver";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/node.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
2
|
-
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CBved7El.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-Bfo9dUgQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/node-dependencies.ts
|
|
5
5
|
const nodeDependenciesUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_PACKAGE_JSON, OFF, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_PACKAGE_JSON, OFF, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/package-json.ts
|
|
4
4
|
const DEFAULT_FILES_PACKAGE_JSON = [GLOB_PACKAGE_JSON];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/playwright.ts
|
|
5
5
|
const playwrightUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/prefer-arrow-functions.ts
|
|
4
4
|
const preferArrowFunctionsUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/promise.ts
|
|
4
4
|
const promiseUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/qunit.ts
|
|
5
5
|
const qunitUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/qwik.ts
|
|
4
4
|
const qwikUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X, GLOB_JS_TS_X_ONLY, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-
|
|
2
|
-
import { noRestrictedHtmlElementsDefault } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X, GLOB_JS_TS_X_ONLY, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-CBved7El.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/react.ts
|
|
5
5
|
const LATEST_REACT_VERSION = 19;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/security.ts
|
|
4
4
|
const securityUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_TOML, GLOB_YAML, createConfigBuilder, pick } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_TOML, GLOB_YAML, createConfigBuilder, pick } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/shared.ts
|
|
4
4
|
const generateDefaultTestFiles = (extensions, { includeCypressTests } = {}) => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/sonar.ts
|
|
4
4
|
const sonarUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_EXTENSION, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_EXTENSION, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/storybook.ts
|
|
4
4
|
const storybookUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_SVELTE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, getKeysOfTruthyValues, interopDefault, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { noRestrictedHtmlElementsDefault } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_SVELTE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, getKeysOfTruthyValues, interopDefault, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/svelte.ts
|
|
5
5
|
const LATEST_SVELTE_MAJOR_VERSION = 5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, maybeCall, objectKeysUnsafe } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, maybeCall, objectKeysUnsafe } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/tailwind.ts
|
|
4
4
|
const DEFAULT_PLUGIN_SETTINGS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/testing-library.ts
|
|
5
5
|
const testingLibraryUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { TOML_DEFAULT_FILES } from "./shared-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { TOML_DEFAULT_FILES } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/toml.ts
|
|
5
5
|
const DEFAULT_FILES_TO_IGNORE = ["Cargo.lock"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_MARKDOWN_SUPPORTED_CODE_BLOCKS, GLOB_MDX_SUPPORTED_CODE_BLOCKS, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder, getRuleUnSeverityAndOptionsFromEntry, interopDefault, isIn, maybeCall, omit, unique } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_MARKDOWN_SUPPORTED_CODE_BLOCKS, GLOB_MDX_SUPPORTED_CODE_BLOCKS, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder, getRuleUnSeverityAndOptionsFromEntry, interopDefault, isIn, maybeCall, omit, unique } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/ts.ts
|
|
4
4
|
const DEFAULT_TSCONFIG_TOP_LEVEL_ORDER = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/unicorn.ts
|
|
4
4
|
const unicornUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/vitest.ts
|
|
5
5
|
const vitestUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_EXTENSION, GLOB_VUE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, fetchPackageInfo, getKeysOfTruthyValues, getRuleUnSeverityAndOptionsFromEntry, interopDefault, joinPaths, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { noRestrictedHtmlElementsDefault } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_EXTENSION, GLOB_VUE, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, fetchPackageInfo, getKeysOfTruthyValues, getRuleUnSeverityAndOptionsFromEntry, interopDefault, joinPaths, pluginsLoaders } from "./eslint-CBved7El.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/vue.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/web-components.ts
|
|
4
4
|
const webComponentsUnConfig = (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { YAML_DEFAULT_FILES } from "./shared-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
|
+
import { YAML_DEFAULT_FILES } from "./shared-B8Jd_wuk.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/yaml.ts
|
|
5
5
|
const DEFAULT_FILES_TO_IGNORE = ["yarn.lock", "pnpm-lock.yaml"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder } from "./eslint-CBved7El.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/you-dont-need-lodash-underscore.ts
|
|
4
4
|
const LODASH_METHODS_TO_RULE_NAMES = {
|
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.22",
|
|
4
4
|
"description": "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -435,8 +435,6 @@
|
|
|
435
435
|
},
|
|
436
436
|
"bundleDependencies": [
|
|
437
437
|
"eslint-plugin-prettier",
|
|
438
|
-
"angular-eslint-plugin-template17",
|
|
439
|
-
"angular-eslint-plugin18",
|
|
440
438
|
"eslint-plugin-no-type-assertion"
|
|
441
439
|
],
|
|
442
440
|
"packageManager": "pnpm@10.12.4",
|
package/dist/es-B8Qglwrl.js
DELETED