eslint-config-un 1.0.0-alpha.29 → 1.0.0-alpha.30
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-CwFVwhUC.js → angular-Dnj7ebe9.js} +1 -1
- package/dist/{astro-s0Ga5hO7.js → astro-DxhnhiRZ.js} +2 -2
- package/dist/{ava-Gx-DAxrX.js → ava-C7aqEOH3.js} +2 -2
- package/dist/{better-tailwind-CcbusVar.js → better-tailwind-NthoTpRQ.js} +1 -1
- package/dist/{case-police-BEGGSw6Y.js → case-police-CYVwMedV.js} +1 -1
- package/dist/{cli-D0P7s-x6.js → cli-BmZjLPSn.js} +1 -1
- package/dist/{cloudfront-functions-ChcPY5-Q.js → cloudfront-functions-DSXkcpu2.js} +2 -2
- package/dist/{compat-DoRC_kBC.js → compat-CgpPAzV9.js} +1 -1
- package/dist/{cspell-D0xSaxDr.js → cspell-R6rxRQDN.js} +1 -1
- package/dist/{css-BllkeqAo.js → css-DCf4KABj.js} +1 -1
- package/dist/{css-in-js-Z3xU2qAL.js → css-in-js-IBLt_xBv.js} +1 -1
- package/dist/{cypress-pgkSzxUv.js → cypress-9WpcAPds.js} +2 -2
- package/dist/{de-morgan-C8_z8Yt2.js → de-morgan-DqBiPNc_.js} +1 -1
- package/dist/{depend-Bz7d3WVA.js → depend-Bqi9lvQ0.js} +2 -2
- package/dist/{ember-Bs6uX_L_.js → ember-oOWw4eUQ.js} +2 -2
- package/dist/{erasable-syntax-only-CTV0hVmr.js → erasable-syntax-only-B7JSM2ao.js} +1 -1
- package/dist/{es-D9RtK4CS.js → es-B2tAWFoV.js} +1 -1
- package/dist/es-BxdIOdL7.js +4 -0
- package/dist/{eslint-CJ-s1QCM.js → eslint-Cr9sDTGR.js} +3 -5
- package/dist/{eslint-comments-DihKtDKJ.js → eslint-comments-C5anAQYi.js} +1 -1
- package/dist/{eslint-plugin-9tb6Uka6.js → eslint-plugin-DDDyeNEh.js} +2 -2
- package/dist/{file-progress-BLMElWKn.js → file-progress-DK2VhKWW.js} +1 -1
- package/dist/{graphql-CzkMcyLt.js → graphql-BWtYHDkE.js} +1 -1
- package/dist/{header-qL8XiHiu.js → header-BSycTBso.js} +1 -1
- package/dist/{headers-ebaOlP6A.js → headers-CUid1unj.js} +1 -1
- package/dist/{html-BcTtJdtG.js → html-D9f9Ait0.js} +1 -1
- package/dist/{import-CTiEKDJb.js → import-Di1zFqQk.js} +1 -1
- package/dist/{import-zod-S4BMHbyx.js → import-zod-CvbVoI-g.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +77 -77
- package/dist/{jest-CzDzQG5h.js → jest-CF9ZY4Qx.js} +2 -2
- package/dist/{js-inline-BzlC7SmZ.js → js-inline-B9of7DdZ.js} +1 -1
- package/dist/{js-C46lKAms.js → js-nbs78mHH.js} +1 -1
- package/dist/{jsdoc-DObhQW8-.js → jsdoc-C2hUTuaz.js} +1 -1
- package/dist/{json-schema-validator-Djk4_f-5.js → json-schema-validator-DNMk7_b-.js} +2 -2
- package/dist/{jsonc-C5Qc4IOp.js → jsonc-DgaMIUWk.js} +14 -6
- package/dist/{jsx-a11y-BZVZe9Lm.js → jsx-a11y-yCH9HKGF.js} +1 -1
- package/dist/{lit-Cf2mQCG-.js → lit-BBmednNN.js} +2 -2
- package/dist/{markdown-BAQt8NY7.js → markdown-Deuh3Hkl.js} +2 -2
- package/dist/{math-B1bqxeEh.js → math-gU-bYpSR.js} +1 -1
- package/dist/{mdx-X2Y_mbJW.js → mdx-B6gv5RyX.js} +2 -2
- package/dist/{mocha-BgFeeHLa.js → mocha-CEdZZ1Ej.js} +2 -2
- package/dist/{nextjs-DfmEdLs7.js → nextjs-wT-G_3Dh.js} +1 -1
- package/dist/{no-only-tests-DLIdbuZa.js → no-only-tests-DDOjxN0B.js} +2 -2
- package/dist/{no-stylistic-rules-zFoZRSa4.js → no-stylistic-rules-CbOhcoF4.js} +2 -2
- package/dist/{no-unsanitized-GLvDdmdK.js → no-unsanitized-uQukVcK8.js} +1 -1
- package/dist/{node-CFP8Er20.js → node-B4oUh5lw.js} +1 -1
- package/dist/{node-dependencies-9wiYNiYd.js → node-dependencies-qsv95kJx.js} +2 -2
- package/dist/{nx-_VyVJFPo.js → nx-BmKA92BJ.js} +1 -1
- package/dist/{package-json-DB0MKetp.js → package-json-SAM-8ZUT.js} +1 -1
- package/dist/package-json-zMn6IEof.js +4 -0
- package/dist/{perfectionist-CQqd5gYy.js → perfectionist-iUY5vKZc.js} +1 -1
- package/dist/{playwright-BhtvLaT0.js → playwright-6kHxm6o5.js} +2 -2
- package/dist/{pnpm-CwXycU3L.js → pnpm-DV_8YNN-.js} +1 -1
- package/dist/{prefer-arrow-functions-BqnFfgzV.js → prefer-arrow-functions-CWhOCTfb.js} +1 -1
- package/dist/{promise-npdMSzex.js → promise-Dc3_rPmJ.js} +1 -1
- package/dist/{qunit-3QU8vYDM.js → qunit-BrdUJ-0U.js} +2 -2
- package/dist/{qwik-CvTBX_qc.js → qwik-Uq0GbzWs.js} +1 -1
- package/dist/{react-B8xZU5_N.js → react-BJoxhDJs.js} +2 -2
- package/dist/{regexp-CuZP5GDt.js → regexp-BxFZN45A.js} +1 -1
- package/dist/{rxjs-NmkzEC_z.js → rxjs-BYqq194j.js} +1 -1
- package/dist/{security-Cdx402WJ.js → security-CTGitYoV.js} +1 -1
- package/dist/{shared-DWHVe_TQ.js → shared-BJq_me6w.js} +1 -1
- package/dist/{solid-u_BHoUu_.js → solid-of_RNBXr.js} +1 -1
- package/dist/{sonar-LfFVAq9N.js → sonar-DpoTbUjQ.js} +1 -1
- package/dist/{storybook-CAbRyPxa.js → storybook-BApY_aFq.js} +1 -1
- package/dist/{svelte-DRnbQptH.js → svelte-D8BQH886.js} +2 -2
- package/dist/{tailwind-PHOBk6pw.js → tailwind-CbUnjHZe.js} +1 -1
- package/dist/{tanstack-query-BpZFxKKS.js → tanstack-query-wE2bqsTa.js} +1 -1
- package/dist/{testing-library-DgsAjp5s.js → testing-library-ErveaoBl.js} +2 -2
- package/dist/{toml-D7tEHZ3J.js → toml-D7MXqoUj.js} +2 -2
- package/dist/{ts-CrLK_ahH.js → ts-DRyqhbsb.js} +1 -1
- package/dist/{turbo-BBMZNOQv.js → turbo-CJU8hF6l.js} +1 -1
- package/dist/{un-CuqyyXGP.js → un-DkKt97E-.js} +1 -1
- package/dist/{unicorn-BGkvuT80.js → unicorn-exWgvHO8.js} +1 -1
- package/dist/{unocss-C1DXZOFj.js → unocss-CT-t0w5k.js} +1 -1
- package/dist/{unused-imports-CvhdK8SH.js → unused-imports-6pzXYvJj.js} +1 -1
- package/dist/{vitest-1HWYWNOC.js → vitest-BjgW1yiP.js} +2 -2
- package/dist/{vue-Bt5ZDRBb.js → vue-tH6G-9Ci.js} +2 -2
- package/dist/{web-components-bQsMHhMC.js → web-components-DApyrh-L.js} +1 -1
- package/dist/{yaml-CBEo4-Y_.js → yaml-FRKtwVx7.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-CMi9c_pZ.js → you-dont-need-lodash-underscore-RVT4Z29o.js} +1 -1
- package/package.json +1 -1
- package/dist/es-CyowgD9x.js +0 -4
- package/dist/package-json-D63MZfWj.js +0 -4
package/README.md
CHANGED
|
@@ -163,7 +163,7 @@ type Severity = 0 | 1 | 2 | 'off' | 'warn' | 'error';
|
|
|
163
163
|
- Sub-configs are the same as Configs, but configured within Config options. All Sub-configs use `configXXX` naming convention.
|
|
164
164
|
- After evaluating all the flat configs, eslint-config-un will **load only those plugins that were actually used**, unless `loadPluginsOnDemand` option is set to `false`.
|
|
165
165
|
- `files` is an array of file globs to which this Config will be applied. If you specify an empty array `[]`, the Config **will be disabled**, but not its Sub-configs.
|
|
166
|
-
- `ignores` is exactly the same as ESLint's `ignores`.
|
|
166
|
+
- `ignores` is exactly the same as ESLint's `ignores`. If you specify an empty array `[]`, the default ignore list won't be used.
|
|
167
167
|
- `overrides`/`overridesAny` is similar to ESLint's `rules`, but with a very important advantage: you can provide a function that will be called with the rule severity and options set by eslint-config-un, which allows you to **granularly override the options** or change the severity of each rule.
|
|
168
168
|
- The only difference between `overrides` and `overridesAny` is that `overridesAny` will allow any rule to be overridden (from TypeScript's stand point; technically you can pass any rule to `overrides` too), while `overrides` will only allow those rules which are tied to the config.
|
|
169
169
|
- `overridesAny` will be applied **after** `overrides`.
|
|
@@ -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-Cr9sDTGR.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-Cr9sDTGR.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-yCH9HKGF.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { esUnConfig } from "./es-B2tAWFoV.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-SAM-8ZUT.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.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.30";
|
|
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";
|
|
@@ -776,15 +776,13 @@ var ConfigEntryBuilder = class {
|
|
|
776
776
|
const userFiles = configOptions.files || [];
|
|
777
777
|
const fallbackFiles = internalOptions.filesFallback || [];
|
|
778
778
|
const files$1 = userFiles.length > 0 && internalOptions.includeDefaultFilesAndIgnores ? internalOptions.mergeUserFilesWithFallback ? [...fallbackFiles, ...userFiles] : userFiles : fallbackFiles;
|
|
779
|
-
const
|
|
780
|
-
const fallbackIgnores = internalOptions.ignoresFallback || [];
|
|
781
|
-
const ignores = [
|
|
779
|
+
const ignores = (internalOptions.includeDefaultFilesAndIgnores ? configOptions.ignores : null) || [
|
|
782
780
|
...internalOptions.doNotIgnoreMarkdown ? [] : [GLOB_MARKDOWN],
|
|
783
781
|
...internalOptions.doNotIgnoreMdx ? [] : [GLOB_MDX],
|
|
784
782
|
...internalOptions.doNotIgnoreHtml ? [] : GLOB_HTML_ALL,
|
|
785
783
|
...internalOptions.doNotIgnoreCss ? [] : [GLOB_CSS],
|
|
786
784
|
...internalOptions.ignoreMarkdownCodeBlocks ? [GLOB_MARKDOWN_ALL_CODE_BLOCKS] : [],
|
|
787
|
-
...
|
|
785
|
+
...internalOptions.ignoresFallback || []
|
|
788
786
|
];
|
|
789
787
|
const configFinal = {
|
|
790
788
|
...files$1.length > 0 && { files: files$1 },
|
|
@@ -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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-Cr9sDTGR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/html.ts
|
|
4
4
|
const htmlUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, arraify, assignDefaults, createConfigBuilder, interopDefault, isNonEmptyArray, pluginsLoaders } from "./eslint-Cr9sDTGR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -5018,7 +5018,9 @@ declare const ALL_STYLISTIC_RULES: {
|
|
|
5018
5018
|
readonly 'use-unknown-in-catch-callback-variable': true;
|
|
5019
5019
|
};
|
|
5020
5020
|
readonly turbo: {};
|
|
5021
|
-
readonly un: {
|
|
5021
|
+
readonly un: {
|
|
5022
|
+
readonly 'prefer-early-return': true;
|
|
5023
|
+
};
|
|
5022
5024
|
readonly unicorn: {
|
|
5023
5025
|
readonly 'better-regex': true;
|
|
5024
5026
|
readonly 'catch-error-name': 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-Cr9sDTGR.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-nbs78mHH.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-DxhnhiRZ.js").then((m) => m.astroUnConfig(context)),
|
|
301
|
+
isVueEnabled && import("./vue-tH6G-9Ci.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
302
|
+
isSvelteEnabled && import("./svelte-D8BQH886.js").then((m) => m.svelteUnConfig(context))
|
|
303
303
|
]);
|
|
304
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
304
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-DRyqhbsb.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-exWgvHO8.js").then((m) => m.unicornUnConfig(context)),
|
|
349
|
+
isImportEnabled && import("./import-Di1zFqQk.js").then((m) => m.importUnConfig(context)),
|
|
350
|
+
isNodeEnabled && import("./node-B4oUh5lw.js").then((m) => m.nodeUnConfig(context)),
|
|
351
|
+
isPromiseEnabled && import("./promise-Dc3_rPmJ.js").then((m) => m.promiseUnConfig(context)),
|
|
352
|
+
isSonarEnabled && import("./sonar-DpoTbUjQ.js").then((m) => m.sonarUnConfig(context)),
|
|
353
|
+
isTailwindEnabled && import("./tailwind-CbUnjHZe.js").then((m) => m.tailwindUnConfig(context)),
|
|
354
|
+
isRegexpEnabled && import("./regexp-BxFZN45A.js").then((m) => m.regexpUnConfig(context)),
|
|
355
|
+
isEslintCommentsEnabled && import("./eslint-comments-C5anAQYi.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
356
|
+
isCssInJsEnabled && import("./css-in-js-IBLt_xBv.js").then((m) => m.cssInJsUnConfig(context)),
|
|
357
|
+
isJestEnabled && import("./jest-CF9ZY4Qx.js").then((m) => m.jestUnConfig(context)),
|
|
358
|
+
isVitestEnabled && import("./vitest-BjgW1yiP.js").then((m) => m.vitestUnConfig(context)),
|
|
359
|
+
isJsdocEnabled && import("./jsdoc-C2hUTuaz.js").then((m) => m.jsdocUnConfig(context)),
|
|
360
|
+
isQwikEnabled && import("./qwik-Uq0GbzWs.js").then((m) => m.qwikUnConfig(context)),
|
|
361
|
+
isCssEnabled && import("./css-DCf4KABj.js").then((m) => m.cssUnConfig(context)),
|
|
362
|
+
isUnusedImportsEnabled && import("./unused-imports-6pzXYvJj.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
363
|
+
isReactEnabled && import("./react-BJoxhDJs.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-yCH9HKGF.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
368
|
+
isPnpmEnabled && import("./pnpm-DV_8YNN-.js").then((m) => m.pnpmUnConfig(context)),
|
|
369
|
+
isNextJsEnabled && import("./nextjs-wT-G_3Dh.js").then((m) => m.nextJsUnConfig(context)),
|
|
370
|
+
isSolidEnabled && import("./solid-of_RNBXr.js").then((m) => m.solidUnConfig(context)),
|
|
371
|
+
isJsInlineEnabled && import("./js-inline-B9of7DdZ.js").then((m) => m.jsInlineUnConfig(context)),
|
|
372
|
+
isHtmlEnabled && import("./html-D9f9Ait0.js").then((m) => m.htmlUnConfig(context)),
|
|
373
|
+
isMathEnabled && import("./math-gU-bYpSR.js").then((m) => m.mathUnConfig(context)),
|
|
374
|
+
isTanstackQueryEnabled && import("./tanstack-query-wE2bqsTa.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
375
|
+
isAvaEnabled && import("./ava-C7aqEOH3.js").then((m) => m.avaUnConfig(context)),
|
|
376
|
+
isTestingLibraryEnabled && import("./testing-library-ErveaoBl.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
377
|
+
isStorybookEnabled && import("./storybook-BApY_aFq.js").then((m) => m.storybookUnConfig(context)),
|
|
378
|
+
isEmberEnabled && import("./ember-oOWw4eUQ.js").then((m) => m.emberUnConfig(context)),
|
|
379
|
+
isCypressEnabled && import("./cypress-9WpcAPds.js").then((m) => m.cypressUnConfig(context)),
|
|
380
|
+
isTurboEnabled && import("./turbo-CJU8hF6l.js").then((m) => m.turboUnConfig(context)),
|
|
381
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-uQukVcK8.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
382
|
+
isBetterTailwindEnabled && import("./better-tailwind-NthoTpRQ.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
383
|
+
isMdxEnabled && import("./mdx-B6gv5RyX.js").then((m) => m.mdxUnConfig(context)),
|
|
384
|
+
isPlaywrightEnabled && import("./playwright-6kHxm6o5.js").then((m) => m.playwrightUnConfig(context)),
|
|
385
|
+
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-RVT4Z29o.js").then((m) => m.youDontNeedLodashUnderscoreUnConfig(context)),
|
|
386
|
+
isLitEnabled && import("./lit-BBmednNN.js").then((m) => m.litUnConfig(context)),
|
|
387
|
+
isMochaEnabled && import("./mocha-CEdZZ1Ej.js").then((m) => m.mochaUnConfig(context)),
|
|
388
|
+
isQunitEnabled && import("./qunit-BrdUJ-0U.js").then((m) => m.qunitUnConfig(context)),
|
|
389
|
+
isRxjsEnabled && import("./rxjs-BYqq194j.js").then((m) => m.rxjsUnConfig(context)),
|
|
390
|
+
isNxEnabled && import("./nx-BmKA92BJ.js").then((m) => m.nxUnConfig(context)),
|
|
391
|
+
isUnEnabled && import("./un-DkKt97E-.js").then((m) => m.unUnConfig(context)),
|
|
392
|
+
isImportZodEnabled && import("./import-zod-CvbVoI-g.js").then((m) => m.importZodUnConfig(context)),
|
|
393
|
+
isUnocssEnabled && import("./unocss-CT-t0w5k.js").then((m) => m.unocssUnConfig(context)),
|
|
394
|
+
isSecurityEnabled && import("./security-CTGitYoV.js").then((m) => m.securityUnConfig(context)),
|
|
395
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-CWhOCTfb.js").then((m) => m.preferArrowFunctionsUnConfig(context)),
|
|
396
|
+
isYamlEnabled && import("./yaml-FRKtwVx7.js").then((m) => m.yamlUnConfig(context)),
|
|
397
|
+
isTomlEnabled && import("./toml-D7MXqoUj.js").then((m) => m.tomlUnConfig(context)),
|
|
398
|
+
isJsoncEnabled && import("./jsonc-DgaMIUWk.js").then((m) => m.jsoncUnConfig(context)),
|
|
399
|
+
isPackageJsonEnabled && import("./package-json-zMn6IEof.js").then((m) => m.packageJsonUnConfig(context)),
|
|
400
|
+
isPerfectionistEnabled && import("./perfectionist-iUY5vKZc.js").then((m) => m.perfectionistUnConfig(context)),
|
|
401
|
+
isDeMorganEnabled && import("./de-morgan-DqBiPNc_.js").then((m) => m.deMorganUnConfig(context)),
|
|
402
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-DNMk7_b-.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
403
|
+
isCasePoliceEnabled && import("./case-police-CYVwMedV.js").then((m) => m.casePoliceUnConfig(context)),
|
|
404
|
+
isNodeDependenciesEnabled && import("./node-dependencies-qsv95kJx.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
405
|
+
isDependEnabled && import("./depend-Bqi9lvQ0.js").then((m) => m.dependUnConfig(context)),
|
|
406
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-B7JSM2ao.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
407
|
+
isCspellEnabled && import("./cspell-R6rxRQDN.js").then((m) => m.cspellUnConfig(context)),
|
|
408
|
+
isEslintPluginEnabled && import("./eslint-plugin-DDDyeNEh.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
409
|
+
isFileProgressEnabled && import("./file-progress-DK2VhKWW.js").then((m) => m.fileProgressUnConfig(context)),
|
|
410
|
+
isNoOnlyTestsEnabled && import("./no-only-tests-DDOjxN0B.js").then((m) => m.noOnlyTestsUnConfig(context)),
|
|
411
|
+
isCompatEnabled && import("./compat-CgpPAzV9.js").then((m) => m.compatUnConfig(context)),
|
|
412
|
+
isWebComponentsEnabled && import("./web-components-DApyrh-L.js").then((m) => m.webComponentsUnConfig(context)),
|
|
413
|
+
isHeaderEnabled && import("./header-BSycTBso.js").then((m) => m.headerUnConfig(context)),
|
|
414
|
+
isHeadersEnabled && import("./headers-CUid1unj.js").then((m) => m.headerUnConfig(context)),
|
|
415
415
|
tsEslintConfigResult,
|
|
416
|
-
isEsEnabled && import("./es-
|
|
416
|
+
isEsEnabled && import("./es-BxdIOdL7.js").then((m) => m.esUnConfig(context)),
|
|
417
417
|
vueEslintConfigResult,
|
|
418
418
|
astroEslintConfigResult,
|
|
419
|
-
isAngularEnabled && import("./angular-
|
|
419
|
+
isAngularEnabled && import("./angular-Dnj7ebe9.js").then((m) => m.angularUnConfig(context)),
|
|
420
420
|
svelteEslintConfigResult,
|
|
421
|
-
isGraphqlEnabled && import("./graphql-
|
|
422
|
-
isMarkdownEnabled && import("./markdown-
|
|
421
|
+
isGraphqlEnabled && import("./graphql-BWtYHDkE.js").then((m) => m.graphqlUnConfig(context)),
|
|
422
|
+
isMarkdownEnabled && import("./markdown-Deuh3Hkl.js").then((m) => m.markdownUnConfig(context)),
|
|
423
423
|
rootConfigBuilder,
|
|
424
|
-
isCliEnabled && import("./cli-
|
|
425
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
424
|
+
isCliEnabled && import("./cli-BmZjLPSn.js").then((m) => m.cliUnConfig(context)),
|
|
425
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-DSXkcpu2.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-CbOhcoF4.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-BJq_me6w.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jest.ts
|
|
5
5
|
const jestUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-Cr9sDTGR.js";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/js-inline.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML, 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-Cr9sDTGR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/js.ts
|
|
4
4
|
const jsUnConfig = async (context) => {
|
|
@@ -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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES, TOML_DEFAULT_FILES, YAML_DEFAULT_FILES } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES } from "./shared-BJq_me6w.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jsonc.ts
|
|
5
5
|
const jsoncUnConfig = async (context) => {
|
|
@@ -16,22 +16,30 @@ const jsoncUnConfig = async (context) => {
|
|
|
16
16
|
configBuilder?.addConfig(["jsonc/all", {
|
|
17
17
|
includeDefaultFilesAndIgnores: true,
|
|
18
18
|
filesFallback: JSONC_DEFAULT_FILES,
|
|
19
|
-
mergeUserFilesWithFallback: !doNotMergeFilesWithDefault
|
|
19
|
+
mergeUserFilesWithFallback: !doNotMergeFilesWithDefault,
|
|
20
|
+
doNotIgnoreMarkdown: true,
|
|
21
|
+
doNotIgnoreMdx: true
|
|
20
22
|
}], { languageOptions: { parser: jsoncEslintParser } }).addRule("auto", OFF).addRule("key-name-casing", OFF).addRule("no-bigint-literals", ERROR).addRule("no-binary-expression", ERROR).addRule("no-binary-numeric-literals", ERROR).addRule("no-comments", OFF).addRule("no-escape-sequence-in-identifier", ERROR).addRule("no-hexadecimal-numeric-literals", OFF).addRule("no-infinity", OFF).addRule("no-nan", OFF).addRule("no-number-props", ERROR).addRule("no-numeric-separators", ERROR).addRule("no-octal-numeric-literals", ERROR).addRule("no-parenthesized", ERROR).addRule("no-plus-sign", OFF).addRule("no-regexp-literals", ERROR).addRule("no-template-literals", ERROR).addRule("no-undefined-value", ERROR).addRule("no-unicode-codepoint-escapes", ERROR).addRule("sort-array-values", OFF).addRule("sort-keys", OFF).addRule("valid-json-number", OFF).addRule("vue-custom-block/no-parsing-error", ERROR).addRule("array-bracket-newline", OFF).addRule("array-bracket-spacing", OFF).addRule("array-element-newline", OFF).addRule("comma-dangle", OFF).addRule("comma-style", OFF).addRule("indent", OFF).addRule("key-spacing", OFF).addRule("no-dupe-keys", ERROR).addRule("no-floating-decimal", OFF).addRule("no-irregular-whitespace", ERROR).addRule("no-multi-str", OFF).addRule("no-octal-escape", OFF).addRule("no-octal", ERROR).addRule("no-sparse-arrays", ERROR).addRule("no-useless-escape", ERROR).addRule("object-curly-newline", OFF).addRule("object-curly-spacing", OFF).addRule("object-property-newline", OFF).addRule("quote-props", OFF).addRule("quotes", OFF).addRule("space-unary-ops", ERROR).disableAnyRule("", "no-unused-expressions").disableAnyRule("", "no-unused-vars").disableAnyRule("", "strict").addOverrides();
|
|
21
23
|
const configBuilderJson = createConfigBuilder(context, configJson, "jsonc");
|
|
22
24
|
configBuilderJson?.addConfig(["jsonc/json", {
|
|
23
25
|
includeDefaultFilesAndIgnores: true,
|
|
24
|
-
filesFallback: [GLOB_JSON]
|
|
26
|
+
filesFallback: [GLOB_JSON],
|
|
27
|
+
doNotIgnoreMarkdown: true,
|
|
28
|
+
doNotIgnoreMdx: true
|
|
25
29
|
}]).addOverrides();
|
|
26
30
|
const configBuilderJsonc = createConfigBuilder(context, configJsonc, "jsonc");
|
|
27
31
|
configBuilderJsonc?.addConfig(["jsonc/jsonc", {
|
|
28
32
|
includeDefaultFilesAndIgnores: true,
|
|
29
|
-
filesFallback: [GLOB_JSONC]
|
|
33
|
+
filesFallback: [GLOB_JSONC],
|
|
34
|
+
doNotIgnoreMarkdown: true,
|
|
35
|
+
doNotIgnoreMdx: true
|
|
30
36
|
}]).addOverrides();
|
|
31
37
|
const configBuilderJson5 = createConfigBuilder(context, configJson5, "jsonc");
|
|
32
38
|
configBuilderJson5?.addConfig(["jsonc/json5", {
|
|
33
39
|
includeDefaultFilesAndIgnores: true,
|
|
34
|
-
filesFallback: [GLOB_JSON5]
|
|
40
|
+
filesFallback: [GLOB_JSON5],
|
|
41
|
+
doNotIgnoreMarkdown: true,
|
|
42
|
+
doNotIgnoreMdx: true
|
|
35
43
|
}]).addOverrides();
|
|
36
44
|
return {
|
|
37
45
|
configs: [
|
|
@@ -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-Cr9sDTGR.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-Cr9sDTGR.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-yCH9HKGF.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/eslint-rules.gen.ts
|
|
4
4
|
const ALL_RULES_PER_PLUGIN = {
|
|
@@ -4022,7 +4022,7 @@ const ALL_STYLISTIC_RULES = {
|
|
|
4022
4022
|
"use-unknown-in-catch-callback-variable": true
|
|
4023
4023
|
},
|
|
4024
4024
|
turbo: {},
|
|
4025
|
-
un: {},
|
|
4025
|
+
un: { "prefer-early-return": true },
|
|
4026
4026
|
unicorn: {
|
|
4027
4027
|
"better-regex": true,
|
|
4028
4028
|
"catch-error-name": true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-SAM-8ZUT.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { TOML_DEFAULT_FILES } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-BJq_me6w.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-Cr9sDTGR.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-BJq_me6w.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-Cr9sDTGR.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-Cr9sDTGR.js";
|
|
2
|
+
import { YAML_DEFAULT_FILES } from "./shared-BJq_me6w.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-Cr9sDTGR.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
package/dist/es-CyowgD9x.js
DELETED