eslint-config-un 1.0.0-alpha.27 → 1.0.0-alpha.29
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-CpkWQpd4.js → angular-CwFVwhUC.js} +1 -1
- package/dist/{astro-Bd2alkAK.js → astro-s0Ga5hO7.js} +2 -2
- package/dist/{ava-DMnMjVFC.js → ava-Gx-DAxrX.js} +2 -2
- package/dist/{better-tailwind-D4v7GLEA.js → better-tailwind-CcbusVar.js} +1 -1
- package/dist/{case-police-CJKDDDoc.js → case-police-BEGGSw6Y.js} +1 -1
- package/dist/{cli-6Fq0v4Hy.js → cli-D0P7s-x6.js} +1 -1
- package/dist/{cloudfront-functions-Ch5ilxkw.js → cloudfront-functions-ChcPY5-Q.js} +2 -2
- package/dist/{compat-DEia8nAs.js → compat-DoRC_kBC.js} +1 -1
- package/dist/{cspell-NyfX53p_.js → cspell-D0xSaxDr.js} +1 -1
- package/dist/{css-D7mdG5PT.js → css-BllkeqAo.js} +1 -1
- package/dist/{css-in-js-Cs8gZLtL.js → css-in-js-Z3xU2qAL.js} +1 -1
- package/dist/{cypress-DIz2aqOb.js → cypress-pgkSzxUv.js} +2 -2
- package/dist/{de-morgan-t-CfOoQ1.js → de-morgan-C8_z8Yt2.js} +1 -1
- package/dist/{depend-DQ_a0J_H.js → depend-Bz7d3WVA.js} +2 -2
- package/dist/{ember-C9865nAE.js → ember-Bs6uX_L_.js} +2 -2
- package/dist/{erasable-syntax-only-BO5NkM2e.js → erasable-syntax-only-CTV0hVmr.js} +1 -1
- package/dist/es-CyowgD9x.js +4 -0
- package/dist/{es-Daq8rp8o.js → es-D9RtK4CS.js} +1 -1
- package/dist/{eslint-DJ_Pn3rB.js → eslint-CJ-s1QCM.js} +39 -24
- package/dist/{eslint-comments-DX2bJk2Y.js → eslint-comments-DihKtDKJ.js} +1 -1
- package/dist/{eslint-plugin-C-YWFc2Z.js → eslint-plugin-9tb6Uka6.js} +2 -2
- package/dist/{file-progress-C8TA5PTm.js → file-progress-BLMElWKn.js} +1 -1
- package/dist/{graphql-Dhnqv2ZS.js → graphql-CzkMcyLt.js} +1 -1
- package/dist/{header-Don_ez42.js → header-qL8XiHiu.js} +1 -1
- package/dist/{headers-UIpF8WfG.js → headers-ebaOlP6A.js} +1 -1
- package/dist/html-BcTtJdtG.js +25 -0
- package/dist/{import-DNoRiEZL.js → import-CTiEKDJb.js} +1 -1
- package/dist/{import-zod-BksBSQgU.js → import-zod-S4BMHbyx.js} +1 -1
- package/dist/index.d.ts +305 -501
- package/dist/index.js +79 -76
- package/dist/{jest-DkDeipoM.js → jest-CzDzQG5h.js} +2 -2
- package/dist/{js-DzZNZ9Cy.js → js-C46lKAms.js} +6 -2
- package/dist/{js-inline-DeY866NA.js → js-inline-BzlC7SmZ.js} +1 -2
- package/dist/{jsdoc-CYDUISAG.js → jsdoc-DObhQW8-.js} +1 -1
- package/dist/{json-schema-validator-CgBRQiVO.js → json-schema-validator-Djk4_f-5.js} +2 -2
- package/dist/{jsonc-Co32FZ7a.js → jsonc-C5Qc4IOp.js} +2 -2
- package/dist/{jsx-a11y-DVtSZGEs.js → jsx-a11y-BZVZe9Lm.js} +1 -1
- package/dist/{lit-DXz7EUlf.js → lit-Cf2mQCG-.js} +2 -2
- package/dist/{markdown-ofgLiFmd.js → markdown-BAQt8NY7.js} +2 -2
- package/dist/{math-DtZ2QJpv.js → math-B1bqxeEh.js} +2 -2
- package/dist/{mdx-yMgZ7Qzz.js → mdx-X2Y_mbJW.js} +2 -2
- package/dist/{mocha-DXP66Sir.js → mocha-BgFeeHLa.js} +2 -2
- package/dist/{nextjs-Cr1b_1ad.js → nextjs-DfmEdLs7.js} +1 -1
- package/dist/{no-only-tests-Dph7ACc_.js → no-only-tests-DLIdbuZa.js} +2 -2
- package/dist/{no-stylistic-rules-DWqklM4Q.js → no-stylistic-rules-zFoZRSa4.js} +19 -5
- package/dist/{no-unsanitized-DdFgEab7.js → no-unsanitized-GLvDdmdK.js} +1 -1
- package/dist/{node-B73tA_RH.js → node-CFP8Er20.js} +1 -1
- package/dist/{node-dependencies-cDP4F9Fl.js → node-dependencies-9wiYNiYd.js} +2 -2
- package/dist/{nx-Bf1kLZfO.js → nx-_VyVJFPo.js} +1 -1
- package/dist/package-json-D63MZfWj.js +4 -0
- package/dist/{package-json-X9SWBpXc.js → package-json-DB0MKetp.js} +2 -2
- package/dist/{perfectionist-BliqGw4e.js → perfectionist-CQqd5gYy.js} +1 -1
- package/dist/{playwright-C_9hW5m7.js → playwright-BhtvLaT0.js} +2 -2
- package/dist/{pnpm-CjrteT3r.js → pnpm-CwXycU3L.js} +1 -1
- package/dist/{prefer-arrow-functions-LiZOIWnv.js → prefer-arrow-functions-BqnFfgzV.js} +1 -1
- package/dist/{promise-2AB0cpe3.js → promise-npdMSzex.js} +1 -1
- package/dist/{qunit-DeDd5_yZ.js → qunit-3QU8vYDM.js} +2 -2
- package/dist/{qwik-ClYs-Zki.js → qwik-CvTBX_qc.js} +1 -1
- package/dist/{react-B-V0OFii.js → react-B8xZU5_N.js} +2 -2
- package/dist/{regexp-DXf1WQjl.js → regexp-CuZP5GDt.js} +1 -1
- package/dist/{rxjs-BMrP5-4c.js → rxjs-NmkzEC_z.js} +1 -1
- package/dist/{security-Bn6J4mFM.js → security-Cdx402WJ.js} +1 -1
- package/dist/{shared-Cwm6glag.js → shared-DWHVe_TQ.js} +1 -1
- package/dist/{solid-Bh5JUeiv.js → solid-u_BHoUu_.js} +1 -1
- package/dist/{sonar-0iMStzlW.js → sonar-LfFVAq9N.js} +2 -2
- package/dist/{storybook-CQWouzwf.js → storybook-CAbRyPxa.js} +1 -1
- package/dist/{svelte-BN_UVorG.js → svelte-DRnbQptH.js} +2 -2
- package/dist/{tailwind-CMKO6q_k.js → tailwind-PHOBk6pw.js} +1 -1
- package/dist/{tanstack-query-Dz0JwzWw.js → tanstack-query-BpZFxKKS.js} +1 -1
- package/dist/{testing-library-KwlaRgs0.js → testing-library-DgsAjp5s.js} +2 -2
- package/dist/{toml-dIvdC8HC.js → toml-D7tEHZ3J.js} +2 -2
- package/dist/{ts-GVgp8ayG.js → ts-CrLK_ahH.js} +1 -1
- package/dist/{turbo-w5X1_1uH.js → turbo-BBMZNOQv.js} +1 -1
- package/dist/{un-BZtO5kw_.js → un-CuqyyXGP.js} +1 -1
- package/dist/{unicorn-CODx9T1Y.js → unicorn-BGkvuT80.js} +1 -1
- package/dist/unocss-C1DXZOFj.js +16 -0
- package/dist/{unused-imports-DtdpZOD1.js → unused-imports-CvhdK8SH.js} +1 -1
- package/dist/{vitest-HnMIjmNh.js → vitest-1HWYWNOC.js} +2 -2
- package/dist/{vue-DSq8wFVz.js → vue-Bt5ZDRBb.js} +4 -4
- package/dist/{web-components-CzvuX834.js → web-components-bQsMHhMC.js} +1 -1
- package/dist/{yaml-ClFB2HNi.js → yaml-CBEo4-Y_.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-DDmuX6qN.js → you-dont-need-lodash-underscore-CMi9c_pZ.js} +1 -1
- package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/package.json +1 -1
- package/node_modules/synckit/package.json +2 -2
- package/package.json +25 -19
- package/dist/es-DrX0xoeV.js +0 -4
- package/dist/html-C8PFg48w.js +0 -25
- package/dist/package-json-DnqBTLQU.js +0 -4
- /package/dist/{plugin-un-DuedApvZ.js → plugin-un-kFXeMWAf.js} +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/index.d.cts +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/constants.d.ts +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/constants.js +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/constants.js.map +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/helpers.d.ts +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/helpers.js +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/helpers.js.map +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/index.cjs +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/index.d.ts +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/index.js +0 -0
- /package/node_modules/{synckit/node_modules/@pkgr → @pkgr}/core/lib/index.js.map +0 -0
package/README.md
CHANGED
|
@@ -307,6 +307,7 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
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
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 |
|
|
310
|
+
|  `unocss` | ✅ (`unocss` is installed) | [@unocss/eslint-plugin](https://npmjs.com/@unocss/eslint-plugin) (`unocss`) | Since v1.0.0 |
|
|
310
311
|
|
|
311
312
|
### Miscellaneous
|
|
312
313
|
|
|
@@ -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-CJ-s1QCM.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-CJ-s1QCM.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-BZVZe9Lm.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { esUnConfig } from "./es-D9RtK4CS.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-DB0MKetp.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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -123,6 +123,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
123
123
|
"rxjs",
|
|
124
124
|
"nx",
|
|
125
125
|
"zod",
|
|
126
|
+
"unocss",
|
|
126
127
|
"astro",
|
|
127
128
|
"vue",
|
|
128
129
|
"react",
|
|
@@ -139,7 +140,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
139
140
|
//#endregion
|
|
140
141
|
//#region package.json
|
|
141
142
|
var name = "eslint-config-un";
|
|
142
|
-
var version = "1.0.0-alpha.
|
|
143
|
+
var version = "1.0.0-alpha.29";
|
|
143
144
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
144
145
|
var keywords = ["eslint", "eslint-config"];
|
|
145
146
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -166,6 +167,7 @@ var scripts = {
|
|
|
166
167
|
"lint:eslint": "eslint --cache",
|
|
167
168
|
"lint:eslint:fix": "nr lint:eslint --fix",
|
|
168
169
|
"lint:types": "tsc --noEmit",
|
|
170
|
+
"lint:deps": "pnpm dedupe --check",
|
|
169
171
|
"lint": "nr lint:types && nr format:check && nr lint:eslint",
|
|
170
172
|
"lint:fix": "nr lint:eslint:fix && nr format:fix",
|
|
171
173
|
"typegen": "tsx scripts/typegen.ts",
|
|
@@ -210,24 +212,24 @@ var dependencies = {
|
|
|
210
212
|
"eslint-plugin-file-progress": "3.0.2",
|
|
211
213
|
"eslint-plugin-html": "8.1.3",
|
|
212
214
|
"eslint-plugin-import-x": "4.16.1",
|
|
213
|
-
"eslint-plugin-jsdoc": "52.0.
|
|
215
|
+
"eslint-plugin-jsdoc": "52.0.1",
|
|
214
216
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
215
217
|
"eslint-plugin-jsonc": "2.20.1",
|
|
216
218
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
217
|
-
"eslint-plugin-math": "0.
|
|
219
|
+
"eslint-plugin-math": "0.13.0",
|
|
218
220
|
"eslint-plugin-mdx": "3.6.2",
|
|
219
221
|
"eslint-plugin-n": "17.21.3",
|
|
220
222
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
221
223
|
"eslint-plugin-no-type-assertion": "file:./deps/eslint-plugin-no-type-assertion-1.3.0.tgz",
|
|
222
224
|
"eslint-plugin-no-unsanitized": "4.1.2",
|
|
223
225
|
"eslint-plugin-node-dependencies": "1.1.2",
|
|
224
|
-
"eslint-plugin-package-json": "0.
|
|
226
|
+
"eslint-plugin-package-json": "0.48.0",
|
|
225
227
|
"eslint-plugin-pnpm": "1.1.0",
|
|
226
228
|
"eslint-plugin-prettier": "file:./deps/eslint-plugin-prettier-5.5.0.tgz",
|
|
227
229
|
"eslint-plugin-promise": "7.2.1",
|
|
228
230
|
"eslint-plugin-regexp": "2.9.0",
|
|
229
231
|
"eslint-plugin-security": "3.0.1",
|
|
230
|
-
"eslint-plugin-sonarjs": "3.0.
|
|
232
|
+
"eslint-plugin-sonarjs": "3.0.4",
|
|
231
233
|
"eslint-plugin-toml": "0.12.0",
|
|
232
234
|
"eslint-plugin-unicorn": "60.0.0",
|
|
233
235
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
@@ -259,8 +261,8 @@ var devDependencies = {
|
|
|
259
261
|
"@intlify/eslint-plugin-vue-i18n": "4.1.0",
|
|
260
262
|
"@jest/environment": "30.0.5",
|
|
261
263
|
"@jest/expect": "30.0.5",
|
|
262
|
-
"@next/eslint-plugin-next": "15.4.
|
|
263
|
-
"@nx/eslint-plugin": "21.3.
|
|
264
|
+
"@next/eslint-plugin-next": "15.4.5",
|
|
265
|
+
"@nx/eslint-plugin": "21.3.10",
|
|
264
266
|
"@smarttools/eslint-plugin-rxjs": "1.0.22",
|
|
265
267
|
"@sveltejs/kit": "2.26.1",
|
|
266
268
|
"@tanstack/eslint-plugin-query": "5.81.2",
|
|
@@ -271,6 +273,7 @@ var devDependencies = {
|
|
|
271
273
|
"@types/estree": "1.0.8",
|
|
272
274
|
"@types/node": "20.19.1",
|
|
273
275
|
"@types/semver": "7.7.0",
|
|
276
|
+
"@unocss/eslint-plugin": "66.3.3",
|
|
274
277
|
"@vitest/eslint-plugin": "1.3.4",
|
|
275
278
|
"angular-eslint-plugin-template15": "npm:@angular-eslint/eslint-plugin-template@15.2.1",
|
|
276
279
|
"angular-eslint-plugin-template17": "npm:@angular-eslint/eslint-plugin-template@17.5.3",
|
|
@@ -280,10 +283,10 @@ var devDependencies = {
|
|
|
280
283
|
"destr": "2.0.5",
|
|
281
284
|
"diff": "8.0.2",
|
|
282
285
|
"ember-eslint-parser": "0.5.10",
|
|
283
|
-
"eslint": "9.
|
|
286
|
+
"eslint": "9.32.0",
|
|
284
287
|
"eslint-plugin-astro": "1.3.1",
|
|
285
288
|
"eslint-plugin-ava": "15.1.0",
|
|
286
|
-
"eslint-plugin-better-tailwindcss": "3.7.
|
|
289
|
+
"eslint-plugin-better-tailwindcss": "3.7.3",
|
|
287
290
|
"eslint-plugin-case-police": "2.0.0",
|
|
288
291
|
"eslint-plugin-compat": "6.0.2",
|
|
289
292
|
"eslint-plugin-cypress": "5.1.0",
|
|
@@ -302,7 +305,7 @@ var devDependencies = {
|
|
|
302
305
|
"eslint-plugin-mocha": "11.1.0",
|
|
303
306
|
"eslint-plugin-perfectionist": "4.15.0",
|
|
304
307
|
"eslint-plugin-pinia": "0.4.1",
|
|
305
|
-
"eslint-plugin-playwright": "2.2.
|
|
308
|
+
"eslint-plugin-playwright": "2.2.2",
|
|
306
309
|
"eslint-plugin-prefer-arrow-functions": "3.6.2",
|
|
307
310
|
"eslint-plugin-qunit": "8.2.5",
|
|
308
311
|
"eslint-plugin-qwik": "1.15.0",
|
|
@@ -317,7 +320,7 @@ var devDependencies = {
|
|
|
317
320
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
318
321
|
"eslint-plugin-testing-library": "7.6.3",
|
|
319
322
|
"eslint-plugin-turbo": "2.5.5",
|
|
320
|
-
"eslint-plugin-vue": "10.
|
|
323
|
+
"eslint-plugin-vue": "10.4.0",
|
|
321
324
|
"eslint-plugin-vue-scoped-css": "2.11.0",
|
|
322
325
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
323
326
|
"eslint-plugin-wc": "3.0.1",
|
|
@@ -330,15 +333,15 @@ var devDependencies = {
|
|
|
330
333
|
"npm-check-updates": "18.0.2",
|
|
331
334
|
"prettier": "3.6.2",
|
|
332
335
|
"release-it": "19.0.4",
|
|
333
|
-
"shiki": "3.
|
|
336
|
+
"shiki": "3.9.0",
|
|
334
337
|
"svelte-eslint-parser": "1.3.0",
|
|
335
338
|
"toml-eslint-parser": "0.10.0",
|
|
336
339
|
"tsdown": "0.13.0",
|
|
337
340
|
"tsx": "4.20.3",
|
|
338
|
-
"typescript": "5.
|
|
341
|
+
"typescript": "5.9.2",
|
|
339
342
|
"vue-eslint-parser": "10.2.0",
|
|
340
343
|
"yaml-eslint-parser": "1.3.0",
|
|
341
|
-
"zod": "4.0.
|
|
344
|
+
"zod": "4.0.14"
|
|
342
345
|
};
|
|
343
346
|
var peerDependencies = {
|
|
344
347
|
"@angular-eslint/eslint-plugin": ">=13 <21",
|
|
@@ -348,17 +351,18 @@ var peerDependencies = {
|
|
|
348
351
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
349
352
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
350
353
|
"@intlify/eslint-plugin-vue-i18n": "^4.1.0",
|
|
351
|
-
"@next/eslint-plugin-next": "^15.4.
|
|
352
|
-
"@nx/eslint-plugin": "^21.3.
|
|
354
|
+
"@next/eslint-plugin-next": "^15.4.5",
|
|
355
|
+
"@nx/eslint-plugin": "^21.3.10",
|
|
353
356
|
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
354
357
|
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
358
|
+
"@unocss/eslint-plugin": "^66.3.3",
|
|
355
359
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
356
360
|
"astro-eslint-parser": "^1.2.2",
|
|
357
361
|
"ember-eslint-parser": "^0.5.10",
|
|
358
362
|
"eslint": "^9.15.0",
|
|
359
363
|
"eslint-plugin-astro": "^1.3.1",
|
|
360
364
|
"eslint-plugin-ava": "^15.1.0",
|
|
361
|
-
"eslint-plugin-better-tailwindcss": "^3.7.
|
|
365
|
+
"eslint-plugin-better-tailwindcss": "^3.7.3",
|
|
362
366
|
"eslint-plugin-case-police": "^2.0.0",
|
|
363
367
|
"eslint-plugin-compat": "^6.0.2",
|
|
364
368
|
"eslint-plugin-cypress": "^5.1.0",
|
|
@@ -377,7 +381,7 @@ var peerDependencies = {
|
|
|
377
381
|
"eslint-plugin-mocha": "^11.1.0",
|
|
378
382
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
379
383
|
"eslint-plugin-pinia": "^0.4.1",
|
|
380
|
-
"eslint-plugin-playwright": "^2.2.
|
|
384
|
+
"eslint-plugin-playwright": "^2.2.2",
|
|
381
385
|
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
|
|
382
386
|
"eslint-plugin-qunit": "^8.2.5",
|
|
383
387
|
"eslint-plugin-qwik": "^1.15.0",
|
|
@@ -392,7 +396,7 @@ var peerDependencies = {
|
|
|
392
396
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
393
397
|
"eslint-plugin-testing-library": "^7.6.3",
|
|
394
398
|
"eslint-plugin-turbo": "^2.5.5",
|
|
395
|
-
"eslint-plugin-vue": "^10.
|
|
399
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
396
400
|
"eslint-plugin-vue-scoped-css": "^2.11.0",
|
|
397
401
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
398
402
|
"eslint-plugin-wc": "^3.0.1",
|
|
@@ -414,6 +418,7 @@ var peerDependenciesMeta = {
|
|
|
414
418
|
"@nx/eslint-plugin": { "optional": true },
|
|
415
419
|
"@smarttools/eslint-plugin-rxjs": { "optional": true },
|
|
416
420
|
"@tanstack/eslint-plugin-query": { "optional": true },
|
|
421
|
+
"@unocss/eslint-plugin": { "optional": true },
|
|
417
422
|
"@vitest/eslint-plugin": { "optional": true },
|
|
418
423
|
"astro-eslint-parser": { "optional": true },
|
|
419
424
|
"ember-eslint-parser": { "optional": true },
|
|
@@ -538,6 +543,7 @@ const isIn = (key, object) => key in object;
|
|
|
538
543
|
//#region src/plugins.ts
|
|
539
544
|
const OPTIONAL_PEER_DEPENDENCIES = omit(package_default.peerDependencies, ["eslint"]);
|
|
540
545
|
const MODULE_NOT_FOUND_ERROR_CODES = ["ERR_MODULE_NOT_FOUND", "MODULE_NOT_FOUND"];
|
|
546
|
+
const MODULE_NOT_FOUND_ERROR_MESSAGE_REGEXP = /^Cannot find module '([^']+)'/;
|
|
541
547
|
function genModuleLoader(property, packageName, module, ignoreErrors) {
|
|
542
548
|
const loader = async (context, options) => {
|
|
543
549
|
const isPluginOptionalPeerDependency = packageName in OPTIONAL_PEER_DEPENDENCIES;
|
|
@@ -550,10 +556,17 @@ function genModuleLoader(property, packageName, module, ignoreErrors) {
|
|
|
550
556
|
};
|
|
551
557
|
} catch (error) {
|
|
552
558
|
const ignoredErrors = [...arraify(ignoreErrors), ...isPluginOptionalPeerDependency ? MODULE_NOT_FOUND_ERROR_CODES : []];
|
|
553
|
-
if (error && typeof error === "object" && "code" in error && typeof error.code === "string" && ignoredErrors.includes(error.code) && !options?.throwIfNotFound)
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
559
|
+
if (error && typeof error === "object" && "code" in error && typeof error.code === "string" && ignoredErrors.includes(error.code) && !options?.throwIfNotFound) {
|
|
560
|
+
if (MODULE_NOT_FOUND_ERROR_CODES.includes(error.code) && "message" in error && typeof error.message === "string") {
|
|
561
|
+
const missingPackageNameMatch = error.message.match(MODULE_NOT_FOUND_ERROR_MESSAGE_REGEXP);
|
|
562
|
+
const missingPackageName = missingPackageNameMatch?.[1];
|
|
563
|
+
if (missingPackageName && LOADABLE_PARSERS_NAMES.includes(missingPackageName) && !context.usedParsers.has(missingPackageName)) context.usedParsers.set(missingPackageName, []);
|
|
564
|
+
}
|
|
565
|
+
return {
|
|
566
|
+
module: null,
|
|
567
|
+
packageName
|
|
568
|
+
};
|
|
569
|
+
}
|
|
557
570
|
throw error;
|
|
558
571
|
}
|
|
559
572
|
};
|
|
@@ -575,6 +588,7 @@ const pluginsLoaders = {
|
|
|
575
588
|
...genModuleLoader("@next/next", "@next/eslint-plugin-next", () => interopDefault(import("@next/eslint-plugin-next"))),
|
|
576
589
|
...genModuleLoader("@stylistic", "@stylistic", () => Promise.resolve(stylistic)),
|
|
577
590
|
...genModuleLoader("@tanstack/query", "@tanstack/eslint-plugin-query", () => interopDefault(import("@tanstack/eslint-plugin-query"))),
|
|
591
|
+
...genModuleLoader("@unocss", "@unocss/eslint-plugin", () => interopDefault(import("@unocss/eslint-plugin"))),
|
|
578
592
|
...genModuleLoader("astro", "eslint-plugin-astro", () => interopDefault(import("eslint-plugin-astro"))),
|
|
579
593
|
...genModuleLoader("ava", "eslint-plugin-ava", () => interopDefault(import("eslint-plugin-ava"))),
|
|
580
594
|
...genModuleLoader("better-tailwindcss", "eslint-plugin-better-tailwindcss", () => interopDefault(import("eslint-plugin-better-tailwindcss"))),
|
|
@@ -641,7 +655,7 @@ const pluginsLoaders = {
|
|
|
641
655
|
...genModuleLoader("toml", "eslint-plugin-toml", () => interopDefault(import("eslint-plugin-toml"))),
|
|
642
656
|
...genModuleLoader("ts", "typescript-eslint", () => interopDefault(import("typescript-eslint")).then((m) => m.plugin)),
|
|
643
657
|
...genModuleLoader("turbo", "eslint-plugin-turbo", () => interopDefault(import("eslint-plugin-turbo"))),
|
|
644
|
-
...genModuleLoader("un", "", () => interopDefault(import("./plugin-un-
|
|
658
|
+
...genModuleLoader("un", "", () => interopDefault(import("./plugin-un-kFXeMWAf.js"))),
|
|
645
659
|
...genModuleLoader("unicorn", "eslint-plugin-unicorn", () => interopDefault(import("eslint-plugin-unicorn"))),
|
|
646
660
|
...genModuleLoader("unused-imports", "eslint-plugin-unused-imports", () => interopDefault(import("eslint-plugin-unused-imports"))),
|
|
647
661
|
...genModuleLoader("vitest", "@vitest/eslint-plugin", () => interopDefault(import("@vitest/eslint-plugin"))),
|
|
@@ -663,6 +677,7 @@ const parsersLoaders = {
|
|
|
663
677
|
...genModuleLoader("yaml-eslint-parser", "yaml-eslint-parser", () => import("yaml-eslint-parser")),
|
|
664
678
|
...genModuleLoader("vue-eslint-parser", "vue-eslint-parser", () => import("vue-eslint-parser"))
|
|
665
679
|
};
|
|
680
|
+
const LOADABLE_PARSERS_NAMES = objectKeysUnsafe(parsersLoaders);
|
|
666
681
|
|
|
667
682
|
//#endregion
|
|
668
683
|
//#region src/eslint.ts
|
|
@@ -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-CJ-s1QCM.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-DWHVe_TQ.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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ERROR, GLOB_HTML_ALL, OFF, WARNING, assignDefaults, createConfigBuilder, interopDefault } from "./eslint-CJ-s1QCM.js";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/html.ts
|
|
4
|
+
const htmlUnConfig = async (context) => {
|
|
5
|
+
const eslintParserHtml = await interopDefault(import("@html-eslint/parser"));
|
|
6
|
+
const optionsRaw = context.rootOptions.configs?.html;
|
|
7
|
+
const optionsResolved = assignDefaults(optionsRaw, {});
|
|
8
|
+
const { settings: pluginSettings } = optionsResolved;
|
|
9
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "@html-eslint");
|
|
10
|
+
configBuilder?.addConfig(["html", {
|
|
11
|
+
includeDefaultFilesAndIgnores: true,
|
|
12
|
+
doNotIgnoreHtml: true,
|
|
13
|
+
filesFallback: GLOB_HTML_ALL
|
|
14
|
+
}], {
|
|
15
|
+
languageOptions: { parser: eslintParserHtml },
|
|
16
|
+
...pluginSettings && { settings: { html: pluginSettings } }
|
|
17
|
+
}).addRule("no-duplicate-attrs", ERROR).addRule("no-duplicate-class", ERROR).addRule("no-duplicate-id", ERROR).addRule("no-duplicate-in-head", ERROR).addRule("no-extra-spacing-text", WARNING, [{ skip: ["pre"] }]).addRule("no-inline-styles", OFF).addRule("no-nested-interactive", ERROR).addRule("no-obsolete-tags", ERROR).addRule("no-restricted-attr-values", OFF).addRule("no-restricted-attrs", OFF).addRule("no-script-style-type", ERROR).addRule("no-target-blank", ERROR).addRule("prefer-https", ERROR).addRule("require-attrs", OFF).addRule("require-button-type", ERROR).addRule("require-closing-tags", ERROR).addRule("require-doctype", ERROR).addRule("require-explicit-size", ERROR).addRule("require-li-container", ERROR).addRule("require-meta-charset", ERROR).addRule("use-baseline", WARNING).addRule("no-multiple-h1", ERROR).addRule("require-lang", ERROR).addRule("require-meta-description", OFF).addRule("require-open-graph-protocol", OFF).addRule("require-title", ERROR).addRule("no-abstract-roles", ERROR).addRule("no-accesskey-attrs", ERROR).addRule("no-aria-hidden-body", ERROR).addRule("no-aria-hidden-on-focusable", ERROR).addRule("no-empty-headings", ERROR).addRule("no-heading-inside-button", ERROR).addRule("no-invalid-role", ERROR).addRule("no-non-scalable-viewport", ERROR).addRule("no-positive-tabindex", ERROR).addRule("no-skip-heading-levels", OFF).addRule("require-form-method", OFF).addRule("require-frame-title", ERROR).addRule("require-img-alt", ERROR).addRule("require-input-label", ERROR).addRule("require-meta-viewport", ERROR).addRule("attrs-newline", OFF).addRule("element-newline", OFF).addRule("id-naming-convention", OFF).addRule("indent", OFF).addRule("lowercase", ERROR).addRule("max-element-depth", OFF).addRule("no-extra-spacing-attrs", OFF).addRule("no-multiple-empty-lines", WARNING).addRule("no-trailing-spaces", WARNING).addRule("quotes", ERROR, ["double", { enforceTemplatedAttrValue: true }]).addRule("sort-attrs", OFF).addOverrides();
|
|
18
|
+
return {
|
|
19
|
+
configs: [configBuilder],
|
|
20
|
+
optionsResolved
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { htmlUnConfig };
|
|
@@ -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-CJ-s1QCM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|