eslint-config-un 1.0.0-alpha.35 → 1.0.0-alpha.36
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/README.md +1 -1
- package/dist/{angular-F9qCcdE6.js → angular-DzhwP92O.js} +1 -1
- package/dist/{astro-DPnrzOVN.js → astro-coGZNASs.js} +2 -2
- package/dist/{ava-CihB8DYD.js → ava-DreLHOLx.js} +3 -4
- package/dist/{better-tailwind-PsrIXgUc.js → better-tailwind-Yw9Fz_cv.js} +1 -1
- package/dist/{case-police-DBT8awLe.js → case-police-CDbI1qs1.js} +1 -1
- package/dist/{cli-CU4wgrRj.js → cli-_yK7iRl-.js} +1 -1
- package/dist/{cloudfront-functions-B2o5fL8_.js → cloudfront-functions-DvOhHtgd.js} +2 -2
- package/dist/{compat-BPnfGT48.js → compat-BtbMyX3f.js} +1 -1
- package/dist/{cspell-pFfV93fu.js → cspell-BpkxOwTq.js} +1 -1
- package/dist/{css-CKMDDy5s.js → css-BOhwpUyF.js} +1 -1
- package/dist/{css-in-js-CyEZ34tK.js → css-in-js-DkC3kse4.js} +1 -1
- package/dist/{cypress-CjP0WKWr.js → cypress-CLlFm0ko.js} +3 -4
- package/dist/{de-morgan-CKBoTMpb.js → de-morgan-BW2U7Ku5.js} +1 -1
- package/dist/{depend-C-v-CYaG.js → depend-CCkNflFY.js} +2 -2
- package/dist/{ember-Bl0U777e.js → ember-AncvdIrz.js} +3 -4
- package/dist/{erasable-syntax-only-Dt4-vhGT.js → erasable-syntax-only-DDAVipmW.js} +1 -1
- package/dist/es-BOe6HbuO.js +4 -0
- package/dist/{es-45sHkVBF.js → es-DiWvAGZU.js} +2 -3
- package/dist/{eslint-DU9unf8c.js → eslint-C09-ESBh.js} +35 -38
- package/dist/{eslint-comments-DMzcVQWQ.js → eslint-comments-Do4NBnd2.js} +1 -1
- package/dist/{eslint-plugin-Bt8UbEtK.js → eslint-plugin-Da16pXvO.js} +2 -2
- package/dist/{file-progress-CEnCo_6b.js → file-progress-BLRSYU3l.js} +1 -1
- package/dist/{graphql-DBBwghIJ.js → graphql-DA8HMTyV.js} +1 -1
- package/dist/{header-NIt1ougJ.js → header-BNiYAljk.js} +1 -1
- package/dist/{headers-CUL17zcJ.js → headers-CusVicoU.js} +1 -1
- package/dist/{html-BbaOxlKS.js → html-Dq7pDxiy.js} +2 -2
- package/dist/{import-CVP6YeuG.js → import-Cus22Qtl.js} +1 -1
- package/dist/{import-zod-CJfSrBUW.js → import-zod-CLw5Xfvt.js} +1 -1
- package/dist/index.d.ts +163 -37
- package/dist/index.js +81 -82
- package/dist/{jest-jtYAD-xv.js → jest-Bwh2ArC-.js} +2 -2
- package/dist/{js--SRE4zHf.js → js-BPesuRlu.js} +1 -1
- package/dist/{js-inline-nyoBn81D.js → js-inline-QqJCyCET.js} +1 -1
- package/dist/{jsdoc-8JoK0OZb.js → jsdoc-nM_sgD2J.js} +5 -2
- package/dist/{json-schema-validator-CQMfYKV3.js → json-schema-validator-Cs1WHsB6.js} +2 -2
- package/dist/{jsonc-CnOutz13.js → jsonc-BTx2EnNQ.js} +2 -2
- package/dist/{jsx-a11y-DKjGy3y7.js → jsx-a11y-BqvZ3ccE.js} +2 -3
- package/dist/{lit-DuYwn3mg.js → lit-D3aAAvLF.js} +2 -2
- package/dist/{markdown-mt53Akfy.js → markdown-2fLLdw1p.js} +2 -2
- package/dist/{markdown-links-CjFkT3bs.js → markdown-links-DvJesRgN.js} +1 -1
- package/dist/{markdown-preferences-Bq_sYKqc.js → markdown-preferences-Dd6CGbOh.js} +2 -6
- package/dist/{math-XU9L2xy1.js → math-BoFUb91Y.js} +1 -1
- package/dist/{mdx-qOS4tys4.js → mdx-CJYad7qz.js} +2 -2
- package/dist/{mocha-YyCysTsc.js → mocha-BWKV8_Cq.js} +3 -4
- package/dist/{nextjs-CKN-3aSa.js → nextjs-C2e--hxE.js} +1 -1
- package/dist/{no-only-tests-Cs5JBHdn.js → no-only-tests-AJXjVOzi.js} +2 -2
- package/dist/{no-stylistic-rules-pxEm51NX.js → no-stylistic-rules-D8BzTWIM.js} +2 -2
- package/dist/{no-unsanitized-5-mvr9t1.js → no-unsanitized-BZuSyi0V.js} +1 -1
- package/dist/{node-CmoUjkf9.js → node-DguED0PI.js} +1 -1
- package/dist/{node-dependencies-D327bBPP.js → node-dependencies-CNDpqNB7.js} +2 -2
- package/dist/{nx-BjZgWizy.js → nx-ljRTXR9W.js} +1 -1
- package/dist/package-json-B3fpV6uj.js +4 -0
- package/dist/{package-json-BwLYvh-p.js → package-json-CijIanli.js} +1 -1
- package/dist/{perfectionist-7D1yVEbI.js → perfectionist-D_1UbAhF.js} +27 -28
- package/dist/{playwright-B63MITGP.js → playwright-Cr9UG4_j.js} +3 -4
- package/dist/{pnpm-B9MeteGw.js → pnpm-mT2qacx0.js} +1 -1
- package/dist/{prefer-arrow-functions-XertZAOp.js → prefer-arrow-functions-Cmr2ptQj.js} +1 -1
- package/dist/{promise-BO3r6jkF.js → promise-D0sojRgq.js} +1 -1
- package/dist/{qunit-DEhBUzcS.js → qunit-CtigC5Pu.js} +3 -4
- package/dist/{qwik-CtWR26TJ.js → qwik-CetgdI_s.js} +1 -1
- package/dist/{react-BOA7brNH.js → react-DqKzxQZS.js} +3 -3
- package/dist/{regexp-C30Zi6a5.js → regexp-D_10T-b1.js} +1 -1
- package/dist/{rxjs-CVysg8U6.js → rxjs-D9jpGH1g.js} +1 -1
- package/dist/{security-BMIEYBMC.js → security-BFP8yIsL.js} +1 -1
- package/dist/{shared-BfrbDA8Y.js → shared-B8FN-ISh.js} +1 -1
- package/dist/{solid-BwMs5eaV.js → solid-DIFF3F5p.js} +1 -1
- package/dist/{sonar-Bm2DxVM2.js → sonar-C6aMVO4J.js} +1 -1
- package/dist/{storybook-yK0-ByMh.js → storybook-CblTQI6e.js} +1 -1
- package/dist/{svelte-CrqiaAkD.js → svelte-vPvfew-m.js} +2 -2
- package/dist/{tailwind-BMDrsHhX.js → tailwind-BluUAa-E.js} +1 -1
- package/dist/{tanstack-query-B97bNKC9.js → tanstack-query-CJkDdy0h.js} +1 -1
- package/dist/{testing-library-CRj7Vgqc.js → testing-library-DG7nUZoF.js} +3 -4
- package/dist/{toml-DCHHfyMy.js → toml-DTVv8SYb.js} +2 -2
- package/dist/{ts-CQr76DmP.js → ts-BrmzTWl5.js} +1 -1
- package/dist/{turbo-BIjLCxmX.js → turbo-DPmUW0Eg.js} +1 -1
- package/dist/{un-ChTZuXYR.js → un-D27-M8OP.js} +1 -1
- package/dist/{unicorn-RPPnNCYD.js → unicorn-BoqaXv0f.js} +1 -1
- package/dist/{unnecessary-abstractions-DLcQd0b1.js → unnecessary-abstractions-Bfrh90NP.js} +1 -1
- package/dist/{unocss-ktKlZ2K1.js → unocss-5lI3L9iD.js} +1 -1
- package/dist/{unused-imports-DEOwHRMo.js → unused-imports-BnCW-ea5.js} +1 -1
- package/dist/{vitest-CM6y5t89.js → vitest-wiVRj0Im.js} +3 -4
- package/dist/{vue-DEiN_gjl.js → vue-LmR3I7MP.js} +2 -2
- package/dist/{web-components-Cw4XPg2i.js → web-components-CXJ_lrfQ.js} +1 -1
- package/dist/{yaml-DsAUnhnh.js → yaml-DH_Ir0tC.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-DYXgGTQ3.js → you-dont-need-lodash-underscore-ASlNGdMX.js} +1 -1
- package/package.json +33 -33
- package/dist/es-CEJeBVF9.js +0 -4
- package/dist/package-json-BDPup-gO.js +0 -4
package/README.md
CHANGED
|
@@ -559,7 +559,7 @@ Alternatively, you can use [`@eslint/config-inspector`](https://npmjs.com/packag
|
|
|
559
559
|
|
|
560
560
|
## Troubleshooting & caveats
|
|
561
561
|
|
|
562
|
-
<!-- eslint-disable-next-line markdown-preferences/heading-casing
|
|
562
|
+
<!-- eslint-disable-next-line markdown-preferences/heading-casing -->
|
|
563
563
|
### TypeError: Key `languageOptions`: Key `globals`: Global `AudioWorkletGlobalScope ` has leading or trailing whitespace.
|
|
564
564
|
|
|
565
565
|
Install `globals` package as a dev dependency.
|
|
@@ -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-C09-ESBh.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-C09-ESBh.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-BqvZ3ccE.js");
|
|
37
37
|
return (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-C09-ESBh.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8FN-ISh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/ava.ts
|
|
5
5
|
const avaUnConfig = (context) => {
|
|
@@ -12,9 +12,8 @@ const avaUnConfig = (context) => {
|
|
|
12
12
|
includeDefaultFilesAndIgnores: true,
|
|
13
13
|
filesFallback: configFilesFallback
|
|
14
14
|
}]).addRule("assertion-arguments", ERROR, enforceAssertionMessage == null ? [] : [{ message: enforceAssertionMessage ? "always" : "never" }]).addRule("hooks-order", ERROR).addRule("max-asserts", enforceMaxAssertions == null ? OFF : ERROR, enforceMaxAssertions == null ? [] : [enforceMaxAssertions]).addRule("no-async-fn-without-await", ERROR).addRule("no-duplicate-modifiers", ERROR).addRule("no-identical-title", ERROR).addRule("no-ignored-test-files", ERROR).addRule("no-import-test-files", ERROR).addRule("no-incorrect-deep-equal", ERROR).addRule("no-inline-assertions", ERROR).addRule("no-nested-tests", ERROR).addRule("no-only-test", ERROR).addRule("no-skip-assert", ERROR).addRule("no-skip-test", ERROR).addRule("no-todo-implementation", ERROR).addRule("no-todo-test", WARNING).addRule("no-unknown-modifiers", ERROR).addRule("prefer-async-await", ERROR).addRule("prefer-power-assert", OFF).addRule("prefer-t-regex", ERROR).addRule("test-title", ERROR).addRule("test-title-format", OFF).addRule("use-t", ERROR).addRule("use-t-throws-async-well", ERROR).addRule("use-t-well", ERROR).addRule("use-test", ERROR).addRule("use-true-false", ERROR).disableBulkRules(RULES_TO_DISABLE_IN_TEST_FILES).addOverrides();
|
|
15
|
-
const configBuilderNoOnlyTests = generateConfigNoOnlyTestsBuilder(context, "ava", configNoOnlyTests, optionsResolved, { filesFallback: configFilesFallback });
|
|
16
15
|
return {
|
|
17
|
-
configs: [configBuilder,
|
|
16
|
+
configs: [configBuilder, generateConfigNoOnlyTestsBuilder(context, "ava", configNoOnlyTests, optionsResolved, { filesFallback: configFilesFallback })],
|
|
18
17
|
optionsResolved
|
|
19
18
|
};
|
|
20
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-C09-ESBh.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-C09-ESBh.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-C09-ESBh.js";
|
|
2
|
+
import { esUnConfig } from "./es-DiWvAGZU.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-C09-ESBh.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-C09-ESBh.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8FN-ISh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/cypress.ts
|
|
5
5
|
const cypressUnConfig = (context) => {
|
|
@@ -12,9 +12,8 @@ const cypressUnConfig = (context) => {
|
|
|
12
12
|
includeDefaultFilesAndIgnores: true,
|
|
13
13
|
filesFallback: configFilesFallback
|
|
14
14
|
}]).addRule("assertion-before-screenshot", WARNING).addRule("no-assigning-return-values", ERROR).addRule("no-async-before", ERROR).addRule("no-async-tests", ERROR).addRule("no-chained-get", WARNING).addRule("no-debug", ERROR).addRule("no-force", WARNING).addRule("no-pause", ERROR).addRule("no-unnecessary-waiting", ERROR).addRule("no-xpath", OFF).addRule("require-data-selectors", OFF).addRule("unsafe-to-chain-command", ERROR).disableBulkRules(RULES_TO_DISABLE_IN_TEST_FILES).addOverrides();
|
|
15
|
-
const configBuilderNoOnlyTests = generateConfigNoOnlyTestsBuilder(context, "cypress", configNoOnlyTests, optionsResolved, { filesFallback: configFilesFallback });
|
|
16
15
|
return {
|
|
17
|
-
configs: [configBuilder,
|
|
16
|
+
configs: [configBuilder, generateConfigNoOnlyTestsBuilder(context, "cypress", configNoOnlyTests, optionsResolved, { filesFallback: configFilesFallback })],
|
|
18
17
|
optionsResolved
|
|
19
18
|
};
|
|
20
19
|
};
|
|
@@ -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-C09-ESBh.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-CijIanli.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-C09-ESBh.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-B8FN-ISh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/ember.ts
|
|
5
5
|
const GLIMMER_TEMPLATES_FILES = ["**/*.{gjs,gts}"];
|
|
@@ -25,12 +25,11 @@ const emberUnConfig = (context) => {
|
|
|
25
25
|
includeDefaultFilesAndIgnores: true,
|
|
26
26
|
filesFallback: configTestsFilesFallback
|
|
27
27
|
}]).addRule("no-current-route-name", ERROR).addRule("no-ember-testing-in-module-scope", ERROR).addRule("no-invalid-test-waiters", ERROR).addRule("no-legacy-test-waiters", ERROR).addRule("no-noop-setup-on-error-in-before", ERROR).addRule("no-pause-test", ERROR).addRule("no-replace-test-comments", WARNING).addRule("no-restricted-resolver-tests", ERROR).addRule("no-settled-after-test-helper", ERROR).addRule("no-test-and-then", ERROR).addRule("no-test-import-export", ERROR).addRule("no-test-module-for", ERROR).addRule("no-test-this-render", ERROR).addRule("prefer-ember-test-helpers", ERROR).addRule("require-valid-css-selector-in-test-helpers", ERROR).disableBulkRules(RULES_TO_DISABLE_IN_TEST_FILES).addOverrides();
|
|
28
|
-
const configBuilderNoOnlyTests = generateConfigNoOnlyTestsBuilder(context, "ember", (typeof configTestFiles === "object" ? configTestFiles.configNoOnlyTests : null) ?? true, configTestFiles, { filesFallback: configTestsFilesFallback });
|
|
29
28
|
return {
|
|
30
29
|
configs: [
|
|
31
30
|
configBuilder,
|
|
32
31
|
configBuilderTests,
|
|
33
|
-
|
|
32
|
+
generateConfigNoOnlyTestsBuilder(context, "ember", (typeof configTestFiles === "object" ? configTestFiles.configNoOnlyTests : null) ?? true, configTestFiles, { filesFallback: configTestsFilesFallback })
|
|
34
33
|
],
|
|
35
34
|
optionsResolved
|
|
36
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-C09-ESBh.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/erasable-syntax-only.ts
|
|
4
4
|
const erasableSyntaxOnlyUnConfig = (context) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, memoize } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, memoize } from "./eslint-C09-ESBh.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
5
|
-
const
|
|
6
|
-
const optionsResolved = assignDefaults(optionsRaw, { ecmaVersion: "latest" });
|
|
5
|
+
const optionsResolved = assignDefaults(customConfig?.options ?? context.rootOptions.configs?.es, { ecmaVersion: "latest" });
|
|
7
6
|
const { settings: pluginSettings, ecmaVersion, ecmaFeatures = {} } = optionsResolved;
|
|
8
7
|
const getEsVersionFeatures = memoize((version) => {
|
|
9
8
|
const overallVersionSupported = ecmaVersion === "latest" || version <= ecmaVersion;
|
|
@@ -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.36";
|
|
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";
|
|
@@ -188,22 +188,22 @@ var overrides = {
|
|
|
188
188
|
"eslint-processor-vue-blocks": { "@vue/compiler-sfc": "$@vue/compiler-sfc" }
|
|
189
189
|
};
|
|
190
190
|
var dependencies = {
|
|
191
|
-
"@antfu/utils": "9.
|
|
191
|
+
"@antfu/utils": "9.3.0",
|
|
192
192
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
193
193
|
"@eslint/compat": "1.4.0",
|
|
194
|
-
"@eslint/css": "0.
|
|
195
|
-
"@eslint/markdown": "7.
|
|
194
|
+
"@eslint/css": "0.12.0",
|
|
195
|
+
"@eslint/markdown": "7.4.0",
|
|
196
196
|
"@html-eslint/eslint-plugin": "0.47.0",
|
|
197
197
|
"@html-eslint/parser": "0.47.0",
|
|
198
198
|
"@stylistic/eslint-plugin": "5.4.0",
|
|
199
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
200
|
-
"@typescript-eslint/parser": "8.
|
|
201
|
-
"ci-info": "4.3.
|
|
199
|
+
"@typescript-eslint/eslint-plugin": "8.46.0",
|
|
200
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
201
|
+
"ci-info": "4.3.1",
|
|
202
202
|
"consola": "3.4.2",
|
|
203
203
|
"debug": "4.4.3",
|
|
204
204
|
"defu": "6.1.4",
|
|
205
205
|
"enhanced-resolve": "5.18.3",
|
|
206
|
-
"es-toolkit": "1.
|
|
206
|
+
"es-toolkit": "1.40.0",
|
|
207
207
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
208
208
|
"eslint-config-prettier": "10.1.8",
|
|
209
209
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
@@ -214,12 +214,12 @@ var dependencies = {
|
|
|
214
214
|
"eslint-plugin-file-progress": "3.0.2",
|
|
215
215
|
"eslint-plugin-html": "8.1.3",
|
|
216
216
|
"eslint-plugin-import-x": "4.16.1",
|
|
217
|
-
"eslint-plugin-jsdoc": "
|
|
217
|
+
"eslint-plugin-jsdoc": "61.0.1",
|
|
218
218
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
219
|
-
"eslint-plugin-jsonc": "2.
|
|
219
|
+
"eslint-plugin-jsonc": "2.21.0",
|
|
220
220
|
"eslint-plugin-jsx-a11y-x": "0.1.1",
|
|
221
|
-
"eslint-plugin-markdown-links": "0.6.
|
|
222
|
-
"eslint-plugin-markdown-preferences": "0.
|
|
221
|
+
"eslint-plugin-markdown-links": "0.6.1",
|
|
222
|
+
"eslint-plugin-markdown-preferences": "0.36.2",
|
|
223
223
|
"eslint-plugin-math": "0.13.0",
|
|
224
224
|
"eslint-plugin-mdx": "3.6.2",
|
|
225
225
|
"eslint-plugin-n": "17.23.1",
|
|
@@ -245,13 +245,13 @@ var dependencies = {
|
|
|
245
245
|
"jsonc-eslint-parser": "2.4.1",
|
|
246
246
|
"klona": "2.0.6",
|
|
247
247
|
"local-pkg": "1.1.2",
|
|
248
|
-
"package-manager-detector": "1.
|
|
248
|
+
"package-manager-detector": "1.4.0",
|
|
249
249
|
"read-package-up": "11.0.0",
|
|
250
|
-
"semver": "7.7.
|
|
250
|
+
"semver": "7.7.3",
|
|
251
251
|
"tailwind-csstree": "0.1.4",
|
|
252
252
|
"tinyexec": "1.0.1",
|
|
253
253
|
"type-fest": "5.0.1",
|
|
254
|
-
"typescript-eslint": "8.
|
|
254
|
+
"typescript-eslint": "8.46.0"
|
|
255
255
|
};
|
|
256
256
|
var devDependencies = {
|
|
257
257
|
"@angular-eslint/eslint-plugin": "20.3.0",
|
|
@@ -267,9 +267,9 @@ var devDependencies = {
|
|
|
267
267
|
"@jest/environment": "30.2.0",
|
|
268
268
|
"@jest/expect": "30.2.0",
|
|
269
269
|
"@next/eslint-plugin-next": "15.5.4",
|
|
270
|
-
"@nx/eslint-plugin": "21.6.
|
|
270
|
+
"@nx/eslint-plugin": "21.6.4",
|
|
271
271
|
"@smarttools/eslint-plugin-rxjs": "1.0.22",
|
|
272
|
-
"@sveltejs/kit": "2.
|
|
272
|
+
"@sveltejs/kit": "2.46.4",
|
|
273
273
|
"@tanstack/eslint-plugin-query": "5.91.0",
|
|
274
274
|
"@types/debug": "4.1.12",
|
|
275
275
|
"@types/eslint-plugin-security": "3.0.0",
|
|
@@ -279,7 +279,7 @@ var devDependencies = {
|
|
|
279
279
|
"@types/semver": "7.7.1",
|
|
280
280
|
"@typescript/native-preview": "7.0.0-dev.20250825.1",
|
|
281
281
|
"@unocss/eslint-plugin": "66.5.2",
|
|
282
|
-
"@vitest/eslint-plugin": "1.3.
|
|
282
|
+
"@vitest/eslint-plugin": "1.3.16",
|
|
283
283
|
"angular-eslint-plugin-template15": "npm:@angular-eslint/eslint-plugin-template@15.2.1",
|
|
284
284
|
"angular-eslint-plugin-template17": "npm:@angular-eslint/eslint-plugin-template@17.5.3",
|
|
285
285
|
"angular-eslint-plugin18": "npm:@angular-eslint/eslint-plugin@18.4.3",
|
|
@@ -288,7 +288,7 @@ var devDependencies = {
|
|
|
288
288
|
"destr": "2.0.5",
|
|
289
289
|
"diff": "8.0.2",
|
|
290
290
|
"ember-eslint-parser": "0.5.11",
|
|
291
|
-
"eslint": "9.
|
|
291
|
+
"eslint": "9.37.0",
|
|
292
292
|
"eslint-plugin-astro": "1.3.1",
|
|
293
293
|
"eslint-plugin-ava": "15.1.0",
|
|
294
294
|
"eslint-plugin-better-tailwindcss": "3.7.9",
|
|
@@ -308,21 +308,21 @@ var devDependencies = {
|
|
|
308
308
|
"eslint-plugin-lit": "2.1.1",
|
|
309
309
|
"eslint-plugin-lit-a11y": "5.1.1",
|
|
310
310
|
"eslint-plugin-mocha": "11.2.0",
|
|
311
|
-
"eslint-plugin-perfectionist": "4.15.
|
|
311
|
+
"eslint-plugin-perfectionist": "4.15.1",
|
|
312
312
|
"eslint-plugin-pinia": "0.4.1",
|
|
313
313
|
"eslint-plugin-playwright": "2.2.2",
|
|
314
314
|
"eslint-plugin-prefer-arrow-functions": "3.9.1",
|
|
315
315
|
"eslint-plugin-qunit": "8.2.5",
|
|
316
|
-
"eslint-plugin-qwik": "1.
|
|
316
|
+
"eslint-plugin-qwik": "1.17.0",
|
|
317
317
|
"eslint-plugin-react": "7.37.5",
|
|
318
|
-
"eslint-plugin-react-hooks": "
|
|
318
|
+
"eslint-plugin-react-hooks": "7.0.0",
|
|
319
319
|
"eslint-plugin-react-refresh": "0.4.23",
|
|
320
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "0.5.
|
|
320
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "0.5.6",
|
|
321
321
|
"eslint-plugin-solid": "0.14.5",
|
|
322
322
|
"eslint-plugin-storybook": "9.1.10",
|
|
323
323
|
"eslint-plugin-svelte": "3.12.4",
|
|
324
324
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
325
|
-
"eslint-plugin-testing-library": "7.
|
|
325
|
+
"eslint-plugin-testing-library": "7.13.1",
|
|
326
326
|
"eslint-plugin-turbo": "2.5.8",
|
|
327
327
|
"eslint-plugin-vue": "10.5.0",
|
|
328
328
|
"eslint-plugin-vue-scoped-css": "2.12.0",
|
|
@@ -333,7 +333,7 @@ var devDependencies = {
|
|
|
333
333
|
"json-schema": "0.4.0",
|
|
334
334
|
"json-schema-to-ts": "3.1.1",
|
|
335
335
|
"json-schema-to-typescript-lite": "15.0.0",
|
|
336
|
-
"knip": "5.64.
|
|
336
|
+
"knip": "5.64.2",
|
|
337
337
|
"npm-check-updates": "19.0.0",
|
|
338
338
|
"prettier": "3.6.2",
|
|
339
339
|
"release-it": "19.0.5",
|
|
@@ -345,7 +345,7 @@ var devDependencies = {
|
|
|
345
345
|
"typescript": "5.9.3",
|
|
346
346
|
"vue-eslint-parser": "10.2.0",
|
|
347
347
|
"yaml-eslint-parser": "1.3.0",
|
|
348
|
-
"zod": "4.1.
|
|
348
|
+
"zod": "4.1.12",
|
|
349
349
|
"zod-package-json": "2.1.0"
|
|
350
350
|
};
|
|
351
351
|
var peerDependencies = {
|
|
@@ -357,11 +357,11 @@ var peerDependencies = {
|
|
|
357
357
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
358
358
|
"@intlify/eslint-plugin-vue-i18n": "^4.1.0",
|
|
359
359
|
"@next/eslint-plugin-next": "^15.5.4",
|
|
360
|
-
"@nx/eslint-plugin": "^21.6.
|
|
360
|
+
"@nx/eslint-plugin": "^21.6.4",
|
|
361
361
|
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
362
362
|
"@tanstack/eslint-plugin-query": "^5.91.0",
|
|
363
363
|
"@unocss/eslint-plugin": "^66.5.2",
|
|
364
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
364
|
+
"@vitest/eslint-plugin": "^1.3.16",
|
|
365
365
|
"@vue/compiler-sfc": "^3.3.0",
|
|
366
366
|
"astro-eslint-parser": "^1.2.2",
|
|
367
367
|
"ember-eslint-parser": "^0.5.11",
|
|
@@ -385,21 +385,21 @@ var peerDependencies = {
|
|
|
385
385
|
"eslint-plugin-lit": "^2.1.1",
|
|
386
386
|
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
387
387
|
"eslint-plugin-mocha": "^11.2.0",
|
|
388
|
-
"eslint-plugin-perfectionist": "^4.15.
|
|
388
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
389
389
|
"eslint-plugin-pinia": "^0.4.1",
|
|
390
390
|
"eslint-plugin-playwright": "^2.2.2",
|
|
391
391
|
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
|
|
392
392
|
"eslint-plugin-qunit": "^8.2.5",
|
|
393
|
-
"eslint-plugin-qwik": "^1.
|
|
393
|
+
"eslint-plugin-qwik": "^1.17.0",
|
|
394
394
|
"eslint-plugin-react": "^7.37.5",
|
|
395
|
-
"eslint-plugin-react-hooks": "^
|
|
395
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
396
396
|
"eslint-plugin-react-refresh": "^0.4.23",
|
|
397
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.
|
|
397
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.6",
|
|
398
398
|
"eslint-plugin-solid": "^0.14.5",
|
|
399
399
|
"eslint-plugin-storybook": "^9.1.10",
|
|
400
400
|
"eslint-plugin-svelte": "^3.12.4",
|
|
401
401
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
402
|
-
"eslint-plugin-testing-library": "^7.
|
|
402
|
+
"eslint-plugin-testing-library": "^7.13.1",
|
|
403
403
|
"eslint-plugin-turbo": "^2.5.8",
|
|
404
404
|
"eslint-plugin-vue": "^10.5.0",
|
|
405
405
|
"eslint-plugin-vue-scoped-css": "^2.12.0",
|
|
@@ -725,12 +725,11 @@ const getRuleNameAndPluginPrefixByFullName = (context, fullRuleName) => {
|
|
|
725
725
|
const pluginPrefixCanonical = getPluginPrefixByFullRuleName(fullRuleName);
|
|
726
726
|
const pluginPrefixResolved = pluginPrefixCanonical && pluginPrefixCanonical in pluginRenames ? pluginRenames[pluginPrefixCanonical] || pluginPrefixCanonical : pluginPrefixCanonical;
|
|
727
727
|
const ruleNameUnprefixed = pluginPrefixCanonical ? fullRuleName.slice(pluginPrefixCanonical.length + 1) : fullRuleName;
|
|
728
|
-
const fullRuleNameWithResolvedPrefix = pluginPrefixCanonical && pluginPrefixResolved ? `${pluginPrefixResolved}/${ruleNameUnprefixed}` : fullRuleName;
|
|
729
728
|
return {
|
|
730
729
|
pluginPrefixCanonical,
|
|
731
730
|
pluginPrefixResolved,
|
|
732
731
|
ruleNameUnprefixed,
|
|
733
|
-
fullRuleNameWithResolvedPrefix
|
|
732
|
+
fullRuleNameWithResolvedPrefix: pluginPrefixCanonical && pluginPrefixResolved ? `${pluginPrefixResolved}/${ruleNameUnprefixed}` : fullRuleName
|
|
734
733
|
};
|
|
735
734
|
};
|
|
736
735
|
const resolveOverrides = (context, overrides$1, existingRules) => {
|
|
@@ -739,9 +738,7 @@ const resolveOverrides = (context, overrides$1, existingRules) => {
|
|
|
739
738
|
let ruleName = fullRuleNameWithResolvedPrefix;
|
|
740
739
|
const existingRuleRecord = existingRules?.[ruleName];
|
|
741
740
|
const rawSeverityInitial = Array.isArray(existingRuleRecord) ? existingRuleRecord[0] : existingRuleRecord;
|
|
742
|
-
const
|
|
743
|
-
const options = Array.isArray(existingRuleRecord) ? existingRuleRecord.slice(1) : void 0;
|
|
744
|
-
const ruleEntryRaw = maybeCall(ruleOptions, severityInitial, options);
|
|
741
|
+
const ruleEntryRaw = maybeCall(ruleOptions, typeof rawSeverityInitial === "string" ? STRING_SEVERITY_TO_NUMERIC[rawSeverityInitial] : rawSeverityInitial ?? 0, Array.isArray(existingRuleRecord) ? existingRuleRecord.slice(1) : void 0);
|
|
745
742
|
const result = [];
|
|
746
743
|
let ruleEntry = ruleEntryRaw;
|
|
747
744
|
let disableAutofix = false;
|
|
@@ -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-C09-ESBh.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-B8FN-ISh.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-C09-ESBh.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-
|
|
2
|
-
import { noRestrictedHtmlElementsDefault } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-C09-ESBh.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-B8FN-ISh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/html.ts
|
|
5
5
|
const htmlUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_MARKDOWN_ALL_CODE_BLOCKS, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_MARKDOWN_ALL_CODE_BLOCKS, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-C09-ESBh.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|