eslint-config-un 1.0.0-alpha.23 → 1.0.0-alpha.24
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-BhTHkSV1.js → angular-BsqeEap6.js} +1 -1
- package/dist/{astro-BefzGlJ7.js → astro-B5pwcTHI.js} +2 -2
- package/dist/{ava-C_yN6gTR.js → ava-BrnsdwqF.js} +2 -2
- package/dist/{better-tailwind-D6PRm3OL.js → better-tailwind-Dbd9L8Ek.js} +1 -1
- package/dist/{case-police-CV3Xev4u.js → case-police-CzA0_yqd.js} +1 -1
- package/dist/{cli-Dh4kunIg.js → cli-B_0Ayd2B.js} +1 -1
- package/dist/{cloudfront-functions-B07wvf2p.js → cloudfront-functions-DWtJmPnv.js} +2 -2
- package/dist/{compat-CtI0jdfA.js → compat-Kb2PzGdh.js} +1 -1
- package/dist/{cspell-BnX_oN4q.js → cspell-en5zKMuG.js} +1 -1
- package/dist/{css-B3QSyoeY.js → css-4mdTRIKg.js} +1 -1
- package/dist/{css-in-js-CB_SsX-q.js → css-in-js-D1_2puiX.js} +1 -1
- package/dist/{cypress-C3Exloxh.js → cypress-BxhKio90.js} +2 -2
- package/dist/{de-morgan-DzHX6SMA.js → de-morgan-BvI9u2JU.js} +1 -1
- package/dist/{depend-wLIDBHxt.js → depend-CkaeQ7NU.js} +2 -2
- package/dist/{ember-DVxrBaGU.js → ember-DZfqZH-f.js} +2 -2
- package/dist/{erasable-syntax-only-BsZ3i8nt.js → erasable-syntax-only-PqPn-iKr.js} +1 -1
- package/dist/{es-Bg2FDcca.js → es-Bb0wGnKd.js} +1 -1
- package/dist/es-DbNQGUeG.js +4 -0
- package/dist/{eslint-C-4XqR5G.js → eslint-DeOf7WeA.js} +1 -1
- package/dist/{eslint-comments-B2hDxcyV.js → eslint-comments-Bs8DwIzL.js} +1 -1
- package/dist/{eslint-plugin-Cln1LPLP.js → eslint-plugin-oxlwv_zT.js} +2 -2
- package/dist/{file-progress-Bgf3JIrB.js → file-progress-BnGe-FnU.js} +1 -1
- package/dist/{graphql-D_5y2MGf.js → graphql-UQg5YljO.js} +1 -1
- package/dist/{header-DCfGxixv.js → header-BW6ZNYYC.js} +1 -1
- package/dist/{headers-DXg7EQqD.js → headers-5YAcu99p.js} +1 -1
- package/dist/{html-BUlQ82a_.js → html-DB3o5VKS.js} +1 -1
- package/dist/{import-CulMXSVJ.js → import-BmAR2gYZ.js} +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +72 -72
- package/dist/{jest-CeA1za3v.js → jest-DAhRuNZJ.js} +2 -2
- package/dist/{js-CCaGW1Lp.js → js-DUFvCMXr.js} +1 -1
- package/dist/{js-inline-Bnm90ppF.js → js-inline-EyTpc0zO.js} +1 -1
- package/dist/{jsdoc-DfJ0Xl_e.js → jsdoc-BRSXzvD1.js} +3 -3
- package/dist/{json-schema-validator-tDo_5r4V.js → json-schema-validator-CIbbq6ms.js} +2 -2
- package/dist/{jsonc-DcOSaFjV.js → jsonc-VsURc7_q.js} +2 -2
- package/dist/{jsx-a11y-Bccwph3L.js → jsx-a11y-Dw8nWdS4.js} +1 -1
- package/dist/{lit-Hfiv4tkq.js → lit-CWLCWg7T.js} +2 -2
- package/dist/{markdown-BjZhHBVp.js → markdown-CQqwAQFO.js} +2 -2
- package/dist/{math-BiTCtbRT.js → math-DHAPeXS8.js} +1 -1
- package/dist/{mdx-e5UQbDN8.js → mdx-BW9udJMb.js} +2 -2
- package/dist/{mocha--9zGsv7Q.js → mocha-BBBrcHaG.js} +2 -2
- package/dist/{nextjs-SYMlKz-G.js → nextjs-BtlxDa3j.js} +1 -1
- package/dist/{no-only-tests-CwCEHEg4.js → no-only-tests-BWkgOtX3.js} +2 -2
- package/dist/{no-stylistic-rules-CsaN_N12.js → no-stylistic-rules-XUdiId83.js} +1 -1
- package/dist/{no-unsanitized-Y3q4XTmD.js → no-unsanitized-O5Gq0wpp.js} +1 -1
- package/dist/{node-BzJZqvEB.js → node-BSJRcgW9.js} +1 -1
- package/dist/{node-dependencies-FU9pAG7T.js → node-dependencies-5L3kX15N.js} +2 -2
- package/dist/package-json-D10ALS0p.js +4 -0
- package/dist/{package-json-Dxlb3Nls.js → package-json-DTmsIPGF.js} +7 -3
- package/dist/{perfectionist-CP64CdCe.js → perfectionist-C2GQCwTD.js} +1 -1
- package/dist/{playwright-s1XYXqvV.js → playwright-OYQ9ceRa.js} +2 -2
- package/dist/{pnpm-Koom_ja9.js → pnpm-kYOMLdrz.js} +1 -1
- package/dist/{prefer-arrow-functions-DQcpQhyu.js → prefer-arrow-functions-C5X1W-I8.js} +1 -1
- package/dist/{promise-ilmmF3Jo.js → promise-Dc7h-g8-.js} +1 -1
- package/dist/{qunit-BNQbw8ME.js → qunit-ChBioKQZ.js} +2 -2
- package/dist/{qwik-CRjyfFl8.js → qwik-BH4k3wax.js} +1 -1
- package/dist/{react-CIM7-KRK.js → react-BDvKWZRx.js} +2 -2
- package/dist/{regexp-B4_iT6_I.js → regexp-zeHEmgKy.js} +1 -1
- package/dist/{security-DblLpCiV.js → security-PbJLn1kF.js} +1 -1
- package/dist/{shared-CqH_rTYe.js → shared-CrDsezf6.js} +1 -1
- package/dist/{solid-D4nFszyQ.js → solid-BT-jVYjv.js} +1 -1
- package/dist/{sonar-CYDHedc-.js → sonar-BDim0HYC.js} +1 -1
- package/dist/{storybook-C_EkyulG.js → storybook-DD7VQqP0.js} +1 -1
- package/dist/{svelte-Zj-gRxaS.js → svelte-By0yZqfj.js} +2 -2
- package/dist/{tailwind-RcsG9KLt.js → tailwind-qoJWRQi0.js} +1 -1
- package/dist/{tanstack-query-Bs2OPt6G.js → tanstack-query-tcTlybcV.js} +1 -1
- package/dist/{testing-library-CsDSEPBR.js → testing-library-D9CMFREs.js} +2 -2
- package/dist/{toml-djifK3wR.js → toml-uRZYDMqE.js} +2 -2
- package/dist/{ts-BqoAQdkp.js → ts-B83L3wq5.js} +1 -1
- package/dist/{turbo-BhDgZL7Z.js → turbo-D0A98Zg8.js} +1 -1
- package/dist/{unicorn-w1sSGjis.js → unicorn-B7q_kvMg.js} +1 -1
- package/dist/{unused-imports-BvL80eoU.js → unused-imports-jQc_Hmfy.js} +1 -1
- package/dist/{vitest-C7TJ9Tbj.js → vitest-D1BGdPiZ.js} +2 -2
- package/dist/{vue-CoiFk2zV.js → vue-IiFb_9kn.js} +2 -2
- package/dist/{web-components-PKRQ_oxE.js → web-components-sWAsbN4G.js} +1 -1
- package/dist/{yaml-DPwvXP7y.js → yaml-B-uThQqc.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-BPUX_yvX.js → you-dont-need-lodash-underscore-D1Ji8D0H.js} +1 -1
- package/package.json +1 -1
- package/dist/es-pMddPZZH.js +0 -4
- package/dist/package-json-DaBQyftz.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/astro.ts
|
|
4
4
|
const DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
@@ -32,7 +32,7 @@ const astroUnConfig = async (context) => {
|
|
|
32
32
|
}]).addRule("missing-client-only-directive-value", ERROR).addRule("no-conflict-set-directives", ERROR).addRule("no-deprecated-astro-canonicalurl", ERROR).addRule("no-deprecated-astro-fetchcontent", ERROR).addRule("no-deprecated-astro-resolve", ERROR).addRule("no-deprecated-getentrybyslug", ERROR).addRule("no-exports-from-components", ERROR).addRule("no-unused-define-vars-in-style", ERROR).addRule("valid-compile", ERROR).addRule("no-set-html-directive", ERROR).addRule("no-set-text-directive", OFF).addRule("no-unused-css-selector", WARNING).addRule("prefer-class-list-directive", ERROR).addRule("prefer-object-class-list", ERROR).addRule("prefer-split-class-list", ERROR).addRule("sort-attributes", ERROR).addRule("semi", OFF).addOverrides();
|
|
33
33
|
return {
|
|
34
34
|
configs: [configBuilder, ...configJsxA11y === false ? [] : await (async () => {
|
|
35
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
35
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-Dw8nWdS4.js");
|
|
36
36
|
const result = await jsxA11yUnConfig(context, {
|
|
37
37
|
prefix: "astro",
|
|
38
38
|
options: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { esUnConfig } from "./es-Bb0wGnKd.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DTmsIPGF.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -136,7 +136,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region package.json
|
|
138
138
|
var name = "eslint-config-un";
|
|
139
|
-
var version = "1.0.0-alpha.
|
|
139
|
+
var version = "1.0.0-alpha.24";
|
|
140
140
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
141
141
|
var keywords = ["eslint", "eslint-config"];
|
|
142
142
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -5557,6 +5557,13 @@ interface JsdocEslintConfigOptions extends UnConfigOptions<'jsdoc'> {
|
|
|
5557
5557
|
* @default true <=> `ts` config is enabled
|
|
5558
5558
|
*/
|
|
5559
5559
|
configTypescript?: boolean | UnConfigOptions<'jsdoc', Pick<JsdocEslintConfigOptions, 'settings'>>;
|
|
5560
|
+
/**
|
|
5561
|
+
* Recognize the following tags as valid JSDoc tags.
|
|
5562
|
+
*
|
|
5563
|
+
* Affected rules:
|
|
5564
|
+
* - [`check-tag-names`](https://github.com/gajus/eslint-plugin-jsdoc/blob/HEAD/docs/rules/check-tag-names.md)
|
|
5565
|
+
*/
|
|
5566
|
+
customTags?: string[];
|
|
5560
5567
|
/**
|
|
5561
5568
|
* With be merged with the default list: `['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck', '__PURE__', '__NO_SIDE_EFFECTS__', 'vite-ignore]`.
|
|
5562
5569
|
*
|
|
@@ -5960,6 +5967,9 @@ interface NodeDependenciesEslintConfigOptions extends UnConfigOptions<'node-depe
|
|
|
5960
5967
|
* - `true`: enforces to use the absolute version only on `dependencies` and `devDependencies`.
|
|
5961
5968
|
* - `'never'`: enforces not to use the absolute version.
|
|
5962
5969
|
* - `false`: do not enforce anything.
|
|
5970
|
+
*
|
|
5971
|
+
* Affected rules:
|
|
5972
|
+
* - [`absolute-version`](https://ota-meshi.github.io/eslint-plugin-node-dependencies/rules/absolute-version.html)
|
|
5963
5973
|
* @default false
|
|
5964
5974
|
*/
|
|
5965
5975
|
enforceAbsoluteVersion?: boolean | 'never' | (GetRuleOptions<'node-dependencies', 'absolute-version'>[0] & object);
|
|
@@ -6005,6 +6015,16 @@ interface PackageJsonEslintConfigOptions extends UnConfigOptions<'package-json'>
|
|
|
6005
6015
|
* @see https://docs.npmjs.com/cli/configuring-npm/package-json
|
|
6006
6016
|
*/
|
|
6007
6017
|
collectionsToSort?: PackageJsonCollectionsToSort;
|
|
6018
|
+
/**
|
|
6019
|
+
* - `true`: enforces to use the absolute version only on `dependencies` and `devDependencies`.
|
|
6020
|
+
* - `'never'`: enforces not to use the absolute version.
|
|
6021
|
+
* - `false`: do not enforce anything.
|
|
6022
|
+
*
|
|
6023
|
+
* Affected rules:
|
|
6024
|
+
* - [`node-dependencies/absolute-version`](https://ota-meshi.github.io/eslint-plugin-node-dependencies/rules/absolute-version.html) (yes, it will use the rule from another plugin, [`eslint-plugin-node-dependencies`](https://npmjs.com/eslint-plugin-node-dependencies), for simplicity)
|
|
6025
|
+
* @default false
|
|
6026
|
+
*/
|
|
6027
|
+
enforceAbsoluteVersion?: boolean | 'never' | (GetRuleOptions<'node-dependencies', 'absolute-version'>[0] & object);
|
|
6008
6028
|
}
|
|
6009
6029
|
//#endregion
|
|
6010
6030
|
//#region src/configs/perfectionist.d.ts
|
|
@@ -7607,8 +7627,9 @@ interface UnConfigs {
|
|
|
7607
7627
|
*/
|
|
7608
7628
|
noUnsanitized: NoUnsanitizedEslintConfigOptions;
|
|
7609
7629
|
/**
|
|
7610
|
-
* Used
|
|
7630
|
+
* Used plugins:
|
|
7611
7631
|
* - [`eslint-plugin-package-json`](https://npmjs.com/eslint-plugin-package-json) ([docs](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json))
|
|
7632
|
+
* - (if `enforceAbsoluteVersion` option is used) [`eslint-plugin-node-dependencies`](https://npmjs.com/eslint-plugin-node-dependencies) ([docs](https://ota-meshi.github.io/eslint-plugin-node-dependencies))
|
|
7612
7633
|
*
|
|
7613
7634
|
* NOTE: disabled by default.
|
|
7614
7635
|
* @default true <=> `defaultConfigsStatus` is set to `misc-enabled`
|
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-DeOf7WeA.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import consola from "consola";
|
|
@@ -279,14 +279,14 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
279
279
|
logger,
|
|
280
280
|
debug
|
|
281
281
|
};
|
|
282
|
-
const jsEslintConfigResult = isJsEnabled && await import("./js-
|
|
282
|
+
const jsEslintConfigResult = isJsEnabled && await import("./js-DUFvCMXr.js").then((m) => m.jsUnConfig(context));
|
|
283
283
|
const vanillaFinalFlatConfigRules = jsEslintConfigResult && jsEslintConfigResult.finalFlatConfigRules || {};
|
|
284
284
|
const [astroEslintConfigResult, vueEslintConfigResult, svelteEslintConfigResult] = await Promise.all([
|
|
285
|
-
isAstroEnabled && import("./astro-
|
|
286
|
-
isVueEnabled && import("./vue-
|
|
287
|
-
isSvelteEnabled && import("./svelte-
|
|
285
|
+
isAstroEnabled && import("./astro-B5pwcTHI.js").then((m) => m.astroUnConfig(context)),
|
|
286
|
+
isVueEnabled && import("./vue-IiFb_9kn.js").then((m) => m.vueUnConfig(context, { vanillaFinalFlatConfigRules })),
|
|
287
|
+
isSvelteEnabled && import("./svelte-By0yZqfj.js").then((m) => m.svelteUnConfig(context))
|
|
288
288
|
]);
|
|
289
|
-
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-
|
|
289
|
+
const tsEslintConfigResult = isTypescriptEnabled && await import("./ts-B83L3wq5.js").then((m) => m.tsUnConfig(context, {
|
|
290
290
|
vanillaFinalFlatConfigRules,
|
|
291
291
|
astroResolvedOptions: astroEslintConfigResult ? astroEslintConfigResult.optionsResolved : null,
|
|
292
292
|
vueResolvedOptions: vueEslintConfigResult ? vueEslintConfigResult.optionsResolved : null,
|
|
@@ -330,85 +330,85 @@ const eslintConfigInternal = async (options = {}, internalOptions = {}) => {
|
|
|
330
330
|
languageOptions: { globals: { ...globals$1.commonjs } }
|
|
331
331
|
},
|
|
332
332
|
jsEslintConfigResult,
|
|
333
|
-
isUnicornEnabled && import("./unicorn-
|
|
334
|
-
isImportEnabled && import("./import-
|
|
335
|
-
isNodeEnabled && import("./node-
|
|
336
|
-
isPromiseEnabled && import("./promise-
|
|
337
|
-
isSonarEnabled && import("./sonar-
|
|
338
|
-
isTailwindEnabled && import("./tailwind-
|
|
339
|
-
isRegexpEnabled && import("./regexp-
|
|
340
|
-
isEslintCommentsEnabled && import("./eslint-comments-
|
|
341
|
-
isCssInJsEnabled && import("./css-in-js-
|
|
342
|
-
isJestEnabled && import("./jest-
|
|
343
|
-
isVitestEnabled && import("./vitest-
|
|
344
|
-
isJsdocEnabled && import("./jsdoc-
|
|
345
|
-
isQwikEnabled && import("./qwik-
|
|
346
|
-
isCssEnabled && import("./css-
|
|
347
|
-
isUnusedImportsEnabled && import("./unused-imports-
|
|
348
|
-
isReactEnabled && import("./react-
|
|
333
|
+
isUnicornEnabled && import("./unicorn-B7q_kvMg.js").then((m) => m.unicornUnConfig(context)),
|
|
334
|
+
isImportEnabled && import("./import-BmAR2gYZ.js").then((m) => m.importUnConfig(context)),
|
|
335
|
+
isNodeEnabled && import("./node-BSJRcgW9.js").then((m) => m.nodeUnConfig(context)),
|
|
336
|
+
isPromiseEnabled && import("./promise-Dc7h-g8-.js").then((m) => m.promiseUnConfig(context)),
|
|
337
|
+
isSonarEnabled && import("./sonar-BDim0HYC.js").then((m) => m.sonarUnConfig(context)),
|
|
338
|
+
isTailwindEnabled && import("./tailwind-qoJWRQi0.js").then((m) => m.tailwindUnConfig(context)),
|
|
339
|
+
isRegexpEnabled && import("./regexp-zeHEmgKy.js").then((m) => m.regexpUnConfig(context)),
|
|
340
|
+
isEslintCommentsEnabled && import("./eslint-comments-Bs8DwIzL.js").then((m) => m.eslintCommentsUnConfig(context)),
|
|
341
|
+
isCssInJsEnabled && import("./css-in-js-D1_2puiX.js").then((m) => m.cssInJsUnConfig(context)),
|
|
342
|
+
isJestEnabled && import("./jest-DAhRuNZJ.js").then((m) => m.jestUnConfig(context)),
|
|
343
|
+
isVitestEnabled && import("./vitest-D1BGdPiZ.js").then((m) => m.vitestUnConfig(context)),
|
|
344
|
+
isJsdocEnabled && import("./jsdoc-BRSXzvD1.js").then((m) => m.jsdocUnConfig(context)),
|
|
345
|
+
isQwikEnabled && import("./qwik-BH4k3wax.js").then((m) => m.qwikUnConfig(context)),
|
|
346
|
+
isCssEnabled && import("./css-4mdTRIKg.js").then((m) => m.cssUnConfig(context)),
|
|
347
|
+
isUnusedImportsEnabled && import("./unused-imports-jQc_Hmfy.js").then((m) => m.unusedImportsUnConfig(context)),
|
|
348
|
+
isReactEnabled && import("./react-BDvKWZRx.js").then((m) => m.reactUnConfig(context, {
|
|
349
349
|
tsFilesTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.filesTypeAware : [],
|
|
350
350
|
tsIgnoresTypeAware: typeof tsEslintConfigResult === "object" && tsEslintConfigResult ? tsEslintConfigResult.ignoresTypeAware : []
|
|
351
351
|
})),
|
|
352
|
-
isJsxA11yEnabled && import("./jsx-a11y-
|
|
353
|
-
isPnpmEnabled && import("./pnpm-
|
|
354
|
-
isNextJsEnabled && import("./nextjs-
|
|
355
|
-
isSolidEnabled && import("./solid-
|
|
356
|
-
isJsInlineEnabled && import("./js-inline-
|
|
357
|
-
isHtmlEnabled && import("./html-
|
|
358
|
-
isMathEnabled && import("./math-
|
|
359
|
-
isTanstackQueryEnabled && import("./tanstack-query-
|
|
360
|
-
isAvaEnabled && import("./ava-
|
|
361
|
-
isTestingLibraryEnabled && import("./testing-library-
|
|
362
|
-
isStorybookEnabled && import("./storybook-
|
|
363
|
-
isEmberEnabled && import("./ember-
|
|
364
|
-
isCypressEnabled && import("./cypress-
|
|
365
|
-
isTurboEnabled && import("./turbo-
|
|
366
|
-
isNoUnsanitizedEnabled && import("./no-unsanitized-
|
|
367
|
-
isBetterTailwindEnabled && import("./better-tailwind-
|
|
368
|
-
isMdxEnabled && import("./mdx-
|
|
369
|
-
isPlaywrightEnabled && import("./playwright-
|
|
370
|
-
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-
|
|
371
|
-
isLitEnabled && import("./lit-
|
|
372
|
-
isMochaEnabled && import("./mocha
|
|
373
|
-
isQunitEnabled && import("./qunit-
|
|
374
|
-
isSecurityEnabled && import("./security-
|
|
375
|
-
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-
|
|
376
|
-
isYamlEnabled && import("./yaml-
|
|
377
|
-
isTomlEnabled && import("./toml-
|
|
378
|
-
isJsoncEnabled && import("./jsonc-
|
|
379
|
-
isPackageJsonEnabled && import("./package-json-
|
|
380
|
-
isPerfectionistEnabled && import("./perfectionist-
|
|
381
|
-
isDeMorganEnabled && import("./de-morgan-
|
|
382
|
-
isJsonSchemaValidatorEnabled && import("./json-schema-validator-
|
|
383
|
-
isCasePoliceEnabled && import("./case-police-
|
|
384
|
-
isNodeDependenciesEnabled && import("./node-dependencies-
|
|
385
|
-
isDependEnabled && import("./depend-
|
|
386
|
-
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-
|
|
387
|
-
isCspellEnabled && import("./cspell-
|
|
388
|
-
isEslintPluginEnabled && import("./eslint-plugin-
|
|
389
|
-
isFileProgressEnabled && import("./file-progress-
|
|
390
|
-
isNoOnlyTestsEnabled && import("./no-only-tests-
|
|
391
|
-
isCompatEnabled && import("./compat-
|
|
392
|
-
isWebComponentsEnabled && import("./web-components-
|
|
393
|
-
isHeaderEnabled && import("./header-
|
|
394
|
-
isHeadersEnabled && import("./headers-
|
|
352
|
+
isJsxA11yEnabled && import("./jsx-a11y-Dw8nWdS4.js").then((m) => m.jsxA11yUnConfig(context)),
|
|
353
|
+
isPnpmEnabled && import("./pnpm-kYOMLdrz.js").then((m) => m.pnpmUnConfig(context)),
|
|
354
|
+
isNextJsEnabled && import("./nextjs-BtlxDa3j.js").then((m) => m.nextJsUnConfig(context)),
|
|
355
|
+
isSolidEnabled && import("./solid-BT-jVYjv.js").then((m) => m.solidUnConfig(context)),
|
|
356
|
+
isJsInlineEnabled && import("./js-inline-EyTpc0zO.js").then((m) => m.jsInlineUnConfig(context)),
|
|
357
|
+
isHtmlEnabled && import("./html-DB3o5VKS.js").then((m) => m.htmlUnConfig(context)),
|
|
358
|
+
isMathEnabled && import("./math-DHAPeXS8.js").then((m) => m.mathUnConfig(context)),
|
|
359
|
+
isTanstackQueryEnabled && import("./tanstack-query-tcTlybcV.js").then((m) => m.tanstackQueryUnConfig(context)),
|
|
360
|
+
isAvaEnabled && import("./ava-BrnsdwqF.js").then((m) => m.avaUnConfig(context)),
|
|
361
|
+
isTestingLibraryEnabled && import("./testing-library-D9CMFREs.js").then((m) => m.testingLibraryUnConfig(context)),
|
|
362
|
+
isStorybookEnabled && import("./storybook-DD7VQqP0.js").then((m) => m.storybookUnConfig(context)),
|
|
363
|
+
isEmberEnabled && import("./ember-DZfqZH-f.js").then((m) => m.emberUnConfig(context)),
|
|
364
|
+
isCypressEnabled && import("./cypress-BxhKio90.js").then((m) => m.cypressUnConfig(context)),
|
|
365
|
+
isTurboEnabled && import("./turbo-D0A98Zg8.js").then((m) => m.turboUnConfig(context)),
|
|
366
|
+
isNoUnsanitizedEnabled && import("./no-unsanitized-O5Gq0wpp.js").then((m) => m.noUnsanitizedUnConfig(context)),
|
|
367
|
+
isBetterTailwindEnabled && import("./better-tailwind-Dbd9L8Ek.js").then((m) => m.betterTailwindUnConfig(context)),
|
|
368
|
+
isMdxEnabled && import("./mdx-BW9udJMb.js").then((m) => m.mdxUnConfig(context)),
|
|
369
|
+
isPlaywrightEnabled && import("./playwright-OYQ9ceRa.js").then((m) => m.playwrightUnConfig(context)),
|
|
370
|
+
isYouDontNeedLodashUnderscoreEnabled && import("./you-dont-need-lodash-underscore-D1Ji8D0H.js").then((m) => m.youDontNeedLodashUnderscoreUnConfig(context)),
|
|
371
|
+
isLitEnabled && import("./lit-CWLCWg7T.js").then((m) => m.litUnConfig(context)),
|
|
372
|
+
isMochaEnabled && import("./mocha-BBBrcHaG.js").then((m) => m.mochaUnConfig(context)),
|
|
373
|
+
isQunitEnabled && import("./qunit-ChBioKQZ.js").then((m) => m.qunitUnConfig(context)),
|
|
374
|
+
isSecurityEnabled && import("./security-PbJLn1kF.js").then((m) => m.securityUnConfig(context)),
|
|
375
|
+
isPreferArrowFunctionsEnabled && import("./prefer-arrow-functions-C5X1W-I8.js").then((m) => m.preferArrowFunctionsUnConfig(context)),
|
|
376
|
+
isYamlEnabled && import("./yaml-B-uThQqc.js").then((m) => m.yamlUnConfig(context)),
|
|
377
|
+
isTomlEnabled && import("./toml-uRZYDMqE.js").then((m) => m.tomlUnConfig(context)),
|
|
378
|
+
isJsoncEnabled && import("./jsonc-VsURc7_q.js").then((m) => m.jsoncUnConfig(context)),
|
|
379
|
+
isPackageJsonEnabled && import("./package-json-D10ALS0p.js").then((m) => m.packageJsonUnConfig(context)),
|
|
380
|
+
isPerfectionistEnabled && import("./perfectionist-C2GQCwTD.js").then((m) => m.perfectionistUnConfig(context)),
|
|
381
|
+
isDeMorganEnabled && import("./de-morgan-BvI9u2JU.js").then((m) => m.deMorganUnConfig(context)),
|
|
382
|
+
isJsonSchemaValidatorEnabled && import("./json-schema-validator-CIbbq6ms.js").then((m) => m.jsonSchemaValidatorUnConfig(context)),
|
|
383
|
+
isCasePoliceEnabled && import("./case-police-CzA0_yqd.js").then((m) => m.casePoliceUnConfig(context)),
|
|
384
|
+
isNodeDependenciesEnabled && import("./node-dependencies-5L3kX15N.js").then((m) => m.nodeDependenciesUnConfig(context)),
|
|
385
|
+
isDependEnabled && import("./depend-CkaeQ7NU.js").then((m) => m.dependUnConfig(context)),
|
|
386
|
+
isErasableSyntaxOnlyEnabled && import("./erasable-syntax-only-PqPn-iKr.js").then((m) => m.erasableSyntaxOnlyUnConfig(context)),
|
|
387
|
+
isCspellEnabled && import("./cspell-en5zKMuG.js").then((m) => m.cspellUnConfig(context)),
|
|
388
|
+
isEslintPluginEnabled && import("./eslint-plugin-oxlwv_zT.js").then((m) => m.eslintPluginUnConfig(context)),
|
|
389
|
+
isFileProgressEnabled && import("./file-progress-BnGe-FnU.js").then((m) => m.fileProgressUnConfig(context)),
|
|
390
|
+
isNoOnlyTestsEnabled && import("./no-only-tests-BWkgOtX3.js").then((m) => m.noOnlyTestsUnConfig(context)),
|
|
391
|
+
isCompatEnabled && import("./compat-Kb2PzGdh.js").then((m) => m.compatUnConfig(context)),
|
|
392
|
+
isWebComponentsEnabled && import("./web-components-sWAsbN4G.js").then((m) => m.webComponentsUnConfig(context)),
|
|
393
|
+
isHeaderEnabled && import("./header-BW6ZNYYC.js").then((m) => m.headerUnConfig(context)),
|
|
394
|
+
isHeadersEnabled && import("./headers-5YAcu99p.js").then((m) => m.headerUnConfig(context)),
|
|
395
395
|
tsEslintConfigResult,
|
|
396
|
-
isEsEnabled && import("./es-
|
|
396
|
+
isEsEnabled && import("./es-DbNQGUeG.js").then((m) => m.esUnConfig(context)),
|
|
397
397
|
vueEslintConfigResult,
|
|
398
398
|
astroEslintConfigResult,
|
|
399
|
-
isAngularEnabled && import("./angular-
|
|
399
|
+
isAngularEnabled && import("./angular-BsqeEap6.js").then((m) => m.angularUnConfig(context)),
|
|
400
400
|
svelteEslintConfigResult,
|
|
401
|
-
isGraphqlEnabled && import("./graphql-
|
|
402
|
-
isMarkdownEnabled && import("./markdown-
|
|
401
|
+
isGraphqlEnabled && import("./graphql-UQg5YljO.js").then((m) => m.graphqlUnConfig(context)),
|
|
402
|
+
isMarkdownEnabled && import("./markdown-CQqwAQFO.js").then((m) => m.markdownUnConfig(context)),
|
|
403
403
|
rootConfigBuilder,
|
|
404
|
-
isCliEnabled && import("./cli-
|
|
405
|
-
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-
|
|
404
|
+
isCliEnabled && import("./cli-B_0Ayd2B.js").then((m) => m.cliUnConfig(context)),
|
|
405
|
+
isCloudfrontFunctionsEnabled && import("./cloudfront-functions-DWtJmPnv.js").then((m) => m.cloudfrontFunctionsEslintConfig(context)),
|
|
406
406
|
...extraConfigs.map((config, configIndex) => ({
|
|
407
407
|
...omit(config, ["rules"]),
|
|
408
408
|
...config.rules && { rules: resolveOverrides(context, config.rules) },
|
|
409
409
|
name: genFlatConfigEntryName(`extra-config/${config.name || `unnamed${configIndex}`}`)
|
|
410
410
|
})),
|
|
411
|
-
isNoStylisticRulesEnabled && import("./no-stylistic-rules-
|
|
411
|
+
isNoStylisticRulesEnabled && import("./no-stylistic-rules-XUdiId83.js").then((m) => m.noStylisticRulesUnConfig(context)),
|
|
412
412
|
disablePrettierIncompatibleRules && interopDefault(import("eslint-config-prettier")).then((eslintConfigPrettier) => ({
|
|
413
413
|
name: genFlatConfigEntryName("eslint-config-prettier"),
|
|
414
414
|
rules: Object.fromEntries(Object.entries(eslintConfigPrettier.rules).filter(([k]) => !RULES_NOT_TO_DISABLE_IN_CONFIG_PRETTIER.has(k)))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ERROR, GLOB_JS_TS_X_EXTENSION, GLOB_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, pluginsLoaders } from "./eslint-
|
|
2
|
-
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-
|
|
1
|
+
import { ERROR, GLOB_JS_TS_X_EXTENSION, GLOB_TS_X_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder, doesPackageExist, pluginsLoaders } from "./eslint-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-CrDsezf6.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jest.ts
|
|
5
5
|
const jestUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, WARNING, assignDefaults, createConfigBuilder, fetchPackageInfo, getKeysOfTruthyValues } from "./eslint-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/js.ts
|
|
4
4
|
const jsUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { GLOB_HTML_ALL, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, pluginsLoaders } from "./eslint-DeOf7WeA.js";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/js-inline.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ERROR, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_TSX, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/jsdoc.ts
|
|
4
4
|
const jsdocUnConfig = (context) => {
|
|
5
5
|
const optionsRaw = context.rootOptions.configs?.jsdoc;
|
|
6
6
|
const optionsResolved = assignDefaults(optionsRaw, { configTypescript: context.configsMeta.ts.enabled });
|
|
7
|
-
const { settings: pluginSettings, configTypescript, extraMultilineCommentsStartingWithToIgnore } = optionsResolved;
|
|
7
|
+
const { settings: pluginSettings, configTypescript, customTags, extraMultilineCommentsStartingWithToIgnore } = optionsResolved;
|
|
8
8
|
const configBuilder = createConfigBuilder(context, optionsResolved, "jsdoc");
|
|
9
9
|
configBuilder?.addConfig(["jsdoc", {
|
|
10
10
|
includeDefaultFilesAndIgnores: true,
|
|
11
11
|
doNotIgnoreHtml: true
|
|
12
|
-
}], { ...pluginSettings && { settings: { jsdoc: pluginSettings } } }).addRule("check-access", ERROR).addRule("check-alignment", ERROR).addRule("check-examples", OFF).addRule("check-indentation", ERROR).addRule("check-line-alignment", ERROR).addRule("check-param-names", ERROR).addRule("check-property-names", ERROR).addRule("check-syntax", ERROR).addRule("check-tag-names", ERROR).addRule("check-template-names", ERROR).addRule("check-types", ERROR).addRule("check-values", ERROR).addRule("convert-to-jsdoc-comments", OFF).addRule("empty-tags", ERROR).addRule("implements-on-classes", ERROR).addRule("imports-as-dependencies", OFF).addRule("informative-docs", OFF).addRule("lines-before-block", ERROR).addRule("match-description", OFF).addRule("match-name", OFF).addRule("multiline-blocks", ERROR).addRule("no-bad-blocks", ERROR, [{ ignore: [
|
|
12
|
+
}], { ...pluginSettings && { settings: { jsdoc: pluginSettings } } }).addRule("check-access", ERROR).addRule("check-alignment", ERROR).addRule("check-examples", OFF).addRule("check-indentation", ERROR).addRule("check-line-alignment", ERROR).addRule("check-param-names", ERROR).addRule("check-property-names", ERROR).addRule("check-syntax", ERROR).addRule("check-tag-names", ERROR, customTags?.length ? [{ definedTags: customTags }] : []).addRule("check-template-names", ERROR).addRule("check-types", ERROR).addRule("check-values", ERROR).addRule("convert-to-jsdoc-comments", OFF).addRule("empty-tags", ERROR).addRule("implements-on-classes", ERROR).addRule("imports-as-dependencies", OFF).addRule("informative-docs", OFF).addRule("lines-before-block", ERROR).addRule("match-description", OFF).addRule("match-name", OFF).addRule("multiline-blocks", ERROR).addRule("no-bad-blocks", ERROR, [{ ignore: [
|
|
13
13
|
"ts-check",
|
|
14
14
|
"ts-expect-error",
|
|
15
15
|
"ts-ignore",
|
|
@@ -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-DeOf7WeA.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES, TOML_DEFAULT_FILES, YAML_DEFAULT_FILES } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { JSONC_DEFAULT_FILES } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-Dw8nWdS4.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_EMBEDDED_CODE_BLOCKS } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { generateDefaultTestFiles } from "./shared-CrDsezf6.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/no-only-tests.ts
|
|
5
5
|
const noOnlyTestsUnConfig = (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, OFF, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DTmsIPGF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/node-dependencies.ts
|
|
5
5
|
const nodeDependenciesUnConfig = async (context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_PACKAGE_JSON, OFF, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_PACKAGE_JSON, OFF, assignDefaults, createConfigBuilder, getKeysOfTruthyValues, interopDefault } from "./eslint-DeOf7WeA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/package-json.ts
|
|
4
4
|
const DEFAULT_FILES_PACKAGE_JSON = [GLOB_PACKAGE_JSON];
|
|
@@ -22,10 +22,11 @@ const packageJsonUnConfig = async (context) => {
|
|
|
22
22
|
const optionsRaw = context.rootOptions.configs?.packageJson;
|
|
23
23
|
const optionsResolved = assignDefaults(optionsRaw, {
|
|
24
24
|
configPublishedPackageJson: true,
|
|
25
|
+
enforceAbsoluteVersion: false,
|
|
25
26
|
order: "sort-package-json",
|
|
26
27
|
repositoryShorthand: "object"
|
|
27
28
|
});
|
|
28
|
-
const { configPublishedPackageJson, order, repositoryShorthand } = optionsResolved;
|
|
29
|
+
const { configPublishedPackageJson, enforceAbsoluteVersion, order, repositoryShorthand } = optionsResolved;
|
|
29
30
|
const optionsPublishedPackageJsonResolved = assignDefaults(configPublishedPackageJson, {});
|
|
30
31
|
const getRequiredFields = (isPublishedPackageJson = false) => ({
|
|
31
32
|
...isPublishedPackageJson && {
|
|
@@ -44,7 +45,10 @@ const packageJsonUnConfig = async (context) => {
|
|
|
44
45
|
}], { languageOptions: { parser: jsoncEslintParser } }).addRule("no-empty-fields", ERROR).addRule("no-redundant-files", ERROR).addRule("order-properties", ERROR, [{ order }]).addRule("repository-shorthand", ERROR, [{ form: repositoryShorthand }]).addRule("require-author", getRequireFieldSeverity("author")).addRule("require-description", getRequireFieldSeverity("description")).addRule("require-engines", getRequireFieldSeverity("engines")).addRule("require-files", getRequireFieldSeverity("files")).addRule("require-keywords", getRequireFieldSeverity("keywords")).addRule("require-name", getRequireFieldSeverity("name")).addRule("require-type", getRequireFieldSeverity("type")).addRule("require-types", getRequireFieldSeverity("types")).addRule("require-version", getRequireFieldSeverity("version")).addRule("restrict-dependency-ranges", OFF).addRule("sort-collections", ERROR, [getKeysOfTruthyValues({
|
|
45
46
|
...DEFAULT_COLLECTIONS_TO_SORT,
|
|
46
47
|
...optionsResolved.collectionsToSort
|
|
47
|
-
})]).addRule("unique-dependencies", ERROR).addRule("valid-author", ERROR).addRule("valid-bin", ERROR, [{ enforceCase: true }]).addRule("valid-bundleDependencies", ERROR).addRule("valid-license", ERROR).addRule("valid-name", ERROR).addRule("valid-repository-directory", ERROR).addRule("valid-scripts", ERROR).addRule("valid-type", ERROR).addRule("valid-version", ERROR).
|
|
48
|
+
})]).addRule("unique-dependencies", ERROR).addRule("valid-author", ERROR).addRule("valid-bin", ERROR, [{ enforceCase: true }]).addRule("valid-bundleDependencies", ERROR).addRule("valid-license", ERROR).addRule("valid-name", ERROR).addRule("valid-repository-directory", ERROR).addRule("valid-scripts", ERROR).addRule("valid-type", ERROR).addRule("valid-version", ERROR).addAnyRule("node-dependencies", "absolute-version", enforceAbsoluteVersion ? ERROR : OFF, enforceAbsoluteVersion ? [enforceAbsoluteVersion === true ? {
|
|
49
|
+
optionalDependencies: "ignore",
|
|
50
|
+
peerDependencies: "ignore"
|
|
51
|
+
} : enforceAbsoluteVersion] : []).addOverrides();
|
|
48
52
|
const configBuilderPublishedPackageJson = createConfigBuilder(context, configPublishedPackageJson, "package-json");
|
|
49
53
|
configBuilder?.addConfig(["package-json/published", {
|
|
50
54
|
includeDefaultFilesAndIgnores: true,
|
|
@@ -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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { TOML_DEFAULT_FILES } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateConsistentTestItOptions, generateDefaultTestFiles } from "./shared-CrDsezf6.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-DeOf7WeA.js";
|
|
2
|
+
import { noRestrictedHtmlElementsDefault } from "./shared-CrDsezf6.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-DeOf7WeA.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-DeOf7WeA.js";
|
|
2
|
+
import { YAML_DEFAULT_FILES } from "./shared-CrDsezf6.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-DeOf7WeA.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-pMddPZZH.js
DELETED