eslint-config-un 1.0.0-alpha.26 → 1.0.0-alpha.27
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 -0
- package/dist/{angular-Dq8zO9dB.js → angular-CpkWQpd4.js} +1 -1
- package/dist/{astro-BaRlmNF6.js → astro-Bd2alkAK.js} +2 -2
- package/dist/{ava-D3yLeahA.js → ava-DMnMjVFC.js} +2 -2
- package/dist/{better-tailwind-DzZxncc8.js → better-tailwind-D4v7GLEA.js} +1 -1
- package/dist/{case-police-BSzfS2W7.js → case-police-CJKDDDoc.js} +1 -1
- package/dist/{cli-Cushz403.js → cli-6Fq0v4Hy.js} +1 -1
- package/dist/{cloudfront-functions-DKokMWat.js → cloudfront-functions-Ch5ilxkw.js} +2 -2
- package/dist/{compat-DXktPXNE.js → compat-DEia8nAs.js} +1 -1
- package/dist/{cspell-QSYltlut.js → cspell-NyfX53p_.js} +1 -1
- package/dist/{css-BW6brZjM.js → css-D7mdG5PT.js} +1 -1
- package/dist/{css-in-js-CLTLTmeY.js → css-in-js-Cs8gZLtL.js} +1 -1
- package/dist/{cypress-DBrfJDnp.js → cypress-DIz2aqOb.js} +2 -2
- package/dist/{de-morgan-D9xBhTVn.js → de-morgan-t-CfOoQ1.js} +1 -1
- package/dist/{depend-CLJBkgDT.js → depend-DQ_a0J_H.js} +2 -2
- package/dist/{ember-RljWgPhR.js → ember-C9865nAE.js} +2 -2
- package/dist/{erasable-syntax-only-BU9KylMC.js → erasable-syntax-only-BO5NkM2e.js} +1 -1
- package/dist/{es-Cm5ckJcr.js → es-Daq8rp8o.js} +1 -1
- package/dist/es-DrX0xoeV.js +4 -0
- package/dist/{eslint-2fjJ7RBH.js → eslint-DJ_Pn3rB.js} +90 -85
- package/dist/{eslint-comments-B0pBxJR2.js → eslint-comments-DX2bJk2Y.js} +1 -1
- package/dist/{eslint-plugin-DRtBWCio.js → eslint-plugin-C-YWFc2Z.js} +2 -2
- package/dist/{file-progress-D5WI6k4n.js → file-progress-C8TA5PTm.js} +1 -1
- package/dist/{graphql-Bk01L8bO.js → graphql-Dhnqv2ZS.js} +1 -1
- package/dist/{header-ClmcWxDe.js → header-Don_ez42.js} +1 -1
- package/dist/{headers-wGXkrUHS.js → headers-UIpF8WfG.js} +1 -1
- package/dist/{html-C8W14qFo.js → html-C8PFg48w.js} +1 -1
- package/dist/{import-Dbkzpx7U.js → import-DNoRiEZL.js} +1 -1
- package/dist/import-zod-BksBSQgU.js +16 -0
- package/dist/index.d.ts +36 -5
- package/dist/index.js +101 -95
- package/dist/{jest-B7iXpTGS.js → jest-DkDeipoM.js} +2 -2
- package/dist/{js-DfV1iflk.js → js-DzZNZ9Cy.js} +6 -3
- package/dist/{js-inline-ZLcEprqr.js → js-inline-DeY866NA.js} +1 -1
- package/dist/{jsdoc-DW4mcJmp.js → jsdoc-CYDUISAG.js} +1 -1
- package/dist/{json-schema-validator-BKVoof4q.js → json-schema-validator-CgBRQiVO.js} +2 -2
- package/dist/{jsonc-C3_AYHjK.js → jsonc-Co32FZ7a.js} +2 -2
- package/dist/{jsx-a11y-Dagqzdyc.js → jsx-a11y-DVtSZGEs.js} +1 -1
- package/dist/{lit-fE8Lw75C.js → lit-DXz7EUlf.js} +2 -2
- package/dist/{markdown-Dk503MoF.js → markdown-ofgLiFmd.js} +2 -2
- package/dist/{math-BzI-Z-re.js → math-DtZ2QJpv.js} +1 -1
- package/dist/{mdx-CxNqAUPg.js → mdx-yMgZ7Qzz.js} +2 -2
- package/dist/{mocha-B_iU5y8z.js → mocha-DXP66Sir.js} +2 -2
- package/dist/{nextjs-Ao2q1L59.js → nextjs-Cr1b_1ad.js} +1 -1
- package/dist/{no-only-tests-B7LnzANf.js → no-only-tests-Dph7ACc_.js} +2 -2
- package/dist/{no-stylistic-rules-Bgb4I9pG.js → no-stylistic-rules-DWqklM4Q.js} +3 -1
- package/dist/{no-unsanitized-DtM6OvsX.js → no-unsanitized-DdFgEab7.js} +1 -1
- package/dist/{node-BLCg-jTm.js → node-B73tA_RH.js} +1 -1
- package/dist/{node-dependencies-G_bm1XND.js → node-dependencies-cDP4F9Fl.js} +2 -2
- package/dist/{nx-De7tCmxE.js → nx-Bf1kLZfO.js} +1 -1
- package/dist/package-json-DnqBTLQU.js +4 -0
- package/dist/{package-json-BAGQfoyv.js → package-json-X9SWBpXc.js} +1 -1
- package/dist/{perfectionist-DxkX19Tj.js → perfectionist-BliqGw4e.js} +1 -1
- package/dist/{playwright-B3E9lbgD.js → playwright-C_9hW5m7.js} +2 -2
- package/dist/{pnpm-D2awuBcF.js → pnpm-CjrteT3r.js} +1 -1
- package/dist/{prefer-arrow-functions-CNYgiEle.js → prefer-arrow-functions-LiZOIWnv.js} +1 -1
- package/dist/{promise-Bkulve4k.js → promise-2AB0cpe3.js} +1 -1
- package/dist/{qunit-CyxrH6YM.js → qunit-DeDd5_yZ.js} +2 -2
- package/dist/{qwik-CLL8LZae.js → qwik-ClYs-Zki.js} +1 -1
- package/dist/{react-CEXehnAx.js → react-B-V0OFii.js} +2 -2
- package/dist/{regexp-CXRITXXZ.js → regexp-DXf1WQjl.js} +1 -1
- package/dist/{rxjs-IRUzOhOt.js → rxjs-BMrP5-4c.js} +1 -1
- package/dist/{security-OQH0cnby.js → security-Bn6J4mFM.js} +1 -1
- package/dist/{shared-BVihMRB3.js → shared-Cwm6glag.js} +1 -1
- package/dist/{solid-CB60RVDP.js → solid-Bh5JUeiv.js} +1 -1
- package/dist/{sonar-DY4rrWbX.js → sonar-0iMStzlW.js} +1 -1
- package/dist/{storybook-wpR-LYHq.js → storybook-CQWouzwf.js} +1 -1
- package/dist/{svelte-CDgOAvYr.js → svelte-BN_UVorG.js} +2 -2
- package/dist/{tailwind-DKsNz_N1.js → tailwind-CMKO6q_k.js} +1 -1
- package/dist/{tanstack-query-BiDgBkzF.js → tanstack-query-Dz0JwzWw.js} +1 -1
- package/dist/{testing-library-ufQ3BWcB.js → testing-library-KwlaRgs0.js} +2 -2
- package/dist/{toml-vFdqp2r4.js → toml-dIvdC8HC.js} +2 -2
- package/dist/{ts-DKnHgl6F.js → ts-GVgp8ayG.js} +1 -1
- package/dist/{turbo-cp_yD5n0.js → turbo-w5X1_1uH.js} +1 -1
- package/dist/{un-e6YGFfpk.js → un-BZtO5kw_.js} +1 -1
- package/dist/{unicorn-ClODEp4P.js → unicorn-CODx9T1Y.js} +1 -1
- package/dist/{unused-imports-B-xetUjw.js → unused-imports-DtdpZOD1.js} +1 -1
- package/dist/{vitest-CxNJUlgg.js → vitest-HnMIjmNh.js} +2 -2
- package/dist/{vue-B5eg2U4l.js → vue-DSq8wFVz.js} +2 -2
- package/dist/{web-components-C4rQ5mMD.js → web-components-CzvuX834.js} +1 -1
- package/dist/{yaml-SiE_57If.js → yaml-ClFB2HNi.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-hK3sc5UN.js → you-dont-need-lodash-underscore-DDmuX6qN.js} +1 -1
- package/package.json +8 -3
- package/dist/es-WzLEpPLR.js +0 -4
- package/dist/package-json-DcEoAXVE.js +0 -4
- /package/dist/{plugin-un-C-6x8lEe.js → plugin-un-DuedApvZ.js} +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/index.d.cts +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/constants.d.ts +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/constants.js +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/constants.js.map +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/helpers.d.ts +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/helpers.js +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/helpers.js.map +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/index.cjs +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/index.d.ts +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/index.js +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/lib/index.js.map +0 -0
- /package/node_modules/{@pkgr → synckit/node_modules/@pkgr}/core/package.json +0 -0
package/README.md
CHANGED
|
@@ -306,6 +306,7 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
306
306
|
|  `youDontNeedLodashUnderscore` | ✅ (`lodash`, `lodash-es` or `lodash.*` is installed) | [eslint-plugin-you-dont-need-lodash-underscore](https://npmjs.com/eslint-plugin-you-dont-need-lodash-underscore) (`you-dont-need-lodash-underscore`) | Since v1.0.0 |
|
|
307
307
|
|  `rxjs` | ✅ (`rxjs` is installed) | [@smarttools/eslint-plugin-rxjs](https://npmjs.com/@smarttools/eslint-plugin-rxjs) (`rxjs`) | Since v1.0.0 |
|
|
308
308
|
|  `nx` | ✅ (`nx` is installed) | [@nx/eslint-plugin](https://npmjs.com/@nx/eslint-plugin) (`nx`) | Since v1.0.0 |
|
|
309
|
+
| `importZod` | ✅ (`zod` and `next` are installed) | [eslint-plugin-import-zod](https://npmjs.com/eslint-plugin-import-zod) (`import-zod`) | Enforces namespace imports for `zod`<br>Since v1.0.0 |
|
|
309
310
|
|
|
310
311
|
### Miscellaneous
|
|
311
312
|
|
|
@@ -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-DJ_Pn3rB.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-DJ_Pn3rB.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-DVtSZGEs.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-DJ_Pn3rB.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-Cwm6glag.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-DJ_Pn3rB.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-DJ_Pn3rB.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-DJ_Pn3rB.js";
|
|
2
|
+
import { esUnConfig } from "./es-Daq8rp8o.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-DJ_Pn3rB.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-DJ_Pn3rB.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-Cwm6glag.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-DJ_Pn3rB.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-X9SWBpXc.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-DJ_Pn3rB.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-Cwm6glag.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-DJ_Pn3rB.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-DJ_Pn3rB.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -122,6 +122,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
122
122
|
...CHECKED_LODASH_METHODS.map((method) => `lodash.${method}`),
|
|
123
123
|
"rxjs",
|
|
124
124
|
"nx",
|
|
125
|
+
"zod",
|
|
125
126
|
"astro",
|
|
126
127
|
"vue",
|
|
127
128
|
"react",
|
|
@@ -138,7 +139,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
138
139
|
//#endregion
|
|
139
140
|
//#region package.json
|
|
140
141
|
var name = "eslint-config-un";
|
|
141
|
-
var version = "1.0.0-alpha.
|
|
142
|
+
var version = "1.0.0-alpha.27";
|
|
142
143
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
143
144
|
var keywords = ["eslint", "eslint-config"];
|
|
144
145
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -255,7 +256,7 @@ var devDependencies = {
|
|
|
255
256
|
"@eslint-react/eslint-plugin": "1.52.3",
|
|
256
257
|
"@eslint/config-inspector": "1.1.0",
|
|
257
258
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
258
|
-
"@intlify/eslint-plugin-vue-i18n": "4.0
|
|
259
|
+
"@intlify/eslint-plugin-vue-i18n": "4.1.0",
|
|
259
260
|
"@jest/environment": "30.0.5",
|
|
260
261
|
"@jest/expect": "30.0.5",
|
|
261
262
|
"@next/eslint-plugin-next": "15.4.4",
|
|
@@ -293,6 +294,7 @@ var devDependencies = {
|
|
|
293
294
|
"eslint-plugin-eslint-plugin": "6.5.0",
|
|
294
295
|
"eslint-plugin-header": "3.1.1",
|
|
295
296
|
"eslint-plugin-headers": "1.3.3",
|
|
297
|
+
"eslint-plugin-import-zod": "1.2.0",
|
|
296
298
|
"eslint-plugin-jest": "29.0.1",
|
|
297
299
|
"eslint-plugin-jest-extended": "3.0.0",
|
|
298
300
|
"eslint-plugin-lit": "2.1.1",
|
|
@@ -345,7 +347,7 @@ var peerDependencies = {
|
|
|
345
347
|
"@cspell/eslint-plugin": "^9.2.0",
|
|
346
348
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
347
349
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
348
|
-
"@intlify/eslint-plugin-vue-i18n": "^4.0
|
|
350
|
+
"@intlify/eslint-plugin-vue-i18n": "^4.1.0",
|
|
349
351
|
"@next/eslint-plugin-next": "^15.4.4",
|
|
350
352
|
"@nx/eslint-plugin": "^21.3.7",
|
|
351
353
|
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
@@ -367,6 +369,7 @@ var peerDependencies = {
|
|
|
367
369
|
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
368
370
|
"eslint-plugin-header": "^3.1.1",
|
|
369
371
|
"eslint-plugin-headers": "^1.3.3",
|
|
372
|
+
"eslint-plugin-import-zod": "^1.2.0",
|
|
370
373
|
"eslint-plugin-jest": "^29.0.1",
|
|
371
374
|
"eslint-plugin-jest-extended": "^3.0.0",
|
|
372
375
|
"eslint-plugin-lit": "^2.1.1",
|
|
@@ -427,6 +430,7 @@ var peerDependenciesMeta = {
|
|
|
427
430
|
"eslint-plugin-eslint-plugin": { "optional": true },
|
|
428
431
|
"eslint-plugin-header": { "optional": true },
|
|
429
432
|
"eslint-plugin-headers": { "optional": true },
|
|
433
|
+
"eslint-plugin-import-zod": { "optional": true },
|
|
430
434
|
"eslint-plugin-jest": { "optional": true },
|
|
431
435
|
"eslint-plugin-jest-extended": { "optional": true },
|
|
432
436
|
"eslint-plugin-lit": { "optional": true },
|
|
@@ -556,96 +560,97 @@ function genModuleLoader(property, packageName, module, ignoreErrors) {
|
|
|
556
560
|
return { [property]: loader };
|
|
557
561
|
}
|
|
558
562
|
const pluginsLoaders = {
|
|
559
|
-
...genModuleLoader("@angular-eslint", "@angular-eslint/eslint-plugin", () => import("@angular-eslint/eslint-plugin")),
|
|
560
|
-
...genModuleLoader("@angular-eslint/template", "@angular-eslint/eslint-plugin-template", () => import("@angular-eslint/eslint-plugin-template")),
|
|
561
|
-
...genModuleLoader("@cspell", "@cspell/eslint-plugin", () => import("@cspell/eslint-plugin")),
|
|
562
|
-
...genModuleLoader("@eslint-community/eslint-comments", "@eslint-community/eslint-plugin-eslint-comments", () => import("@eslint-community/eslint-plugin-eslint-comments")),
|
|
563
|
+
...genModuleLoader("@angular-eslint", "@angular-eslint/eslint-plugin", () => interopDefault(import("@angular-eslint/eslint-plugin"))),
|
|
564
|
+
...genModuleLoader("@angular-eslint/template", "@angular-eslint/eslint-plugin-template", () => interopDefault(import("@angular-eslint/eslint-plugin-template"))),
|
|
565
|
+
...genModuleLoader("@cspell", "@cspell/eslint-plugin", () => interopDefault(import("@cspell/eslint-plugin"))),
|
|
566
|
+
...genModuleLoader("@eslint-community/eslint-comments", "@eslint-community/eslint-plugin-eslint-comments", () => interopDefault(import("@eslint-community/eslint-plugin-eslint-comments"))),
|
|
563
567
|
...genModuleLoader("@eslint-react", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react"])),
|
|
564
568
|
...genModuleLoader("@eslint-react/debug", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react/debug"])),
|
|
565
569
|
...genModuleLoader("@eslint-react/dom", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react/dom"])),
|
|
566
570
|
...genModuleLoader("@eslint-react/hooks-extra", "@eslint-react/eslint-plugin", () => interopDefault(import("@eslint-react/eslint-plugin")).then((m) => m.configs.all.plugins["@eslint-react/hooks-extra"])),
|
|
567
571
|
...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"])),
|
|
568
572
|
...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"])),
|
|
569
|
-
...genModuleLoader("@html-eslint", "@html-eslint/eslint-plugin", () => import("@html-eslint/eslint-plugin")),
|
|
570
|
-
...genModuleLoader("@intlify/vue-i18n", "@intlify/eslint-plugin-vue-i18n", () => import("@intlify/eslint-plugin-vue-i18n")),
|
|
571
|
-
...genModuleLoader("@next/next", "@next/eslint-plugin-next", () => import("@next/eslint-plugin-next")),
|
|
573
|
+
...genModuleLoader("@html-eslint", "@html-eslint/eslint-plugin", () => interopDefault(import("@html-eslint/eslint-plugin"))),
|
|
574
|
+
...genModuleLoader("@intlify/vue-i18n", "@intlify/eslint-plugin-vue-i18n", () => interopDefault(import("@intlify/eslint-plugin-vue-i18n"))),
|
|
575
|
+
...genModuleLoader("@next/next", "@next/eslint-plugin-next", () => interopDefault(import("@next/eslint-plugin-next"))),
|
|
572
576
|
...genModuleLoader("@stylistic", "@stylistic", () => Promise.resolve(stylistic)),
|
|
573
|
-
...genModuleLoader("@tanstack/query", "@tanstack/eslint-plugin-query", () => import("@tanstack/eslint-plugin-query")),
|
|
574
|
-
...genModuleLoader("astro", "eslint-plugin-astro", () => import("eslint-plugin-astro")),
|
|
575
|
-
...genModuleLoader("ava", "eslint-plugin-ava", () => import("eslint-plugin-ava")),
|
|
576
|
-
...genModuleLoader("better-tailwindcss", "eslint-plugin-better-tailwindcss", () => import("eslint-plugin-better-tailwindcss")),
|
|
577
|
-
...genModuleLoader("case-police", "eslint-plugin-case-police", () => import("eslint-plugin-case-police")),
|
|
578
|
-
...genModuleLoader("compat", "eslint-plugin-compat", () => import("eslint-plugin-compat")),
|
|
579
|
-
...genModuleLoader("css", "@eslint/css", () => import("@eslint/css")),
|
|
580
|
-
...genModuleLoader("css-in-js", "eslint-plugin-css", () => import("eslint-plugin-css")),
|
|
581
|
-
...genModuleLoader("cypress", "eslint-plugin-cypress", () => import("eslint-plugin-cypress")),
|
|
582
|
-
...genModuleLoader("de-morgan", "eslint-plugin-de-morgan", () => import("eslint-plugin-de-morgan")),
|
|
583
|
-
...genModuleLoader("depend", "eslint-plugin-depend", () => import("eslint-plugin-depend")),
|
|
584
|
-
...genModuleLoader("ember", "eslint-plugin-ember", () => import("eslint-plugin-ember")),
|
|
585
|
-
...genModuleLoader("erasable-syntax-only", "eslint-plugin-erasable-syntax-only", () => import("eslint-plugin-erasable-syntax-only")),
|
|
586
|
-
...genModuleLoader("es", "eslint-plugin-es-x", () => import("eslint-plugin-es-x")),
|
|
587
|
-
...genModuleLoader("eslint-plugin", "eslint-plugin-eslint-plugin", () => import("eslint-plugin-eslint-plugin")),
|
|
588
|
-
...genModuleLoader("file-progress", "eslint-plugin-file-progress", () => import("eslint-plugin-file-progress")),
|
|
589
|
-
...genModuleLoader("graphql", "@graphql-eslint/eslint-plugin", () => import("@graphql-eslint/eslint-plugin")),
|
|
590
|
-
...genModuleLoader("header", "eslint-plugin-header", () => interopDefault(import("eslint-plugin-header")).then(
|
|
577
|
+
...genModuleLoader("@tanstack/query", "@tanstack/eslint-plugin-query", () => interopDefault(import("@tanstack/eslint-plugin-query"))),
|
|
578
|
+
...genModuleLoader("astro", "eslint-plugin-astro", () => interopDefault(import("eslint-plugin-astro"))),
|
|
579
|
+
...genModuleLoader("ava", "eslint-plugin-ava", () => interopDefault(import("eslint-plugin-ava"))),
|
|
580
|
+
...genModuleLoader("better-tailwindcss", "eslint-plugin-better-tailwindcss", () => interopDefault(import("eslint-plugin-better-tailwindcss"))),
|
|
581
|
+
...genModuleLoader("case-police", "eslint-plugin-case-police", () => interopDefault(import("eslint-plugin-case-police"))),
|
|
582
|
+
...genModuleLoader("compat", "eslint-plugin-compat", () => interopDefault(import("eslint-plugin-compat"))),
|
|
583
|
+
...genModuleLoader("css", "@eslint/css", () => interopDefault(import("@eslint/css"))),
|
|
584
|
+
...genModuleLoader("css-in-js", "eslint-plugin-css", () => interopDefault(import("eslint-plugin-css"))),
|
|
585
|
+
...genModuleLoader("cypress", "eslint-plugin-cypress", () => interopDefault(import("eslint-plugin-cypress"))),
|
|
586
|
+
...genModuleLoader("de-morgan", "eslint-plugin-de-morgan", () => interopDefault(import("eslint-plugin-de-morgan"))),
|
|
587
|
+
...genModuleLoader("depend", "eslint-plugin-depend", () => interopDefault(import("eslint-plugin-depend"))),
|
|
588
|
+
...genModuleLoader("ember", "eslint-plugin-ember", () => interopDefault(import("eslint-plugin-ember"))),
|
|
589
|
+
...genModuleLoader("erasable-syntax-only", "eslint-plugin-erasable-syntax-only", () => interopDefault(import("eslint-plugin-erasable-syntax-only"))),
|
|
590
|
+
...genModuleLoader("es", "eslint-plugin-es-x", () => interopDefault(import("eslint-plugin-es-x"))),
|
|
591
|
+
...genModuleLoader("eslint-plugin", "eslint-plugin-eslint-plugin", () => interopDefault(import("eslint-plugin-eslint-plugin"))),
|
|
592
|
+
...genModuleLoader("file-progress", "eslint-plugin-file-progress", () => interopDefault(import("eslint-plugin-file-progress"))),
|
|
593
|
+
...genModuleLoader("graphql", "@graphql-eslint/eslint-plugin", () => interopDefault(import("@graphql-eslint/eslint-plugin"))),
|
|
594
|
+
...genModuleLoader("header", "eslint-plugin-header", () => interopDefault(import("eslint-plugin-header")).then(fixupPluginRules)),
|
|
591
595
|
...genModuleLoader("headers", "eslint-plugin-headers", () => interopDefault(import("eslint-plugin-headers"))),
|
|
592
|
-
...genModuleLoader("html", "eslint-plugin-html", () => import("eslint-plugin-html")),
|
|
593
|
-
...genModuleLoader("import", "eslint-plugin-import-x", () => import("eslint-plugin-import-x")),
|
|
594
|
-
...genModuleLoader("
|
|
595
|
-
...genModuleLoader("jest
|
|
596
|
-
...genModuleLoader("
|
|
597
|
-
...genModuleLoader("
|
|
598
|
-
...genModuleLoader("
|
|
599
|
-
...genModuleLoader("
|
|
600
|
-
...genModuleLoader("
|
|
601
|
-
...genModuleLoader("
|
|
602
|
-
...genModuleLoader("
|
|
603
|
-
...genModuleLoader("
|
|
604
|
-
...genModuleLoader("lit
|
|
605
|
-
...genModuleLoader("
|
|
606
|
-
...genModuleLoader("
|
|
607
|
-
...genModuleLoader("
|
|
608
|
-
...genModuleLoader("no-
|
|
609
|
-
...genModuleLoader("
|
|
610
|
-
...genModuleLoader("node
|
|
611
|
-
...genModuleLoader("
|
|
612
|
-
...genModuleLoader("
|
|
613
|
-
...genModuleLoader("
|
|
614
|
-
...genModuleLoader("
|
|
615
|
-
...genModuleLoader("
|
|
616
|
-
...genModuleLoader("
|
|
617
|
-
...genModuleLoader("
|
|
618
|
-
...genModuleLoader("
|
|
619
|
-
...genModuleLoader("
|
|
620
|
-
...genModuleLoader("
|
|
621
|
-
...genModuleLoader("
|
|
622
|
-
...genModuleLoader("
|
|
623
|
-
...genModuleLoader("react
|
|
624
|
-
...genModuleLoader("react-
|
|
625
|
-
...genModuleLoader("react-
|
|
626
|
-
...genModuleLoader("react-
|
|
627
|
-
...genModuleLoader("
|
|
628
|
-
...genModuleLoader("
|
|
629
|
-
...genModuleLoader("
|
|
630
|
-
...genModuleLoader("
|
|
631
|
-
...genModuleLoader("
|
|
632
|
-
...genModuleLoader("
|
|
633
|
-
...genModuleLoader("
|
|
634
|
-
...genModuleLoader("
|
|
635
|
-
...genModuleLoader("
|
|
636
|
-
...genModuleLoader("
|
|
637
|
-
...genModuleLoader("
|
|
638
|
-
...genModuleLoader("
|
|
639
|
-
...genModuleLoader("
|
|
640
|
-
...genModuleLoader("
|
|
641
|
-
...genModuleLoader("
|
|
642
|
-
...genModuleLoader("
|
|
643
|
-
...genModuleLoader("
|
|
644
|
-
...genModuleLoader("vue
|
|
645
|
-
...genModuleLoader("
|
|
646
|
-
...genModuleLoader("
|
|
647
|
-
...genModuleLoader("
|
|
648
|
-
...genModuleLoader("
|
|
596
|
+
...genModuleLoader("html", "eslint-plugin-html", () => interopDefault(import("eslint-plugin-html"))),
|
|
597
|
+
...genModuleLoader("import", "eslint-plugin-import-x", () => interopDefault(import("eslint-plugin-import-x"))),
|
|
598
|
+
...genModuleLoader("import-zod", "eslint-plugin-import-zod", () => interopDefault(import("eslint-plugin-import-zod"))),
|
|
599
|
+
...genModuleLoader("jest", "eslint-plugin-jest", () => interopDefault(import("eslint-plugin-jest"))),
|
|
600
|
+
...genModuleLoader("jest-extended", "eslint-plugin-jest-extended", () => interopDefault(import("eslint-plugin-jest-extended"))),
|
|
601
|
+
...genModuleLoader("jsdoc", "eslint-plugin-jsdoc", () => interopDefault(import("eslint-plugin-jsdoc"))),
|
|
602
|
+
...genModuleLoader("json-schema-validator", "eslint-plugin-json-schema-validator", () => interopDefault(import("eslint-plugin-json-schema-validator"))),
|
|
603
|
+
...genModuleLoader("jsonc", "eslint-plugin-jsonc", () => interopDefault(import("eslint-plugin-jsonc"))),
|
|
604
|
+
...genModuleLoader("jsx-a11y", "eslint-plugin-jsx-a11y", () => interopDefault(import("eslint-plugin-jsx-a11y"))),
|
|
605
|
+
...genModuleLoader("markdown", "@eslint/markdown", () => interopDefault(import("@eslint/markdown"))),
|
|
606
|
+
...genModuleLoader("mocha", "eslint-plugin-mocha", () => interopDefault(import("eslint-plugin-mocha"))),
|
|
607
|
+
...genModuleLoader("no-only-tests", "eslint-plugin-no-only-tests", () => interopDefault(import("eslint-plugin-no-only-tests"))),
|
|
608
|
+
...genModuleLoader("lit", "eslint-plugin-lit", () => interopDefault(import("eslint-plugin-lit"))),
|
|
609
|
+
...genModuleLoader("lit-a11y", "eslint-plugin-lit-a11y", () => interopDefault(import("eslint-plugin-lit-a11y"))),
|
|
610
|
+
...genModuleLoader("math", "eslint-plugin-math", () => interopDefault(import("eslint-plugin-math"))),
|
|
611
|
+
...genModuleLoader("mdx", "eslint-plugin-mdx", () => interopDefault(import("eslint-plugin-mdx"))),
|
|
612
|
+
...genModuleLoader("no-type-assertion", "eslint-plugin-no-type-assertion", () => interopDefault(import("eslint-plugin-no-type-assertion"))),
|
|
613
|
+
...genModuleLoader("no-unsanitized", "eslint-plugin-no-unsanitized", () => interopDefault(import("eslint-plugin-no-unsanitized"))),
|
|
614
|
+
...genModuleLoader("node", "eslint-plugin-n", () => interopDefault(import("eslint-plugin-n"))),
|
|
615
|
+
...genModuleLoader("node-dependencies", "eslint-plugin-node-dependencies", () => interopDefault(import("eslint-plugin-node-dependencies"))),
|
|
616
|
+
...genModuleLoader("nx", "@nx/eslint-plugin", () => interopDefault(import("@nx/eslint-plugin"))),
|
|
617
|
+
...genModuleLoader("package-json", "eslint-plugin-package-json", () => interopDefault(import("eslint-plugin-package-json"))),
|
|
618
|
+
...genModuleLoader("perfectionist", "eslint-plugin-perfectionist", () => interopDefault(import("eslint-plugin-perfectionist"))),
|
|
619
|
+
...genModuleLoader("pinia", "eslint-plugin-pinia", () => interopDefault(import("eslint-plugin-pinia"))),
|
|
620
|
+
...genModuleLoader("playwright", "eslint-plugin-playwright", () => interopDefault(import("eslint-plugin-playwright"))),
|
|
621
|
+
...genModuleLoader("pnpm", "eslint-plugin-pnpm", () => interopDefault(import("eslint-plugin-pnpm"))),
|
|
622
|
+
...genModuleLoader("prefer-arrow-functions", "eslint-plugin-prefer-arrow-functions", () => interopDefault(import("eslint-plugin-prefer-arrow-functions"))),
|
|
623
|
+
...genModuleLoader("prettier", "eslint-plugin-prettier", () => interopDefault(import("eslint-plugin-prettier"))),
|
|
624
|
+
...genModuleLoader("promise", "eslint-plugin-promise", () => interopDefault(import("eslint-plugin-promise"))),
|
|
625
|
+
...genModuleLoader("qunit", "eslint-plugin-qunit", () => interopDefault(import("eslint-plugin-qunit"))),
|
|
626
|
+
...genModuleLoader("qwik", "eslint-plugin-qwik", () => interopDefault(import("eslint-plugin-qwik")).then(fixupPluginRules)),
|
|
627
|
+
...genModuleLoader("react", "eslint-plugin-react", () => interopDefault(import("eslint-plugin-react"))),
|
|
628
|
+
...genModuleLoader("react-compiler", "eslint-plugin-react-compiler", () => interopDefault(import("eslint-plugin-react-compiler"))),
|
|
629
|
+
...genModuleLoader("react-hooks", "eslint-plugin-react-hooks", () => interopDefault(import("eslint-plugin-react-hooks"))),
|
|
630
|
+
...genModuleLoader("react-refresh", "eslint-plugin-react-refresh", () => interopDefault(import("eslint-plugin-react-refresh"))),
|
|
631
|
+
...genModuleLoader("react-you-might-not-need-an-effect", "eslint-plugin-react-you-might-not-need-an-effect", () => interopDefault(import("eslint-plugin-react-you-might-not-need-an-effect"))),
|
|
632
|
+
...genModuleLoader("regexp", "eslint-plugin-regexp", () => interopDefault(import("eslint-plugin-regexp"))),
|
|
633
|
+
...genModuleLoader("rxjs", "@smarttools/eslint-plugin-rxjs", () => interopDefault(import("@smarttools/eslint-plugin-rxjs"))),
|
|
634
|
+
...genModuleLoader("security", "eslint-plugin-security", () => interopDefault(import("eslint-plugin-security"))),
|
|
635
|
+
...genModuleLoader("solid", "eslint-plugin-solid", () => interopDefault(import("eslint-plugin-solid"))),
|
|
636
|
+
...genModuleLoader("sonarjs", "eslint-plugin-sonarjs", () => interopDefault(import("eslint-plugin-sonarjs"))),
|
|
637
|
+
...genModuleLoader("storybook", "eslint-plugin-storybook", () => interopDefault(import("eslint-plugin-storybook"))),
|
|
638
|
+
...genModuleLoader("svelte", "eslint-plugin-svelte", () => interopDefault(import("eslint-plugin-svelte")), MODULE_NOT_FOUND_ERROR_CODES),
|
|
639
|
+
...genModuleLoader("tailwindcss", "eslint-plugin-tailwindcss", () => interopDefault(import("eslint-plugin-tailwindcss")), ["ERR_PACKAGE_PATH_NOT_EXPORTED", ...MODULE_NOT_FOUND_ERROR_CODES]),
|
|
640
|
+
...genModuleLoader("testing-library", "eslint-plugin-testing-library", () => interopDefault(import("eslint-plugin-testing-library"))),
|
|
641
|
+
...genModuleLoader("toml", "eslint-plugin-toml", () => interopDefault(import("eslint-plugin-toml"))),
|
|
642
|
+
...genModuleLoader("ts", "typescript-eslint", () => interopDefault(import("typescript-eslint")).then((m) => m.plugin)),
|
|
643
|
+
...genModuleLoader("turbo", "eslint-plugin-turbo", () => interopDefault(import("eslint-plugin-turbo"))),
|
|
644
|
+
...genModuleLoader("un", "", () => interopDefault(import("./plugin-un-DuedApvZ.js"))),
|
|
645
|
+
...genModuleLoader("unicorn", "eslint-plugin-unicorn", () => interopDefault(import("eslint-plugin-unicorn"))),
|
|
646
|
+
...genModuleLoader("unused-imports", "eslint-plugin-unused-imports", () => interopDefault(import("eslint-plugin-unused-imports"))),
|
|
647
|
+
...genModuleLoader("vitest", "@vitest/eslint-plugin", () => interopDefault(import("@vitest/eslint-plugin"))),
|
|
648
|
+
...genModuleLoader("vue", "eslint-plugin-vue", () => interopDefault(import("eslint-plugin-vue"))),
|
|
649
|
+
...genModuleLoader("vue-scoped-css", "eslint-plugin-vue-scoped-css", () => interopDefault(import("eslint-plugin-vue-scoped-css"))),
|
|
650
|
+
...genModuleLoader("vuejs-accessibility", "eslint-plugin-vuejs-accessibility", () => interopDefault(import("eslint-plugin-vuejs-accessibility"))),
|
|
651
|
+
...genModuleLoader("wc", "eslint-plugin-wc", () => interopDefault(import("eslint-plugin-wc"))),
|
|
652
|
+
...genModuleLoader("yml", "eslint-plugin-yml", () => interopDefault(import("eslint-plugin-yml"))),
|
|
653
|
+
...genModuleLoader("you-dont-need-lodash-underscore", "eslint-plugin-you-dont-need-lodash-underscore", () => interopDefault(import("eslint-plugin-you-dont-need-lodash-underscore")))
|
|
649
654
|
};
|
|
650
655
|
const LOADABLE_PLUGIN_PREFIXES_LIST = objectKeysUnsafe(pluginsLoaders);
|
|
651
656
|
const PLUGIN_PREFIXES_LIST = ["", ...objectKeysUnsafe(pluginsLoaders)];
|
|
@@ -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-DJ_Pn3rB.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-Cwm6glag.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-DJ_Pn3rB.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-DJ_Pn3rB.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-DJ_Pn3rB.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ERROR, assignDefaults, createConfigBuilder } from "./eslint-DJ_Pn3rB.js";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/import-zod.ts
|
|
4
|
+
const importZodUnConfig = (context) => {
|
|
5
|
+
const optionsRaw = context.rootOptions.configs?.importZod;
|
|
6
|
+
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
7
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "import-zod");
|
|
8
|
+
configBuilder?.addConfig(["import-zod", { includeDefaultFilesAndIgnores: true }]).addRule("prefer-zod-namespace", ERROR).addOverrides();
|
|
9
|
+
return {
|
|
10
|
+
configs: [configBuilder],
|
|
11
|
+
optionsResolved
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { importZodUnConfig };
|