eslint-config-un 1.0.0-alpha.28 → 1.0.0-alpha.29
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-DxJOWL_O.js → angular-CwFVwhUC.js} +1 -1
- package/dist/{astro-BxKwoMQO.js → astro-s0Ga5hO7.js} +2 -2
- package/dist/{ava-DUFiauMD.js → ava-Gx-DAxrX.js} +2 -2
- package/dist/{better-tailwind-Bykb67uv.js → better-tailwind-CcbusVar.js} +1 -1
- package/dist/{case-police-Dk3WBecA.js → case-police-BEGGSw6Y.js} +1 -1
- package/dist/{cli-DbxIBotP.js → cli-D0P7s-x6.js} +1 -1
- package/dist/{cloudfront-functions-CN2YSjaK.js → cloudfront-functions-ChcPY5-Q.js} +2 -2
- package/dist/{compat-SOOpRIZN.js → compat-DoRC_kBC.js} +1 -1
- package/dist/{cspell-HISo_qFn.js → cspell-D0xSaxDr.js} +1 -1
- package/dist/{css-BZwV3kfF.js → css-BllkeqAo.js} +1 -1
- package/dist/{css-in-js-DjrsVnHr.js → css-in-js-Z3xU2qAL.js} +1 -1
- package/dist/{cypress-AwDFM2-X.js → cypress-pgkSzxUv.js} +2 -2
- package/dist/{de-morgan-BCYcZDmE.js → de-morgan-C8_z8Yt2.js} +1 -1
- package/dist/{depend-B--Gi_Nd.js → depend-Bz7d3WVA.js} +2 -2
- package/dist/{ember-DPBLhHA9.js → ember-Bs6uX_L_.js} +2 -2
- package/dist/{erasable-syntax-only-BqS48QQX.js → erasable-syntax-only-CTV0hVmr.js} +1 -1
- package/dist/es-CyowgD9x.js +4 -0
- package/dist/{es-DXoRbkZc.js → es-D9RtK4CS.js} +1 -1
- package/dist/{eslint-BrgsHvqF.js → eslint-CJ-s1QCM.js} +15 -6
- package/dist/{eslint-comments-DZHdtgj3.js → eslint-comments-DihKtDKJ.js} +1 -1
- package/dist/{eslint-plugin-CRDAL-Tc.js → eslint-plugin-9tb6Uka6.js} +2 -2
- package/dist/{file-progress-Wn_bPSVu.js → file-progress-BLMElWKn.js} +1 -1
- package/dist/{graphql-DOuUFpAW.js → graphql-CzkMcyLt.js} +1 -1
- package/dist/{header-D1ShtrUr.js → header-qL8XiHiu.js} +1 -1
- package/dist/{headers-JfaOAgZ3.js → headers-ebaOlP6A.js} +1 -1
- package/dist/html-BcTtJdtG.js +25 -0
- package/dist/{import-CaavQH4D.js → import-CTiEKDJb.js} +1 -1
- package/dist/{import-zod-BayzEChy.js → import-zod-S4BMHbyx.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -77
- package/dist/{jest-Cpz-XhGU.js → jest-CzDzQG5h.js} +2 -2
- package/dist/{js-DReWczvg.js → js-C46lKAms.js} +6 -2
- package/dist/{js-inline-b1HahNDD.js → js-inline-BzlC7SmZ.js} +1 -2
- package/dist/{jsdoc-B9YbCSHC.js → jsdoc-DObhQW8-.js} +1 -1
- package/dist/{json-schema-validator-B1kRiAeB.js → json-schema-validator-Djk4_f-5.js} +2 -2
- package/dist/{jsonc-gxP3ek8p.js → jsonc-C5Qc4IOp.js} +2 -2
- package/dist/{jsx-a11y-AucdfuoE.js → jsx-a11y-BZVZe9Lm.js} +1 -1
- package/dist/{lit-3XMzrptp.js → lit-Cf2mQCG-.js} +2 -2
- package/dist/{markdown-CNkFjCt1.js → markdown-BAQt8NY7.js} +2 -2
- package/dist/{math-Dc_x0VKK.js → math-B1bqxeEh.js} +1 -1
- package/dist/{mdx-DpXc2eXF.js → mdx-X2Y_mbJW.js} +2 -2
- package/dist/{mocha-C4gi1dL-.js → mocha-BgFeeHLa.js} +2 -2
- package/dist/{nextjs-CTmLLHvo.js → nextjs-DfmEdLs7.js} +1 -1
- package/dist/{no-only-tests-DUe2vFrx.js → no-only-tests-DLIdbuZa.js} +2 -2
- package/dist/{no-stylistic-rules-BdUfDnPK.js → no-stylistic-rules-zFoZRSa4.js} +2 -1
- package/dist/{no-unsanitized-BaX4mKKw.js → no-unsanitized-GLvDdmdK.js} +1 -1
- package/dist/{node-l_CX1o3l.js → node-CFP8Er20.js} +1 -1
- package/dist/{node-dependencies-DOn-37Zj.js → node-dependencies-9wiYNiYd.js} +2 -2
- package/dist/{nx-DMT39DLE.js → nx-_VyVJFPo.js} +1 -1
- package/dist/package-json-D63MZfWj.js +4 -0
- package/dist/{package-json-Cw4dG4rg.js → package-json-DB0MKetp.js} +1 -1
- package/dist/{perfectionist-VzjGbwA_.js → perfectionist-CQqd5gYy.js} +1 -1
- package/dist/{playwright-vl1NeZaI.js → playwright-BhtvLaT0.js} +2 -2
- package/dist/{pnpm-DAtlBVtE.js → pnpm-CwXycU3L.js} +1 -1
- package/dist/{prefer-arrow-functions-DwOrbP48.js → prefer-arrow-functions-BqnFfgzV.js} +1 -1
- package/dist/{promise-Dl0S1qa1.js → promise-npdMSzex.js} +1 -1
- package/dist/{qunit-JJkr-VN_.js → qunit-3QU8vYDM.js} +2 -2
- package/dist/{qwik-DsfmYgOK.js → qwik-CvTBX_qc.js} +1 -1
- package/dist/{react-HUlRfmGa.js → react-B8xZU5_N.js} +2 -2
- package/dist/{regexp-Br55LZmY.js → regexp-CuZP5GDt.js} +1 -1
- package/dist/{rxjs-BXp4ki5_.js → rxjs-NmkzEC_z.js} +1 -1
- package/dist/{security-CPvF24k8.js → security-Cdx402WJ.js} +1 -1
- package/dist/{shared-CmZIxNqM.js → shared-DWHVe_TQ.js} +1 -1
- package/dist/{solid-C0_jTLES.js → solid-u_BHoUu_.js} +1 -1
- package/dist/{sonar-D8vELxeu.js → sonar-LfFVAq9N.js} +1 -1
- package/dist/{storybook-Dnal7dS3.js → storybook-CAbRyPxa.js} +1 -1
- package/dist/{svelte-QUA3CnbZ.js → svelte-DRnbQptH.js} +2 -2
- package/dist/{tailwind-DQGiNuh9.js → tailwind-PHOBk6pw.js} +1 -1
- package/dist/{tanstack-query-BP_ObBUs.js → tanstack-query-BpZFxKKS.js} +1 -1
- package/dist/{testing-library-UYffc8sZ.js → testing-library-DgsAjp5s.js} +2 -2
- package/dist/{toml-DuT49wh6.js → toml-D7tEHZ3J.js} +2 -2
- package/dist/{ts-bMNeZsdw.js → ts-CrLK_ahH.js} +1 -1
- package/dist/{turbo-BcjbS3rG.js → turbo-BBMZNOQv.js} +1 -1
- package/dist/{un-BLEfslRD.js → un-CuqyyXGP.js} +1 -1
- package/dist/{unicorn-Dnu8mKQf.js → unicorn-BGkvuT80.js} +1 -1
- package/dist/{unocss-CJJpt6zu.js → unocss-C1DXZOFj.js} +1 -1
- package/dist/{unused-imports-BSX6hAXK.js → unused-imports-CvhdK8SH.js} +1 -1
- package/dist/{vitest-ZpKzhCQJ.js → vitest-1HWYWNOC.js} +2 -2
- package/dist/{vue-BDZ05mKz.js → vue-Bt5ZDRBb.js} +2 -2
- package/dist/{web-components-CMkn9ir9.js → web-components-bQsMHhMC.js} +1 -1
- package/dist/{yaml-DqTdbcTB.js → yaml-CBEo4-Y_.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-C9AolJ5w.js → you-dont-need-lodash-underscore-CMi9c_pZ.js} +1 -1
- package/package.json +2 -2
- package/dist/es-CvyLBqI1.js +0 -4
- package/dist/html-Bf4sO8IP.js +0 -25
- package/dist/package-json-BmF_yI7E.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/astro.ts
|
|
4
4
|
const DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -33,7 +33,7 @@ const astroUnConfig = async (context) => {
|
|
|
33
33
|
}]).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();
|
|
34
34
|
return {
|
|
35
35
|
configs: [configBuilder, ...configJsxA11y === false ? [] : await (async () => {
|
|
36
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
36
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-BZVZe9Lm.js");
|
|
37
37
|
const result = await jsxA11yUnConfig(context, {
|
|
38
38
|
prefix: "astro",
|
|
39
39
|
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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { esUnConfig } from "./es-D9RtK4CS.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DB0MKetp.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -140,7 +140,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region package.json
|
|
142
142
|
var name = "eslint-config-un";
|
|
143
|
-
var version = "1.0.0-alpha.
|
|
143
|
+
var version = "1.0.0-alpha.29";
|
|
144
144
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
145
145
|
var keywords = ["eslint", "eslint-config"];
|
|
146
146
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -338,7 +338,7 @@ var devDependencies = {
|
|
|
338
338
|
"toml-eslint-parser": "0.10.0",
|
|
339
339
|
"tsdown": "0.13.0",
|
|
340
340
|
"tsx": "4.20.3",
|
|
341
|
-
"typescript": "5.
|
|
341
|
+
"typescript": "5.9.2",
|
|
342
342
|
"vue-eslint-parser": "10.2.0",
|
|
343
343
|
"yaml-eslint-parser": "1.3.0",
|
|
344
344
|
"zod": "4.0.14"
|
|
@@ -543,6 +543,7 @@ const isIn = (key, object) => key in object;
|
|
|
543
543
|
//#region src/plugins.ts
|
|
544
544
|
const OPTIONAL_PEER_DEPENDENCIES = omit(package_default.peerDependencies, ["eslint"]);
|
|
545
545
|
const MODULE_NOT_FOUND_ERROR_CODES = ["ERR_MODULE_NOT_FOUND", "MODULE_NOT_FOUND"];
|
|
546
|
+
const MODULE_NOT_FOUND_ERROR_MESSAGE_REGEXP = /^Cannot find module '([^']+)'/;
|
|
546
547
|
function genModuleLoader(property, packageName, module, ignoreErrors) {
|
|
547
548
|
const loader = async (context, options) => {
|
|
548
549
|
const isPluginOptionalPeerDependency = packageName in OPTIONAL_PEER_DEPENDENCIES;
|
|
@@ -555,10 +556,17 @@ function genModuleLoader(property, packageName, module, ignoreErrors) {
|
|
|
555
556
|
};
|
|
556
557
|
} catch (error) {
|
|
557
558
|
const ignoredErrors = [...arraify(ignoreErrors), ...isPluginOptionalPeerDependency ? MODULE_NOT_FOUND_ERROR_CODES : []];
|
|
558
|
-
if (error && typeof error === "object" && "code" in error && typeof error.code === "string" && ignoredErrors.includes(error.code) && !options?.throwIfNotFound)
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
559
|
+
if (error && typeof error === "object" && "code" in error && typeof error.code === "string" && ignoredErrors.includes(error.code) && !options?.throwIfNotFound) {
|
|
560
|
+
if (MODULE_NOT_FOUND_ERROR_CODES.includes(error.code) && "message" in error && typeof error.message === "string") {
|
|
561
|
+
const missingPackageNameMatch = error.message.match(MODULE_NOT_FOUND_ERROR_MESSAGE_REGEXP);
|
|
562
|
+
const missingPackageName = missingPackageNameMatch?.[1];
|
|
563
|
+
if (missingPackageName && LOADABLE_PARSERS_NAMES.includes(missingPackageName) && !context.usedParsers.has(missingPackageName)) context.usedParsers.set(missingPackageName, []);
|
|
564
|
+
}
|
|
565
|
+
return {
|
|
566
|
+
module: null,
|
|
567
|
+
packageName
|
|
568
|
+
};
|
|
569
|
+
}
|
|
562
570
|
throw error;
|
|
563
571
|
}
|
|
564
572
|
};
|
|
@@ -669,6 +677,7 @@ const parsersLoaders = {
|
|
|
669
677
|
...genModuleLoader("yaml-eslint-parser", "yaml-eslint-parser", () => import("yaml-eslint-parser")),
|
|
670
678
|
...genModuleLoader("vue-eslint-parser", "vue-eslint-parser", () => import("vue-eslint-parser"))
|
|
671
679
|
};
|
|
680
|
+
const LOADABLE_PARSERS_NAMES = objectKeysUnsafe(parsersLoaders);
|
|
672
681
|
|
|
673
682
|
//#endregion
|
|
674
683
|
//#region src/eslint.ts
|
|
@@ -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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CJ-s1QCM.js";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/html.ts
|
|
4
|
+
const htmlUnConfig = async (context) => {
|
|
5
|
+
const eslintParserHtml = await interopDefault(import("@html-eslint/parser"));
|
|
6
|
+
const optionsRaw = context.rootOptions.configs?.html;
|
|
7
|
+
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
8
|
+
const { settings: pluginSettings } = optionsResolved;
|
|
9
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "@html-eslint");
|
|
10
|
+
configBuilder?.addConfig(["html", {
|
|
11
|
+
includeDefaultFilesAndIgnores: true,
|
|
12
|
+
doNotIgnoreHtml: true,
|
|
13
|
+
filesFallback: GLOB_HTML_ALL
|
|
14
|
+
}], {
|
|
15
|
+
languageOptions: { parser: eslintParserHtml },
|
|
16
|
+
...pluginSettings && { settings: { html: pluginSettings } }
|
|
17
|
+
}).addRule("no-duplicate-attrs", ERROR).addRule("no-duplicate-class", ERROR).addRule("no-duplicate-id", ERROR).addRule("no-duplicate-in-head", ERROR).addRule("no-extra-spacing-text", WARNING, [{ skip: ["pre"] }]).addRule("no-inline-styles", OFF).addRule("no-nested-interactive", ERROR).addRule("no-obsolete-tags", ERROR).addRule("no-restricted-attr-values", OFF).addRule("no-restricted-attrs", OFF).addRule("no-script-style-type", ERROR).addRule("no-target-blank", ERROR).addRule("prefer-https", ERROR).addRule("require-attrs", OFF).addRule("require-button-type", ERROR).addRule("require-closing-tags", ERROR).addRule("require-doctype", ERROR).addRule("require-explicit-size", ERROR).addRule("require-li-container", ERROR).addRule("require-meta-charset", ERROR).addRule("use-baseline", WARNING).addRule("no-multiple-h1", ERROR).addRule("require-lang", ERROR).addRule("require-meta-description", OFF).addRule("require-open-graph-protocol", OFF).addRule("require-title", ERROR).addRule("no-abstract-roles", ERROR).addRule("no-accesskey-attrs", ERROR).addRule("no-aria-hidden-body", ERROR).addRule("no-aria-hidden-on-focusable", ERROR).addRule("no-empty-headings", ERROR).addRule("no-heading-inside-button", ERROR).addRule("no-invalid-role", ERROR).addRule("no-non-scalable-viewport", ERROR).addRule("no-positive-tabindex", ERROR).addRule("no-skip-heading-levels", OFF).addRule("require-form-method", OFF).addRule("require-frame-title", ERROR).addRule("require-img-alt", ERROR).addRule("require-input-label", ERROR).addRule("require-meta-viewport", ERROR).addRule("attrs-newline", OFF).addRule("element-newline", OFF).addRule("id-naming-convention", OFF).addRule("indent", OFF).addRule("lowercase", ERROR).addRule("max-element-depth", OFF).addRule("no-extra-spacing-attrs", OFF).addRule("no-multiple-empty-lines", WARNING).addRule("no-trailing-spaces", WARNING).addRule("quotes", ERROR, ["double", { enforceTemplatedAttrValue: true }]).addRule("sort-attrs", OFF).addOverrides();
|
|
18
|
+
return {
|
|
19
|
+
configs: [configBuilder],
|
|
20
|
+
optionsResolved
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { htmlUnConfig };
|
|
@@ -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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -5114,6 +5114,7 @@ declare const ALL_STYLISTIC_RULES: {
|
|
|
5114
5114
|
};
|
|
5115
5115
|
readonly vue: {
|
|
5116
5116
|
readonly 'attribute-hyphenation': true;
|
|
5117
|
+
readonly 'attributes-order': true;
|
|
5117
5118
|
readonly 'block-lang': true;
|
|
5118
5119
|
readonly 'block-order': true;
|
|
5119
5120
|
readonly 'component-name-in-template-casing': true;
|
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-CJ-s1QCM.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import consola from "consola";
|
|
@@ -294,14 +294,14 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
294
294
|
logger,
|
|
295
295
|
debug
|
|
296
296
|
};
|
|
297
|
-
const jsEslintConfigResult = isJsEnabled && await import("./js-
|
|
297
|
+
const jsEslintConfigResult = isJsEnabled && await import("./js-C46lKAms.js").then((m) => m.jsUnConfig(context));
|
|
298
298
|
const vanillaFinalFlatConfigRules = jsEslintConfigResult && jsEslintConfigResult.finalFlatConfigRules || {};
|
|
299
299
|
const [astroEslintConfigResult, vueEslintConfigResult, svelteEslintConfigResult] = await Promise.all([
|
|
300
|
-
isAstroEnabled && import("./astro-
|
|
301
|
-
isVueEnabled && import("./vue-
|
|
302
|
-
isSvelteEnabled && import("./svelte-
|
|
300
|
+
isAstroEnabled && import("./astro-s0Ga5hO7.js").then((m) => m.astroUnConfig(context)),
|
|
301
|
+
isVueEnabled && import("./vue-Bt5ZDRBb.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
302
|
+
isSvelteEnabled && import("./svelte-DRnbQptH.js").then((m) => m.svelteUnConfig(context))
|
|
303
303
|
]);
|
|
304
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
304
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-CrLK_ahH.js").then((m) => m.tsUnConfig(context, {
|
|
305
305
|
vanillaFinalFlatConfigRules,
|
|
306
306
|
astroResolvedOptions: astroEslintConfigResult ? astroEslintConfigResult.optionsResolved : null,
|
|
307
307
|
vueResolvedOptions: vueEslintConfigResult ? vueEslintConfigResult.optionsResolved : null,
|
|
@@ -345,90 +345,90 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
345
345
|
languageOptions: { globals: { ...globals$1.commonjs } }
|
|
346
346
|
},
|
|
347
347
|
jsEslintConfigResult,
|
|
348
|
-
isUnicornEnabled && import("./unicorn-
|
|
349
|
-
isImportEnabled && import("./import-
|
|
350
|
-
isNodeEnabled && import("./node-
|
|
351
|
-
isPromiseEnabled && import("./promise-
|
|
352
|
-
isSonarEnabled && import("./sonar-
|
|
353
|
-
isTailwindEnabled && import("./tailwind-
|
|
354
|
-
isRegexpEnabled && import("./regexp-
|
|
355
|
-
isEslintCommentsEnabled && import("./eslint-comments-
|
|
356
|
-
isCssInJsEnabled && import("./css-in-js-
|
|
357
|
-
isJestEnabled && import("./jest-
|
|
358
|
-
isVitestEnabled && import("./vitest-
|
|
359
|
-
isJsdocEnabled && import("./jsdoc-
|
|
360
|
-
isQwikEnabled && import("./qwik-
|
|
361
|
-
isCssEnabled && import("./css-
|
|
362
|
-
isUnusedImportsEnabled && import("./unused-imports-
|
|
363
|
-
isReactEnabled && import("./react-
|
|
348
|
+
isUnicornEnabled && import("./unicorn-BGkvuT80.js").then((m) => m.unicornUnConfig(context)),
|
|
349
|
+
isImportEnabled && import("./import-CTiEKDJb.js").then((m) => m.importUnConfig(context)),
|
|
350
|
+
isNodeEnabled && import("./node-CFP8Er20.js").then((m) => m.nodeUnConfig(context)),
|
|
351
|
+
isPromiseEnabled && import("./promise-npdMSzex.js").then((m) => m.promiseUnConfig(context)),
|
|
352
|
+
isSonarEnabled && import("./sonar-LfFVAq9N.js").then((m) => m.sonarUnConfig(context)),
|
|
353
|
+
isTailwindEnabled && import("./tailwind-PHOBk6pw.js").then((m) => m.tailwindUnConfig(context)),
|
|
354
|
+
isRegexpEnabled && import("./regexp-CuZP5GDt.js").then((m) => m.regexpUnConfig(context)),
|
|
355
|
+
isEslintCommentsEnabled && import("./eslint-comments-DihKtDKJ.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
356
|
+
isCssInJsEnabled && import("./css-in-js-Z3xU2qAL.js").then((m) => m.cssInJsUnConfig(context)),
|
|
357
|
+
isJestEnabled && import("./jest-CzDzQG5h.js").then((m) => m.jestUnConfig(context)),
|
|
358
|
+
isVitestEnabled && import("./vitest-1HWYWNOC.js").then((m) => m.vitestUnConfig(context)),
|
|
359
|
+
isJsdocEnabled && import("./jsdoc-DObhQW8-.js").then((m) => m.jsdocUnConfig(context)),
|
|
360
|
+
isQwikEnabled && import("./qwik-CvTBX_qc.js").then((m) => m.qwikUnConfig(context)),
|
|
361
|
+
isCssEnabled && import("./css-BllkeqAo.js").then((m) => m.cssUnConfig(context)),
|
|
362
|
+
isUnusedImportsEnabled && import("./unused-imports-CvhdK8SH.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
363
|
+
isReactEnabled && import("./react-B8xZU5_N.js").then((m) => m.reactUnConfig(context, {
|
|
364
364
|
tsFilesTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.filesTypeAware : [],
|
|
365
365
|
tsIgnoresTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.ignoresTypeAware : []
|
|
366
366
|
})),
|
|
367
|
-
isJsxA11yEnabled && import("./jsx-a11y-
|
|
368
|
-
isPnpmEnabled && import("./pnpm-
|
|
369
|
-
isNextJsEnabled && import("./nextjs-
|
|
370
|
-
isSolidEnabled && import("./solid-
|
|
371
|
-
isJsInlineEnabled && import("./js-inline-
|
|
372
|
-
isHtmlEnabled && import("./html-
|
|
373
|
-
isMathEnabled && import("./math-
|
|
374
|
-
isTanstackQueryEnabled && import("./tanstack-query-
|
|
375
|
-
isAvaEnabled && import("./ava-
|
|
376
|
-
isTestingLibraryEnabled && import("./testing-library-
|
|
377
|
-
isStorybookEnabled && import("./storybook-
|
|
378
|
-
isEmberEnabled && import("./ember-
|
|
379
|
-
isCypressEnabled && import("./cypress-
|
|
380
|
-
isTurboEnabled && import("./turbo-
|
|
381
|
-
isNoUnsanitizedEnabled && import("./no-unsanitized-
|
|
382
|
-
isBetterTailwindEnabled && import("./better-tailwind-
|
|
383
|
-
isMdxEnabled && import("./mdx-
|
|
384
|
-
isPlaywrightEnabled && import("./playwright-
|
|
385
|
-
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-
|
|
386
|
-
isLitEnabled && import("./lit-
|
|
387
|
-
isMochaEnabled && import("./mocha-
|
|
388
|
-
isQunitEnabled && import("./qunit-
|
|
389
|
-
isRxjsEnabled && import("./rxjs-
|
|
390
|
-
isNxEnabled && import("./nx-
|
|
391
|
-
isUnEnabled && import("./un-
|
|
392
|
-
isImportZodEnabled && import("./import-zod-
|
|
393
|
-
isUnocssEnabled && import("./unocss-
|
|
394
|
-
isSecurityEnabled && import("./security-
|
|
395
|
-
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-
|
|
396
|
-
isYamlEnabled && import("./yaml-
|
|
397
|
-
isTomlEnabled && import("./toml-
|
|
398
|
-
isJsoncEnabled && import("./jsonc-
|
|
399
|
-
isPackageJsonEnabled && import("./package-json-
|
|
400
|
-
isPerfectionistEnabled && import("./perfectionist-
|
|
401
|
-
isDeMorganEnabled && import("./de-morgan-
|
|
402
|
-
isJsonSchemaValidatorEnabled && import("./json-schema-validator-
|
|
403
|
-
isCasePoliceEnabled && import("./case-police-
|
|
404
|
-
isNodeDependenciesEnabled && import("./node-dependencies-
|
|
405
|
-
isDependEnabled && import("./depend-
|
|
406
|
-
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-
|
|
407
|
-
isCspellEnabled && import("./cspell-
|
|
408
|
-
isEslintPluginEnabled && import("./eslint-plugin-
|
|
409
|
-
isFileProgressEnabled && import("./file-progress-
|
|
410
|
-
isNoOnlyTestsEnabled && import("./no-only-tests-
|
|
411
|
-
isCompatEnabled && import("./compat-
|
|
412
|
-
isWebComponentsEnabled && import("./web-components-
|
|
413
|
-
isHeaderEnabled && import("./header-
|
|
414
|
-
isHeadersEnabled && import("./headers-
|
|
367
|
+
isJsxA11yEnabled && import("./jsx-a11y-BZVZe9Lm.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
368
|
+
isPnpmEnabled && import("./pnpm-CwXycU3L.js").then((m) => m.pnpmUnConfig(context)),
|
|
369
|
+
isNextJsEnabled && import("./nextjs-DfmEdLs7.js").then((m) => m.nextJsUnConfig(context)),
|
|
370
|
+
isSolidEnabled && import("./solid-u_BHoUu_.js").then((m) => m.solidUnConfig(context)),
|
|
371
|
+
isJsInlineEnabled && import("./js-inline-BzlC7SmZ.js").then((m) => m.jsInlineUnConfig(context)),
|
|
372
|
+
isHtmlEnabled && import("./html-BcTtJdtG.js").then((m) => m.htmlUnConfig(context)),
|
|
373
|
+
isMathEnabled && import("./math-B1bqxeEh.js").then((m) => m.mathUnConfig(context)),
|
|
374
|
+
isTanstackQueryEnabled && import("./tanstack-query-BpZFxKKS.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
375
|
+
isAvaEnabled && import("./ava-Gx-DAxrX.js").then((m) => m.avaUnConfig(context)),
|
|
376
|
+
isTestingLibraryEnabled && import("./testing-library-DgsAjp5s.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
377
|
+
isStorybookEnabled && import("./storybook-CAbRyPxa.js").then((m) => m.storybookUnConfig(context)),
|
|
378
|
+
isEmberEnabled && import("./ember-Bs6uX_L_.js").then((m) => m.emberUnConfig(context)),
|
|
379
|
+
isCypressEnabled && import("./cypress-pgkSzxUv.js").then((m) => m.cypressUnConfig(context)),
|
|
380
|
+
isTurboEnabled && import("./turbo-BBMZNOQv.js").then((m) => m.turboUnConfig(context)),
|
|
381
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-GLvDdmdK.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
382
|
+
isBetterTailwindEnabled && import("./better-tailwind-CcbusVar.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
383
|
+
isMdxEnabled && import("./mdx-X2Y_mbJW.js").then((m) => m.mdxUnConfig(context)),
|
|
384
|
+
isPlaywrightEnabled && import("./playwright-BhtvLaT0.js").then((m) => m.playwrightUnConfig(context)),
|
|
385
|
+
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-CMi9c_pZ.js").then((m) => m.youDontNeedLodashUnderscoreUnConfig(context)),
|
|
386
|
+
isLitEnabled && import("./lit-Cf2mQCG-.js").then((m) => m.litUnConfig(context)),
|
|
387
|
+
isMochaEnabled && import("./mocha-BgFeeHLa.js").then((m) => m.mochaUnConfig(context)),
|
|
388
|
+
isQunitEnabled && import("./qunit-3QU8vYDM.js").then((m) => m.qunitUnConfig(context)),
|
|
389
|
+
isRxjsEnabled && import("./rxjs-NmkzEC_z.js").then((m) => m.rxjsUnConfig(context)),
|
|
390
|
+
isNxEnabled && import("./nx-_VyVJFPo.js").then((m) => m.nxUnConfig(context)),
|
|
391
|
+
isUnEnabled && import("./un-CuqyyXGP.js").then((m) => m.unUnConfig(context)),
|
|
392
|
+
isImportZodEnabled && import("./import-zod-S4BMHbyx.js").then((m) => m.importZodUnConfig(context)),
|
|
393
|
+
isUnocssEnabled && import("./unocss-C1DXZOFj.js").then((m) => m.unocssUnConfig(context)),
|
|
394
|
+
isSecurityEnabled && import("./security-Cdx402WJ.js").then((m) => m.securityUnConfig(context)),
|
|
395
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-BqnFfgzV.js").then((m) => m.preferArrowFunctionsUnConfig(context)),
|
|
396
|
+
isYamlEnabled && import("./yaml-CBEo4-Y_.js").then((m) => m.yamlUnConfig(context)),
|
|
397
|
+
isTomlEnabled && import("./toml-D7tEHZ3J.js").then((m) => m.tomlUnConfig(context)),
|
|
398
|
+
isJsoncEnabled && import("./jsonc-C5Qc4IOp.js").then((m) => m.jsoncUnConfig(context)),
|
|
399
|
+
isPackageJsonEnabled && import("./package-json-D63MZfWj.js").then((m) => m.packageJsonUnConfig(context)),
|
|
400
|
+
isPerfectionistEnabled && import("./perfectionist-CQqd5gYy.js").then((m) => m.perfectionistUnConfig(context)),
|
|
401
|
+
isDeMorganEnabled && import("./de-morgan-C8_z8Yt2.js").then((m) => m.deMorganUnConfig(context)),
|
|
402
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-Djk4_f-5.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
403
|
+
isCasePoliceEnabled && import("./case-police-BEGGSw6Y.js").then((m) => m.casePoliceUnConfig(context)),
|
|
404
|
+
isNodeDependenciesEnabled && import("./node-dependencies-9wiYNiYd.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
405
|
+
isDependEnabled && import("./depend-Bz7d3WVA.js").then((m) => m.dependUnConfig(context)),
|
|
406
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-CTV0hVmr.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
407
|
+
isCspellEnabled && import("./cspell-D0xSaxDr.js").then((m) => m.cspellUnConfig(context)),
|
|
408
|
+
isEslintPluginEnabled && import("./eslint-plugin-9tb6Uka6.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
409
|
+
isFileProgressEnabled && import("./file-progress-BLMElWKn.js").then((m) => m.fileProgressUnConfig(context)),
|
|
410
|
+
isNoOnlyTestsEnabled && import("./no-only-tests-DLIdbuZa.js").then((m) => m.noOnlyTestsUnConfig(context)),
|
|
411
|
+
isCompatEnabled && import("./compat-DoRC_kBC.js").then((m) => m.compatUnConfig(context)),
|
|
412
|
+
isWebComponentsEnabled && import("./web-components-bQsMHhMC.js").then((m) => m.webComponentsUnConfig(context)),
|
|
413
|
+
isHeaderEnabled && import("./header-qL8XiHiu.js").then((m) => m.headerUnConfig(context)),
|
|
414
|
+
isHeadersEnabled && import("./headers-ebaOlP6A.js").then((m) => m.headerUnConfig(context)),
|
|
415
415
|
tsEslintConfigResult,
|
|
416
|
-
isEsEnabled && import("./es-
|
|
416
|
+
isEsEnabled && import("./es-CyowgD9x.js").then((m) => m.esUnConfig(context)),
|
|
417
417
|
vueEslintConfigResult,
|
|
418
418
|
astroEslintConfigResult,
|
|
419
|
-
isAngularEnabled && import("./angular-
|
|
419
|
+
isAngularEnabled && import("./angular-CwFVwhUC.js").then((m) => m.angularUnConfig(context)),
|
|
420
420
|
svelteEslintConfigResult,
|
|
421
|
-
isGraphqlEnabled && import("./graphql-
|
|
422
|
-
isMarkdownEnabled && import("./markdown-
|
|
421
|
+
isGraphqlEnabled && import("./graphql-CzkMcyLt.js").then((m) => m.graphqlUnConfig(context)),
|
|
422
|
+
isMarkdownEnabled && import("./markdown-BAQt8NY7.js").then((m) => m.markdownUnConfig(context)),
|
|
423
423
|
rootConfigBuilder,
|
|
424
|
-
isCliEnabled && import("./cli-
|
|
425
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
424
|
+
isCliEnabled && import("./cli-D0P7s-x6.js").then((m) => m.cliUnConfig(context)),
|
|
425
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-ChcPY5-Q.js").then((m) => m.cloudfrontFunctionsEslintConfig(context)),
|
|
426
426
|
...extraConfigs.map((config, configIndex) => ({
|
|
427
427
|
...omit(config, ["rules"]),
|
|
428
428
|
...config.rules && { rules: resolveOverrides(context, config.rules) },
|
|
429
429
|
name: genFlatConfigEntryName(`extra-config/${config.name || `unnamed${configIndex}`}`)
|
|
430
430
|
})),
|
|
431
|
-
isNoStylisticRulesEnabled && import("./no-stylistic-rules-
|
|
431
|
+
isNoStylisticRulesEnabled && import("./no-stylistic-rules-zFoZRSa4.js").then((m) => m.noStylisticRulesUnConfig(context)),
|
|
432
432
|
disablePrettierIncompatibleRules && interopDefault(import("eslint-config-prettier")).then((eslintConfigPrettier) => ({
|
|
433
433
|
name: genFlatConfigEntryName("eslint-config-prettier"),
|
|
434
434
|
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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-DWHVe_TQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jest.ts
|
|
5
5
|
const jestUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_YAML, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_HTML, GLOB_YAML, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/js.ts
|
|
4
4
|
const jsUnConfig = async (context) => {
|
|
@@ -77,7 +77,11 @@ const jsUnConfig = async (context) => {
|
|
|
77
77
|
}]).addOverrides();
|
|
78
78
|
configBuilder?.addConfig("js/@stylistic_spaced-comment", {
|
|
79
79
|
...optionsResolved.files?.length && { files: optionsResolved.files },
|
|
80
|
-
ignores: [
|
|
80
|
+
ignores: [
|
|
81
|
+
GLOB_YAML,
|
|
82
|
+
GLOB_HTML,
|
|
83
|
+
...optionsResolved.ignores || []
|
|
84
|
+
]
|
|
81
85
|
}).addAnyRule("@stylistic", "spaced-comment", ERROR, ["always", { block: { balanced: true } }]);
|
|
82
86
|
return {
|
|
83
87
|
configs: [configBuilder],
|
|
@@ -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-CJ-s1QCM.js";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/js-inline.ts
|
|
@@ -30,7 +30,6 @@ const jsInlineUnConfig = async (context) => {
|
|
|
30
30
|
}], {
|
|
31
31
|
plugins: { html: eslintPluginHtml },
|
|
32
32
|
languageOptions: {
|
|
33
|
-
sourceType: "script",
|
|
34
33
|
globals: { ...globals.browser },
|
|
35
34
|
...languageOptions
|
|
36
35
|
},
|
|
@@ -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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES, TOML_DEFAULT_FILES, YAML_DEFAULT_FILES } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-BZVZe9Lm.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { generateDefaultTestFiles } from "./shared-DWHVe_TQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/no-only-tests.ts
|
|
5
5
|
const noOnlyTestsUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assignDefaults, createConfigBuilder, objectEntriesUnsafe } from "./eslint-
|
|
1
|
+
import { assignDefaults, createConfigBuilder, objectEntriesUnsafe } from "./eslint-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/eslint-rules.gen.ts
|
|
4
4
|
const ALL_RULES_PER_PLUGIN = {
|
|
@@ -4118,6 +4118,7 @@ const ALL_STYLISTIC_RULES = {
|
|
|
4118
4118
|
},
|
|
4119
4119
|
vue: {
|
|
4120
4120
|
"attribute-hyphenation": true,
|
|
4121
|
+
"attributes-order": true,
|
|
4121
4122
|
"block-lang": true,
|
|
4122
4123
|
"block-order": true,
|
|
4123
4124
|
"component-name-in-template-casing": true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DB0MKetp.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_JSON, GLOB_TSX, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_JSON, GLOB_TSX, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/nx.ts
|
|
4
4
|
const nxUnConfig = 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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { TOML_DEFAULT_FILES } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { YAML_DEFAULT_FILES } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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.29",
|
|
4
4
|
"description": "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"toml-eslint-parser": "0.10.0",
|
|
217
217
|
"tsdown": "0.13.0",
|
|
218
218
|
"tsx": "4.20.3",
|
|
219
|
-
"typescript": "5.
|
|
219
|
+
"typescript": "5.9.2",
|
|
220
220
|
"vue-eslint-parser": "10.2.0",
|
|
221
221
|
"yaml-eslint-parser": "1.3.0",
|
|
222
222
|
"zod": "4.0.14"
|
package/dist/es-CvyLBqI1.js
DELETED
package/dist/html-Bf4sO8IP.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-BrgsHvqF.js";
|
|
2
|
-
|
|
3
|
-
//#region src/configs/html.ts
|
|
4
|
-
const htmlUnConfig = async (context) => {
|
|
5
|
-
const eslintParserHtml = await interopDefault(import("@html-eslint/parser"));
|
|
6
|
-
const optionsRaw = context.rootOptions.configs?.html;
|
|
7
|
-
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
8
|
-
const { settings: pluginSettings } = optionsResolved;
|
|
9
|
-
const configBuilder = createConfigBuilder(context, optionsResolved, "@html-eslint");
|
|
10
|
-
configBuilder?.addConfig(["html", {
|
|
11
|
-
includeDefaultFilesAndIgnores: true,
|
|
12
|
-
doNotIgnoreHtml: true,
|
|
13
|
-
filesFallback: GLOB_HTML_ALL
|
|
14
|
-
}], {
|
|
15
|
-
languageOptions: { parser: eslintParserHtml },
|
|
16
|
-
...pluginSettings && { settings: { html: pluginSettings } }
|
|
17
|
-
}).addRule("no-duplicate-attrs", ERROR).addRule("no-duplicate-class", ERROR).addRule("no-duplicate-id", ERROR).addRule("no-duplicate-in-head", ERROR).addRule("no-extra-spacing-text", WARNING, [{ skip: ["pre"] }]).addRule("no-inline-styles", OFF).addRule("no-nested-interactive", ERROR).addRule("no-obsolete-tags", ERROR).addRule("no-restricted-attr-values", OFF).addRule("no-restricted-attrs", OFF).addRule("no-script-style-type", ERROR).addRule("no-target-blank", ERROR).addRule("prefer-https", ERROR).addRule("require-attrs", OFF).addRule("require-button-type", ERROR).addRule("require-closing-tags", ERROR, [{ selfClosing: "always" }]).addRule("require-doctype", ERROR).addRule("require-explicit-size", ERROR).addRule("require-li-container", ERROR).addRule("require-meta-charset", ERROR).addRule("use-baseline", WARNING).addRule("no-multiple-h1", ERROR).addRule("require-lang", ERROR).addRule("require-meta-description", OFF).addRule("require-open-graph-protocol", OFF).addRule("require-title", ERROR).addRule("no-abstract-roles", ERROR).addRule("no-accesskey-attrs", ERROR).addRule("no-aria-hidden-body", ERROR).addRule("no-aria-hidden-on-focusable", ERROR).addRule("no-empty-headings", ERROR).addRule("no-heading-inside-button", ERROR).addRule("no-invalid-role", ERROR).addRule("no-non-scalable-viewport", ERROR).addRule("no-positive-tabindex", ERROR).addRule("no-skip-heading-levels", OFF).addRule("require-form-method", OFF).addRule("require-frame-title", ERROR).addRule("require-img-alt", ERROR).addRule("require-input-label", ERROR).addRule("require-meta-viewport", ERROR).addRule("attrs-newline", OFF).addRule("element-newline", OFF).addRule("id-naming-convention", OFF).addRule("indent", OFF).addRule("lowercase", ERROR).addRule("max-element-depth", OFF).addRule("no-extra-spacing-attrs", OFF).addRule("no-multiple-empty-lines", WARNING).addRule("no-trailing-spaces", WARNING).addRule("quotes", ERROR, ["double", { enforceTemplatedAttrValue: true }]).addRule("sort-attrs", OFF).addOverrides();
|
|
18
|
-
return {
|
|
19
|
-
configs: [configBuilder],
|
|
20
|
-
optionsResolved
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { htmlUnConfig };
|