eslint-config-un 1.0.0-alpha.20 → 1.0.0-alpha.21
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 +5 -0
- package/dist/{angular-cWftUPrZ.js → angular-DLww0Y26.js} +1 -1
- package/dist/{astro-CvR9K0gV.js → astro-D8AZOhD0.js} +2 -2
- package/dist/{ava-SLDP66eK.js → ava-BYX2fcQY.js} +2 -2
- package/dist/{better-tailwind-azPYeaEn.js → better-tailwind-LB2ljC-O.js} +1 -1
- package/dist/{case-police-DBwLQOVl.js → case-police-D13FaTSd.js} +1 -1
- package/dist/{cli-BzQFfgVw.js → cli-CcfEmvXz.js} +1 -1
- package/dist/{cloudfront-functions-BVhErVDp.js → cloudfront-functions-cQwLXILe.js} +2 -2
- package/dist/{compat-B93yCNFB.js → compat-C20wxEDx.js} +1 -1
- package/dist/{cspell-Bm6iyjh-.js → cspell-k2hge3_L.js} +1 -1
- package/dist/{css-DTwag5G6.js → css-DnjE8VYB.js} +1 -1
- package/dist/{css-in-js-DycfdUwQ.js → css-in-js-2f-NPkCZ.js} +1 -1
- package/dist/{cypress-9Xn3n9ew.js → cypress-dTklacpF.js} +2 -2
- package/dist/{de-morgan-Cz-bumEx.js → de-morgan-CkTTseh9.js} +1 -1
- package/dist/{depend-Ui3Jv1M-.js → depend-DF_bzszc.js} +2 -2
- package/dist/{ember-BdN_N0Pf.js → ember-D-f7y64Z.js} +2 -2
- package/dist/{erasable-syntax-only-BTwpy-N9.js → erasable-syntax-only-DO7IYLUE.js} +1 -1
- package/dist/es-B8Qglwrl.js +4 -0
- package/dist/{es-CvoaEvOg.js → es-D5FpQ6s2.js} +1 -1
- package/dist/{eslint-CA-T1mGF.js → eslint-EtXkypa0.js} +13 -1
- package/dist/{eslint-comments-DSK3-cG0.js → eslint-comments-B2NDQ6Kh.js} +1 -1
- package/dist/{eslint-plugin-DOzBdVRJ.js → eslint-plugin-BFVOS_CU.js} +2 -2
- package/dist/{file-progress-BdKBYflw.js → file-progress-DKuRv3KA.js} +1 -1
- package/dist/{graphql-ny5sliuQ.js → graphql-CLSJvIBB.js} +1 -1
- package/dist/header-vBG1QPuB.js +22 -0
- package/dist/headers-_T6ZZ792.js +17 -0
- package/dist/{html-hhlV3C4E.js → html-DvowoBtt.js} +1 -1
- package/dist/{import-Dii1B5QQ.js → import-BNB3_kr8.js} +1 -1
- package/dist/index.d.ts +485 -2
- package/dist/index.js +76 -70
- package/dist/{jest-CNiSTRCJ.js → jest-DXuBRg2K.js} +2 -2
- package/dist/{js-inline-Uj2v6w_c.js → js-inline-DHgBTs8h.js} +1 -1
- package/dist/{js-DccveTXD.js → js-n4mP1pir.js} +1 -1
- package/dist/{jsdoc-C3vt6uPV.js → jsdoc-BC7BXZYT.js} +1 -1
- package/dist/{json-schema-validator-j937NQr1.js → json-schema-validator-BxmD6Vz6.js} +2 -2
- package/dist/{jsonc-DW59DXwo.js → jsonc-D6R1JIdW.js} +2 -2
- package/dist/{jsx-a11y-V0-wCeTY.js → jsx-a11y-Bh20kYfb.js} +1 -1
- package/dist/{lit-CmcOg2hP.js → lit-CUt2rqE7.js} +2 -2
- package/dist/{markdown-Cysb9zfR.js → markdown-CGmZKpwf.js} +2 -2
- package/dist/{math-CTy57jGy.js → math-CJAXFvhL.js} +1 -1
- package/dist/{mdx-CbN8DxRF.js → mdx-DId9JwCi.js} +2 -2
- package/dist/{mocha-B7F8FRRw.js → mocha-B8H-483k.js} +2 -2
- package/dist/{nextjs-BpQlzj5U.js → nextjs-B-EHoXRb.js} +1 -1
- package/dist/{no-only-tests-DNt2xV5N.js → no-only-tests-DbqqmDPO.js} +2 -2
- package/dist/{no-stylistic-rules-B7ZIDLFp.js → no-stylistic-rules-C99vLoel.js} +29 -1
- package/dist/{no-unsanitized-n86JZvL7.js → no-unsanitized-BFbI_1Hg.js} +1 -1
- package/dist/{node-dependencies-B0HdPYFH.js → node-dependencies-BbirEtUQ.js} +2 -2
- package/dist/{node-Dy2Mgs0k.js → node-m7t6KkNy.js} +1 -1
- package/dist/package-json-DRCBe_2x.js +4 -0
- package/dist/{package-json-DiWZz25w.js → package-json-DgJi0RBN.js} +1 -1
- package/dist/{perfectionist-DlbX4_pk.js → perfectionist-Dj33PTfD.js} +1 -1
- package/dist/{playwright-19BGSIHO.js → playwright--uPmQewp.js} +2 -2
- package/dist/{pnpm-BItaSLlf.js → pnpm-CTgl-IZK.js} +1 -1
- package/dist/{prefer-arrow-functions-DoXDp5_p.js → prefer-arrow-functions-CTTOlwMn.js} +1 -1
- package/dist/{promise-uLyVQGSa.js → promise-CzfqFGAu.js} +1 -1
- package/dist/{qunit-CGut-G_3.js → qunit-DABfK18H.js} +2 -2
- package/dist/{qwik-CSE-ydoQ.js → qwik-CPtk4AmI.js} +1 -1
- package/dist/{react-DwOfoJ5v.js → react-BtoK89g2.js} +2 -2
- package/dist/{regexp-C5Mt8Vt1.js → regexp-wD1bWyBG.js} +1 -1
- package/dist/{security-K1j49Qbg.js → security-D5_Gp8kh.js} +1 -1
- package/dist/{shared-CjK2SSQm.js → shared-CH_yLc7K.js} +1 -1
- package/dist/{solid-DFFYo2kB.js → solid-B1O3gGSb.js} +1 -1
- package/dist/{sonar-i6RwbYTO.js → sonar-DSLDNNZ0.js} +1 -1
- package/dist/{storybook-Dnevld2C.js → storybook-BjLNx6eG.js} +1 -1
- package/dist/{svelte-IexC5os1.js → svelte-CZM7IxKh.js} +2 -2
- package/dist/{tailwind-DGPH66UZ.js → tailwind-lrOEqaW1.js} +1 -1
- package/dist/{tanstack-query-C5mBd_2E.js → tanstack-query-1XofMMVk.js} +1 -1
- package/dist/{testing-library-B-Lni31b.js → testing-library-Cp9_qES-.js} +2 -2
- package/dist/{toml-CNAA7_2c.js → toml-BE1KCWVS.js} +2 -2
- package/dist/{ts-ByImKELq.js → ts-B2ArqOV5.js} +1 -1
- package/dist/{turbo-D20dzRT0.js → turbo-QGclpMqa.js} +1 -1
- package/dist/{unicorn-V52iQY8k.js → unicorn-D8gfj0uM.js} +1 -1
- package/dist/{unused-imports-C-W5w88w.js → unused-imports-BeJkq73w.js} +1 -1
- package/dist/{vitest-DvFjyQsm.js → vitest-DaczRodo.js} +2 -2
- package/dist/{vue-VVN9O93f.js → vue-BI-r9DOJ.js} +18 -5
- package/dist/{web-components-BUdAzFGR.js → web-components-BOXrki7A.js} +1 -1
- package/dist/{yaml-DRDyOsl2.js → yaml-Bo9gZVkB.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-DsPbh8fD.js → you-dont-need-lodash-underscore-CdLskd-k.js} +3 -1
- package/package.json +16 -1
- package/dist/es-Bdl9Y-AD.js +0 -4
- package/dist/package-json-DI9Q5h6H.js +0 -4
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
63
63
|
| `@angular-eslint/template` | `@angular-eslint/eslint-plugin-template` |
|
|
64
64
|
| `@cspell` | `@cspell/eslint-plugin` |
|
|
65
65
|
| `@eslint-react` | `@eslint-react/eslint-plugin` |
|
|
66
|
+
| `@intlify/vue-i18n` | `@intlify/eslint-plugin-vue-i18n` |
|
|
66
67
|
| `@next/next` | `@next/eslint-plugin-next` |
|
|
67
68
|
| `@tanstack/query` | `@tanstack/eslint-plugin-query` |
|
|
68
69
|
| `astro` | `eslint-plugin-astro` |
|
|
@@ -75,6 +76,8 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
75
76
|
| `es` | `eslint-plugin-es-x` |
|
|
76
77
|
| `eslint-plugin` | `eslint-plugin-eslint-plugin` |
|
|
77
78
|
| `graphql` | `@graphql-eslint/eslint-plugin` |
|
|
79
|
+
| `header` | `eslint-plugin-header` |
|
|
80
|
+
| `headers` | `eslint-plugin-headers` |
|
|
78
81
|
| `jest-extended` | `eslint-plugin-jest-extended` |
|
|
79
82
|
| `jest` | `eslint-plugin-jest` |
|
|
80
83
|
| `perfectionist` | `eslint-plugin-perfectionist` |
|
|
@@ -311,6 +314,8 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
311
314
|
| `fileProgress` | ❌ | [eslint-plugin-file-progress](https://npmjs.com/eslint-plugin-file-progress) (`file-progress`) | Since v1.0.0<br>An ESlint plugin to print file progress |
|
|
312
315
|
| `compat` | ❌ | [eslint-plugin-compat](https://npmjs.com/eslint-plugin-compat) (`compat`) | Since v1.0.0 |
|
|
313
316
|
| `webComponents` | ❌ | [eslint-plugin-wc](https://npmjs.com/eslint-plugin-wc) (`wc`) | Since v1.0.0 |
|
|
317
|
+
| `header` | ❌ | [eslint-plugin-header](https://npmjs.com/eslint-plugin-header) (`header`) | Since v1.0.0 |
|
|
318
|
+
| `headers` | ❌ | [eslint-plugin-headers](https://npmjs.com/eslint-plugin-headers) (`headers`) | Since v1.0.0 |
|
|
314
319
|
|
|
315
320
|
## How to use
|
|
316
321
|
|
|
@@ -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-EtXkypa0.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-EtXkypa0.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-Bh20kYfb.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-EtXkypa0.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CH_yLc7K.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-EtXkypa0.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-EtXkypa0.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-EtXkypa0.js";
|
|
2
|
+
import { esUnConfig } from "./es-D5FpQ6s2.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-EtXkypa0.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-EtXkypa0.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CH_yLc7K.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-EtXkypa0.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DgJi0RBN.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-EtXkypa0.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-CH_yLc7K.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-EtXkypa0.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-EtXkypa0.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.21";
|
|
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";
|
|
@@ -251,6 +251,7 @@ var devDependencies = {
|
|
|
251
251
|
"@eslint-react/eslint-plugin": "1.52.2",
|
|
252
252
|
"@eslint/config-inspector": "1.1.0",
|
|
253
253
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
254
|
+
"@intlify/eslint-plugin-vue-i18n": "4.0.1",
|
|
254
255
|
"@jest/environment": "30.0.2",
|
|
255
256
|
"@jest/expect": "30.0.3",
|
|
256
257
|
"@next/eslint-plugin-next": "15.3.4",
|
|
@@ -282,6 +283,8 @@ var devDependencies = {
|
|
|
282
283
|
"eslint-plugin-erasable-syntax-only": "0.3.1",
|
|
283
284
|
"eslint-plugin-es-x": "8.7.0",
|
|
284
285
|
"eslint-plugin-eslint-plugin": "6.5.0",
|
|
286
|
+
"eslint-plugin-header": "3.1.1",
|
|
287
|
+
"eslint-plugin-headers": "1.3.3",
|
|
285
288
|
"eslint-plugin-jest": "29.0.1",
|
|
286
289
|
"eslint-plugin-jest-extended": "3.0.0",
|
|
287
290
|
"eslint-plugin-lit": "2.1.1",
|
|
@@ -330,6 +333,7 @@ var peerDependencies = {
|
|
|
330
333
|
"@cspell/eslint-plugin": "^9.1.2",
|
|
331
334
|
"@eslint-react/eslint-plugin": "^1.52.2",
|
|
332
335
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
336
|
+
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
|
|
333
337
|
"@next/eslint-plugin-next": "^15.3.3",
|
|
334
338
|
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
335
339
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
@@ -347,6 +351,8 @@ var peerDependencies = {
|
|
|
347
351
|
"eslint-plugin-erasable-syntax-only": "^0.3.1",
|
|
348
352
|
"eslint-plugin-es-x": "^8.7.0",
|
|
349
353
|
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
354
|
+
"eslint-plugin-header": "^3.1.1",
|
|
355
|
+
"eslint-plugin-headers": "^1.3.3",
|
|
350
356
|
"eslint-plugin-jest": "^29.0.1",
|
|
351
357
|
"eslint-plugin-jest-extended": "^3.0.0",
|
|
352
358
|
"eslint-plugin-lit": "^2.1.1",
|
|
@@ -385,6 +391,7 @@ var peerDependenciesMeta = {
|
|
|
385
391
|
"@cspell/eslint-plugin": { "optional": true },
|
|
386
392
|
"@eslint-react/eslint-plugin": { "optional": true },
|
|
387
393
|
"@graphql-eslint/eslint-plugin": { "optional": true },
|
|
394
|
+
"@intlify/eslint-plugin-vue-i18n": { "optional": true },
|
|
388
395
|
"@next/eslint-plugin-next": { "optional": true },
|
|
389
396
|
"@tanstack/eslint-plugin-query": { "optional": true },
|
|
390
397
|
"@vitest/eslint-plugin": { "optional": true },
|
|
@@ -401,6 +408,8 @@ var peerDependenciesMeta = {
|
|
|
401
408
|
"eslint-plugin-erasable-syntax-only": { "optional": true },
|
|
402
409
|
"eslint-plugin-es-x": { "optional": true },
|
|
403
410
|
"eslint-plugin-eslint-plugin": { "optional": true },
|
|
411
|
+
"eslint-plugin-header": { "optional": true },
|
|
412
|
+
"eslint-plugin-headers": { "optional": true },
|
|
404
413
|
"eslint-plugin-jest": { "optional": true },
|
|
405
414
|
"eslint-plugin-jest-extended": { "optional": true },
|
|
406
415
|
"eslint-plugin-lit": { "optional": true },
|
|
@@ -545,6 +554,7 @@ const pluginsLoaders = {
|
|
|
545
554
|
...genModuleLoader("@eslint-react/naming-convention", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react/naming-convention"])),
|
|
546
555
|
...genModuleLoader("@eslint-react/web-api", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react/web-api"])),
|
|
547
556
|
...genModuleLoader("@html-eslint", "@html-eslint/eslint-plugin", () => import("@html-eslint/eslint-plugin")),
|
|
557
|
+
...genModuleLoader("@intlify/vue-i18n", "@intlify/eslint-plugin-vue-i18n", () => import("@intlify/eslint-plugin-vue-i18n")),
|
|
548
558
|
...genModuleLoader("@next/next", "@next/eslint-plugin-next", () => import("@next/eslint-plugin-next")),
|
|
549
559
|
...genModuleLoader("@stylistic", "@stylistic", () => Promise.resolve(stylistic)),
|
|
550
560
|
...genModuleLoader("@tanstack/query", "@tanstack/eslint-plugin-query", () => import("@tanstack/eslint-plugin-query")),
|
|
@@ -564,6 +574,8 @@ const pluginsLoaders = {
|
|
|
564
574
|
...genModuleLoader("eslint-plugin", "eslint-plugin-eslint-plugin", () => import("eslint-plugin-eslint-plugin")),
|
|
565
575
|
...genModuleLoader("file-progress", "eslint-plugin-file-progress", () => import("eslint-plugin-file-progress")),
|
|
566
576
|
...genModuleLoader("graphql", "@graphql-eslint/eslint-plugin", () => import("@graphql-eslint/eslint-plugin")),
|
|
577
|
+
...genModuleLoader("header", "eslint-plugin-header", () => interopDefault(import("eslint-plugin-header")).then((m) => fixupPluginRules(m))),
|
|
578
|
+
...genModuleLoader("headers", "eslint-plugin-headers", () => interopDefault(import("eslint-plugin-headers"))),
|
|
567
579
|
...genModuleLoader("html", "eslint-plugin-html", () => import("eslint-plugin-html")),
|
|
568
580
|
...genModuleLoader("import", "eslint-plugin-import-x", () => import("eslint-plugin-import-x")),
|
|
569
581
|
...genModuleLoader("jest", "eslint-plugin-jest", () => import("eslint-plugin-jest")),
|
|
@@ -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-EtXkypa0.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-CH_yLc7K.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-EtXkypa0.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ERROR, assignDefaults, createConfigBuilder } from "./eslint-EtXkypa0.js";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/header.ts
|
|
4
|
+
const headerUnConfig = (context) => {
|
|
5
|
+
const optionsRaw = context.rootOptions.configs?.header;
|
|
6
|
+
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
7
|
+
const { options } = optionsResolved;
|
|
8
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "header");
|
|
9
|
+
configBuilder?.addConfig(["header", { includeDefaultFilesAndIgnores: true }]).addRule("header", ERROR, options ? "pathToFileWithComment" in options ? [options.pathToFileWithComment] : [
|
|
10
|
+
options.commentStyle ?? "block",
|
|
11
|
+
options.comment,
|
|
12
|
+
options.numberOfNewlinesAfterHeader ?? 1,
|
|
13
|
+
{ lineEndings: options.lineEndings }
|
|
14
|
+
] : []).addOverrides();
|
|
15
|
+
return {
|
|
16
|
+
configs: [configBuilder],
|
|
17
|
+
optionsResolved
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { headerUnConfig };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ERROR, assignDefaults, createConfigBuilder } from "./eslint-EtXkypa0.js";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/headers.ts
|
|
4
|
+
const headerUnConfig = (context) => {
|
|
5
|
+
const optionsRaw = context.rootOptions.configs?.headers;
|
|
6
|
+
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
7
|
+
const { options } = optionsResolved;
|
|
8
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "headers");
|
|
9
|
+
configBuilder?.addConfig(["headers", { includeDefaultFilesAndIgnores: true }]).addRule("header-format", ERROR, options ? [options] : []).addOverrides();
|
|
10
|
+
return {
|
|
11
|
+
configs: [configBuilder],
|
|
12
|
+
optionsResolved
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { headerUnConfig };
|
|
@@ -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-EtXkypa0.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-EtXkypa0.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|