eslint-config-un 1.0.0-alpha.24 → 1.0.0-alpha.26
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-BsqeEap6.js → angular-Dq8zO9dB.js} +1 -1
- package/dist/{astro-B5pwcTHI.js → astro-BaRlmNF6.js} +3 -2
- package/dist/{ava-BrnsdwqF.js → ava-D3yLeahA.js} +2 -2
- package/dist/{better-tailwind-Dbd9L8Ek.js → better-tailwind-DzZxncc8.js} +1 -1
- package/dist/{case-police-CzA0_yqd.js → case-police-BSzfS2W7.js} +1 -1
- package/dist/{cli-B_0Ayd2B.js → cli-Cushz403.js} +1 -1
- package/dist/{cloudfront-functions-DWtJmPnv.js → cloudfront-functions-DKokMWat.js} +2 -2
- package/dist/{compat-Kb2PzGdh.js → compat-DXktPXNE.js} +1 -1
- package/dist/{cspell-en5zKMuG.js → cspell-QSYltlut.js} +1 -1
- package/dist/{css-4mdTRIKg.js → css-BW6brZjM.js} +1 -1
- package/dist/{css-in-js-D1_2puiX.js → css-in-js-CLTLTmeY.js} +1 -1
- package/dist/{cypress-BxhKio90.js → cypress-DBrfJDnp.js} +2 -2
- package/dist/{de-morgan-BvI9u2JU.js → de-morgan-D9xBhTVn.js} +1 -1
- package/dist/{depend-CkaeQ7NU.js → depend-CLJBkgDT.js} +2 -2
- package/dist/ember-RljWgPhR.js +40 -0
- package/dist/{erasable-syntax-only-PqPn-iKr.js → erasable-syntax-only-BU9KylMC.js} +1 -1
- package/dist/{es-Bb0wGnKd.js → es-Cm5ckJcr.js} +1 -1
- package/dist/es-WzLEpPLR.js +4 -0
- package/dist/{eslint-DeOf7WeA.js → eslint-2fjJ7RBH.js} +73 -52
- package/dist/{eslint-comments-Bs8DwIzL.js → eslint-comments-B0pBxJR2.js} +1 -1
- package/dist/{eslint-plugin-oxlwv_zT.js → eslint-plugin-DRtBWCio.js} +2 -2
- package/dist/{file-progress-BnGe-FnU.js → file-progress-D5WI6k4n.js} +1 -1
- package/dist/{graphql-UQg5YljO.js → graphql-Bk01L8bO.js} +2 -1
- package/dist/{header-BW6ZNYYC.js → header-ClmcWxDe.js} +1 -1
- package/dist/{headers-5YAcu99p.js → headers-wGXkrUHS.js} +1 -1
- package/dist/{html-DB3o5VKS.js → html-C8W14qFo.js} +2 -2
- package/dist/{import-BmAR2gYZ.js → import-Dbkzpx7U.js} +1 -1
- package/dist/index.d.ts +2135 -981
- package/dist/index.js +85 -74
- package/dist/{jest-DAhRuNZJ.js → jest-B7iXpTGS.js} +3 -2
- package/dist/{js-DUFvCMXr.js → js-DfV1iflk.js} +4 -3
- package/dist/{js-inline-EyTpc0zO.js → js-inline-ZLcEprqr.js} +1 -1
- package/dist/{jsdoc-BRSXzvD1.js → jsdoc-DW4mcJmp.js} +1 -1
- package/dist/{json-schema-validator-CIbbq6ms.js → json-schema-validator-BKVoof4q.js} +2 -2
- package/dist/{jsonc-VsURc7_q.js → jsonc-C3_AYHjK.js} +2 -2
- package/dist/{jsx-a11y-Dw8nWdS4.js → jsx-a11y-Dagqzdyc.js} +1 -1
- package/dist/{lit-CWLCWg7T.js → lit-fE8Lw75C.js} +2 -2
- package/dist/{markdown-CQqwAQFO.js → markdown-Dk503MoF.js} +3 -3
- package/dist/{math-DHAPeXS8.js → math-BzI-Z-re.js} +1 -1
- package/dist/{mdx-BW9udJMb.js → mdx-CxNqAUPg.js} +2 -2
- package/dist/{mocha-BBBrcHaG.js → mocha-B_iU5y8z.js} +2 -2
- package/dist/{nextjs-BtlxDa3j.js → nextjs-Ao2q1L59.js} +1 -1
- package/dist/{no-only-tests-BWkgOtX3.js → no-only-tests-B7LnzANf.js} +2 -2
- package/dist/{no-stylistic-rules-XUdiId83.js → no-stylistic-rules-Bgb4I9pG.js} +87 -2
- package/dist/{no-unsanitized-O5Gq0wpp.js → no-unsanitized-DtM6OvsX.js} +1 -1
- package/dist/{node-BSJRcgW9.js → node-BLCg-jTm.js} +1 -1
- package/dist/{node-dependencies-5L3kX15N.js → node-dependencies-G_bm1XND.js} +2 -2
- package/dist/nx-De7tCmxE.js +26 -0
- package/dist/{package-json-DTmsIPGF.js → package-json-BAGQfoyv.js} +6 -5
- package/dist/package-json-DcEoAXVE.js +4 -0
- package/dist/{perfectionist-C2GQCwTD.js → perfectionist-DxkX19Tj.js} +1 -1
- package/dist/{playwright-OYQ9ceRa.js → playwright-B3E9lbgD.js} +3 -3
- package/dist/plugin-un-C-6x8lEe.js +47 -0
- package/dist/{pnpm-kYOMLdrz.js → pnpm-D2awuBcF.js} +4 -3
- package/dist/{prefer-arrow-functions-C5X1W-I8.js → prefer-arrow-functions-CNYgiEle.js} +1 -1
- package/dist/{promise-Dc7h-g8-.js → promise-Bkulve4k.js} +1 -1
- package/dist/{qunit-ChBioKQZ.js → qunit-CyxrH6YM.js} +2 -2
- package/dist/{qwik-BH4k3wax.js → qwik-CLL8LZae.js} +1 -1
- package/dist/{react-BDvKWZRx.js → react-CEXehnAx.js} +2 -2
- package/dist/{regexp-zeHEmgKy.js → regexp-CXRITXXZ.js} +1 -1
- package/dist/rxjs-IRUzOhOt.js +22 -0
- package/dist/{security-PbJLn1kF.js → security-OQH0cnby.js} +1 -1
- package/dist/{shared-CrDsezf6.js → shared-BVihMRB3.js} +1 -1
- package/dist/{solid-BT-jVYjv.js → solid-CB60RVDP.js} +1 -1
- package/dist/{sonar-BDim0HYC.js → sonar-DY4rrWbX.js} +1 -1
- package/dist/{storybook-DD7VQqP0.js → storybook-wpR-LYHq.js} +1 -1
- package/dist/{svelte-By0yZqfj.js → svelte-CDgOAvYr.js} +3 -2
- package/dist/{tailwind-qoJWRQi0.js → tailwind-DKsNz_N1.js} +1 -1
- package/dist/{tanstack-query-tcTlybcV.js → tanstack-query-BiDgBkzF.js} +1 -1
- package/dist/{testing-library-D9CMFREs.js → testing-library-ufQ3BWcB.js} +2 -2
- package/dist/{toml-uRZYDMqE.js → toml-vFdqp2r4.js} +2 -2
- package/dist/{ts-B83L3wq5.js → ts-DKnHgl6F.js} +2 -2
- package/dist/{turbo-D0A98Zg8.js → turbo-cp_yD5n0.js} +1 -1
- package/dist/un-e6YGFfpk.js +19 -0
- package/dist/unicorn-ClODEp4P.js +25 -0
- package/dist/{unused-imports-jQc_Hmfy.js → unused-imports-B-xetUjw.js} +1 -1
- package/dist/{vitest-D1BGdPiZ.js → vitest-CxNJUlgg.js} +3 -2
- package/dist/{vue-IiFb_9kn.js → vue-B5eg2U4l.js} +14 -4
- package/dist/{web-components-sWAsbN4G.js → web-components-C4rQ5mMD.js} +1 -1
- package/dist/{yaml-B-uThQqc.js → yaml-SiE_57If.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-D1Ji8D0H.js → you-dont-need-lodash-underscore-hK3sc5UN.js} +1 -1
- package/package.json +73 -52
- package/dist/ember-DZfqZH-f.js +0 -40
- package/dist/es-DbNQGUeG.js +0 -4
- package/dist/package-json-D10ALS0p.js +0 -4
- package/dist/unicorn-B7q_kvMg.js +0 -25
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
80
80
|
| `headers` | `eslint-plugin-headers` |
|
|
81
81
|
| `jest-extended` | `eslint-plugin-jest-extended` |
|
|
82
82
|
| `jest` | `eslint-plugin-jest` |
|
|
83
|
+
| `nx` | `@nx/eslint-plugin` |
|
|
83
84
|
| `perfectionist` | `eslint-plugin-perfectionist` |
|
|
84
85
|
| `pinia` | `eslint-plugin-pinia` |
|
|
85
86
|
| `playwright` | `eslint-plugin-playwright` |
|
|
@@ -90,6 +91,7 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
90
91
|
| `react-hooks` | `eslint-plugin-react-hooks` |
|
|
91
92
|
| `react-refresh` | `eslint-plugin-react-refresh` |
|
|
92
93
|
| `react` | `eslint-plugin-react` |
|
|
94
|
+
| `rxjs` | `@smarttools/eslint-plugin-rxjs` |
|
|
93
95
|
| `solid` | `eslint-plugin-solid` |
|
|
94
96
|
| `storybook` | `eslint-plugin-storybook` |
|
|
95
97
|
| `svelte` | `eslint-plugin-svelte` |
|
|
@@ -98,6 +100,7 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
98
100
|
| `turbo` | `eslint-plugin-turbo` |
|
|
99
101
|
| `vitest` | `@vitest/eslint-plugin` |
|
|
100
102
|
| `vue` | `eslint-plugin-vue` |
|
|
103
|
+
| `vue-scoped-css` | `eslint-plugin-vue-scoped-css` |
|
|
101
104
|
| `vuejs-accessibility` | `eslint-plugin-vuejs-accessibility` |
|
|
102
105
|
</details>
|
|
103
106
|
|
|
@@ -301,6 +304,8 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
301
304
|
|  `playwright` | ✅ (`playwright` is installed) | [eslint-plugin-playwright](https://npmjs.com/eslint-plugin-playwright) (`playwright`) | Since v1.0.0 |
|
|
302
305
|
|  `playwright/noOnlyTests` | ❌ | [eslint-plugin-no-only-tests](https://npmjs.com/eslint-plugin-no-only-tests) (`no-only-tests`) | Since v1.0.0 |
|
|
303
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
|
+
|  `rxjs` | ✅ (`rxjs` is installed) | [@smarttools/eslint-plugin-rxjs](https://npmjs.com/@smarttools/eslint-plugin-rxjs) (`rxjs`) | Since v1.0.0 |
|
|
308
|
+
|  `nx` | ✅ (`nx` is installed) | [@nx/eslint-plugin](https://npmjs.com/@nx/eslint-plugin) (`nx`) | Since v1.0.0 |
|
|
304
309
|
|
|
305
310
|
### Miscellaneous
|
|
306
311
|
|
|
@@ -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-2fjJ7RBH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/angular.ts
|
|
4
4
|
const SUPPORTED_ANGULAR_VERSIONS = [
|
|
@@ -1,9 +1,10 @@
|
|
|
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-2fjJ7RBH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/astro.ts
|
|
4
4
|
const DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
5
5
|
const astroUnConfig = async (context) => {
|
|
6
6
|
const [eslintPluginAstro, { parser: typescriptEslintParser }] = await Promise.all([pluginsLoaders.astro(context).then(({ module }) => module), interopDefault(import("typescript-eslint"))]);
|
|
7
|
+
context.usedPlugins.add("astro");
|
|
7
8
|
if (!eslintPluginAstro) return null;
|
|
8
9
|
const optionsRaw = context.rootOptions.configs?.astro;
|
|
9
10
|
const optionsResolved = assignDefaults(optionsRaw, {
|
|
@@ -32,7 +33,7 @@ const astroUnConfig = async (context) => {
|
|
|
32
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();
|
|
33
34
|
return {
|
|
34
35
|
configs: [configBuilder, ...configJsxA11y === false ? [] : await (async () => {
|
|
35
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
36
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-Dagqzdyc.js");
|
|
36
37
|
const result = await jsxA11yUnConfig(context, {
|
|
37
38
|
prefix: "astro",
|
|
38
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-2fjJ7RBH.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BVihMRB3.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-2fjJ7RBH.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-2fjJ7RBH.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-2fjJ7RBH.js";
|
|
2
|
+
import { esUnConfig } from "./es-Cm5ckJcr.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-2fjJ7RBH.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-2fjJ7RBH.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BVihMRB3.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-2fjJ7RBH.js";
|
|
2
|
+
import { DEFAULT_FILES_PACKAGE_JSON } from "./package-json-BAGQfoyv.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/depend.ts
|
|
5
5
|
const dependUnConfig = async (context) => {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ERROR, GLOB_JS_TS, GLOB_JS_TS_EXTENSION, OFF, WARNING, assignDefaults, createConfigBuilder } from "./eslint-2fjJ7RBH.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateConfigNoOnlyTestsBuilder, generateDefaultTestFiles } from "./shared-BVihMRB3.js";
|
|
3
|
+
|
|
4
|
+
//#region src/configs/ember.ts
|
|
5
|
+
const GLIMMER_TEMPLATES_FILES = ["**/*.{gjs,gts}"];
|
|
6
|
+
const emberUnConfig = (context) => {
|
|
7
|
+
const optionsRaw = context.rootOptions.configs?.ember;
|
|
8
|
+
const optionsResolved = assignDefaults(optionsRaw, {
|
|
9
|
+
configTestFiles: true,
|
|
10
|
+
enforceGlimmerComponents: true
|
|
11
|
+
});
|
|
12
|
+
const { configTestFiles, enforceGettersInComputedProperties, enforceGlimmerComponents } = optionsResolved;
|
|
13
|
+
const configBuilder = createConfigBuilder(context, optionsResolved, "ember");
|
|
14
|
+
configBuilder?.addConfig(["ember/glimmer-templates", {
|
|
15
|
+
filesFallback: [...GLIMMER_TEMPLATES_FILES],
|
|
16
|
+
parser: "ember-eslint-parser"
|
|
17
|
+
}]);
|
|
18
|
+
configBuilder?.addConfig(["ember", {
|
|
19
|
+
includeDefaultFilesAndIgnores: true,
|
|
20
|
+
filesFallback: [GLOB_JS_TS, ...GLIMMER_TEMPLATES_FILES]
|
|
21
|
+
}]).addRule("no-attrs-in-components", ERROR).addRule("no-attrs-snapshot", ERROR).addRule("no-builtin-form-components", WARNING).addRule("no-classic-components", enforceGlimmerComponents ? ERROR : OFF).addRule("no-component-lifecycle-hooks", ERROR).addRule("no-on-calls-in-components", ERROR).addRule("require-tagless-components", ERROR).addRule("computed-property-getters", enforceGettersInComputedProperties == null ? OFF : ERROR, enforceGettersInComputedProperties == null ? [] : [enforceGettersInComputedProperties]).addRule("no-arrow-function-computed-properties", ERROR).addRule("no-assignment-of-untracked-properties-used-in-tracking-contexts", ERROR).addRule("no-computed-properties-in-native-classes", ERROR).addRule("no-deeply-nested-dependent-keys-with-each", ERROR).addRule("no-duplicate-dependent-keys", ERROR).addRule("no-incorrect-computed-macros", ERROR).addRule("no-invalid-dependent-keys", ERROR).addRule("no-side-effects", ERROR).addRule("no-volatile-computed-properties", ERROR).addRule("require-computed-macros", ERROR).addRule("require-computed-property-dependencies", ERROR).addRule("require-return-from-computed", ERROR).addRule("use-brace-expansion", ERROR).addRule("alias-model-in-controller", OFF).addRule("avoid-using-needs-in-controllers", ERROR).addRule("no-controllers", OFF).addRule("closure-actions", ERROR).addRule("new-module-imports", ERROR).addRule("no-array-prototype-extensions", ERROR).addRule("no-at-ember-render-modifiers", ERROR).addRule("no-deprecated-router-transition-methods", ERROR).addRule("no-function-prototype-extensions", ERROR).addRule("no-implicit-injections", ERROR).addRule("no-mixins", ERROR).addRule("no-new-mixins", ERROR).addRule("no-observers", ERROR).addRule("no-old-shims", ERROR).addRule("no-string-prototype-extensions", ERROR).addRule("no-empty-attrs", OFF).addRule("require-async-inverse-relationship", ERROR).addRule("use-ember-data-rfc-395-imports", ERROR).addRule("avoid-leaking-state-in-ember-objects", ERROR).addRule("no-get", ERROR).addRule("no-get-with-default", ERROR).addRule("no-proxies", ERROR).addRule("no-try-invoke", ERROR).addRule("require-super-in-lifecycle-hooks", ERROR).addRule("use-ember-get-and-set", OFF).addRule("classic-decorator-hooks", ERROR).addRule("classic-decorator-no-classic-methods", ERROR).addRule("no-actions-hash", ERROR).addRule("no-classic-classes", ERROR).addRule("no-ember-super-in-es-classes", ERROR).addRule("no-empty-glimmer-component-classes", ERROR).addRule("no-tracked-properties-from-args", ERROR).addRule("template-indent", OFF).addRule("template-no-let-reference", ERROR).addRule("jquery-ember-run", ERROR).addRule("no-global-jquery", ERROR).addRule("no-jquery", ERROR).addRule("named-functions-in-promises", OFF).addRule("no-html-safe", ERROR).addRule("no-incorrect-calls-with-inline-anonymous-functions", ERROR).addRule("no-invalid-debug-function-arguments", ERROR).addRule("no-restricted-property-modifications", OFF).addRule("no-runloop", ERROR).addRule("require-fetch-import", OFF).addRule("no-capital-letters-in-routes", ERROR).addRule("no-controller-access-in-routes", ERROR).addRule("no-private-routing-service", ERROR).addRule("no-shadow-route-definition", ERROR).addRule("no-unnecessary-index-route", ERROR).addRule("no-unnecessary-route-path-option", ERROR).addRule("route-path-style", ERROR).addRule("routes-segments-snake-case", ERROR).addRule("no-implicit-service-injection-argument", OFF).addRule("no-restricted-service-injections", OFF).addRule("no-unnecessary-service-injection-argument", OFF).addRule("no-unused-services", ERROR).addRule("order-in-components", ERROR).addRule("order-in-controllers", ERROR).addRule("order-in-models", ERROR).addRule("order-in-routes", ERROR).addRule("no-test-support-import", ERROR).addOverrides();
|
|
22
|
+
const configBuilderTests = createConfigBuilder(context, configTestFiles, "ember");
|
|
23
|
+
const configTestsFilesFallback = generateDefaultTestFiles(GLOB_JS_TS_EXTENSION);
|
|
24
|
+
configBuilderTests?.addConfig(["ember/tests", {
|
|
25
|
+
includeDefaultFilesAndIgnores: true,
|
|
26
|
+
filesFallback: configTestsFilesFallback
|
|
27
|
+
}]).addRule("no-current-route-name", ERROR).addRule("no-ember-testing-in-module-scope", ERROR).addRule("no-invalid-test-waiters", ERROR).addRule("no-legacy-test-waiters", ERROR).addRule("no-noop-setup-on-error-in-before", ERROR).addRule("no-pause-test", ERROR).addRule("no-replace-test-comments", WARNING).addRule("no-restricted-resolver-tests", ERROR).addRule("no-settled-after-test-helper", ERROR).addRule("no-test-and-then", ERROR).addRule("no-test-import-export", ERROR).addRule("no-test-module-for", ERROR).addRule("no-test-this-render", ERROR).addRule("prefer-ember-test-helpers", ERROR).addRule("require-valid-css-selector-in-test-helpers", ERROR).disableBulkRules(RULES_TO_DISABLE_IN_TEST_FILES).addOverrides();
|
|
28
|
+
const configBuilderNoOnlyTests = generateConfigNoOnlyTestsBuilder(context, "ember", (typeof configTestFiles === "object" ? configTestFiles.configNoOnlyTests : null) ?? true, configTestFiles, { filesFallback: configTestsFilesFallback });
|
|
29
|
+
return {
|
|
30
|
+
configs: [
|
|
31
|
+
configBuilder,
|
|
32
|
+
configBuilderTests,
|
|
33
|
+
configBuilderNoOnlyTests
|
|
34
|
+
],
|
|
35
|
+
optionsResolved
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { emberUnConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_TSX, OFF, assignDefaults, createConfigBuilder } from "./eslint-2fjJ7RBH.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-2fjJ7RBH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/es.ts
|
|
4
4
|
const esUnConfig = (context, customConfig) => {
|
|
@@ -120,6 +120,8 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
120
120
|
"lodash-es",
|
|
121
121
|
"qunit",
|
|
122
122
|
...CHECKED_LODASH_METHODS.map((method) => `lodash.${method}`),
|
|
123
|
+
"rxjs",
|
|
124
|
+
"nx",
|
|
123
125
|
"astro",
|
|
124
126
|
"vue",
|
|
125
127
|
"react",
|
|
@@ -136,7 +138,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
136
138
|
//#endregion
|
|
137
139
|
//#region package.json
|
|
138
140
|
var name = "eslint-config-un";
|
|
139
|
-
var version = "1.0.0-alpha.
|
|
141
|
+
var version = "1.0.0-alpha.26";
|
|
140
142
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
141
143
|
var keywords = ["eslint", "eslint-config"];
|
|
142
144
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -168,7 +170,7 @@ var scripts = {
|
|
|
168
170
|
"typegen": "tsx scripts/typegen.ts",
|
|
169
171
|
"knip": "knip --no-progress",
|
|
170
172
|
"build:code": "tsdown --clean",
|
|
171
|
-
"build:code:test": "tsdown --silent --out-dir temp",
|
|
173
|
+
"build:code:test": "tsdown --silent --out-dir temp/dist",
|
|
172
174
|
"build": "nr typegen && nr build:code",
|
|
173
175
|
"test": "nr typegen && nr knip && nr spellcheck && nr lint && nr build:code:test",
|
|
174
176
|
"lint:public-types": "npx @arethetypeswrong/cli --pack . --profile esm-only",
|
|
@@ -184,20 +186,21 @@ var dependencies = {
|
|
|
184
186
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
185
187
|
"@eslint/compat": "1.3.1",
|
|
186
188
|
"@eslint/css": "0.10.0",
|
|
187
|
-
"@eslint/markdown": "7.
|
|
188
|
-
"@html-eslint/eslint-plugin": "0.
|
|
189
|
-
"@html-eslint/parser": "0.
|
|
190
|
-
"@stylistic/eslint-plugin": "5.2.
|
|
191
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
192
|
-
"@typescript-eslint/parser": "8.
|
|
193
|
-
"@vue/compiler-sfc": "3.5.
|
|
189
|
+
"@eslint/markdown": "7.1.0",
|
|
190
|
+
"@html-eslint/eslint-plugin": "0.43.1",
|
|
191
|
+
"@html-eslint/parser": "0.43.0",
|
|
192
|
+
"@stylistic/eslint-plugin": "5.2.2",
|
|
193
|
+
"@typescript-eslint/eslint-plugin": "8.38.0",
|
|
194
|
+
"@typescript-eslint/parser": "8.38.0",
|
|
195
|
+
"@vue/compiler-sfc": "3.5.18",
|
|
196
|
+
"ci-info": "4.3.0",
|
|
194
197
|
"consola": "3.4.2",
|
|
195
198
|
"debug": "4.4.1",
|
|
196
199
|
"defu": "6.1.4",
|
|
197
200
|
"enhanced-resolve": "5.18.2",
|
|
198
|
-
"es-toolkit": "1.39.
|
|
201
|
+
"es-toolkit": "1.39.8",
|
|
199
202
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
200
|
-
"eslint-config-prettier": "10.1.
|
|
203
|
+
"eslint-config-prettier": "10.1.8",
|
|
201
204
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
202
205
|
"eslint-mdx": "3.6.2",
|
|
203
206
|
"eslint-merge-processors": "2.0.0",
|
|
@@ -206,26 +209,26 @@ var dependencies = {
|
|
|
206
209
|
"eslint-plugin-file-progress": "3.0.2",
|
|
207
210
|
"eslint-plugin-html": "8.1.3",
|
|
208
211
|
"eslint-plugin-import-x": "4.16.1",
|
|
209
|
-
"eslint-plugin-jsdoc": "
|
|
212
|
+
"eslint-plugin-jsdoc": "52.0.0",
|
|
210
213
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
211
214
|
"eslint-plugin-jsonc": "2.20.1",
|
|
212
215
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
213
216
|
"eslint-plugin-math": "0.10.1",
|
|
214
217
|
"eslint-plugin-mdx": "3.6.2",
|
|
215
|
-
"eslint-plugin-n": "17.21.
|
|
218
|
+
"eslint-plugin-n": "17.21.3",
|
|
216
219
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
217
220
|
"eslint-plugin-no-type-assertion": "file:./deps/eslint-plugin-no-type-assertion-1.3.0.tgz",
|
|
218
221
|
"eslint-plugin-no-unsanitized": "4.1.2",
|
|
219
222
|
"eslint-plugin-node-dependencies": "1.1.2",
|
|
220
|
-
"eslint-plugin-package-json": "0.
|
|
221
|
-
"eslint-plugin-pnpm": "1.
|
|
223
|
+
"eslint-plugin-package-json": "0.47.0",
|
|
224
|
+
"eslint-plugin-pnpm": "1.1.0",
|
|
222
225
|
"eslint-plugin-prettier": "file:./deps/eslint-plugin-prettier-5.5.0.tgz",
|
|
223
226
|
"eslint-plugin-promise": "7.2.1",
|
|
224
227
|
"eslint-plugin-regexp": "2.9.0",
|
|
225
228
|
"eslint-plugin-security": "3.0.1",
|
|
226
229
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
227
230
|
"eslint-plugin-toml": "0.12.0",
|
|
228
|
-
"eslint-plugin-unicorn": "
|
|
231
|
+
"eslint-plugin-unicorn": "60.0.0",
|
|
229
232
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
230
233
|
"eslint-plugin-yml": "1.18.0",
|
|
231
234
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
@@ -238,9 +241,9 @@ var dependencies = {
|
|
|
238
241
|
"package-manager-detector": "1.3.0",
|
|
239
242
|
"read-package-up": "11.0.0",
|
|
240
243
|
"semver": "7.7.2",
|
|
241
|
-
"tailwind-csstree": "0.1.
|
|
244
|
+
"tailwind-csstree": "0.1.2",
|
|
242
245
|
"type-fest": "4.41.0",
|
|
243
|
-
"typescript-eslint": "8.
|
|
246
|
+
"typescript-eslint": "8.38.0"
|
|
244
247
|
};
|
|
245
248
|
var devDependencies = {
|
|
246
249
|
"@angular-eslint/eslint-plugin": "20.1.1",
|
|
@@ -248,20 +251,23 @@ var devDependencies = {
|
|
|
248
251
|
"@angular-eslint/template-parser": "20.1.1",
|
|
249
252
|
"@antfu/ni": "25.0.0",
|
|
250
253
|
"@arethetypeswrong/cli": "0.18.2",
|
|
251
|
-
"@cspell/eslint-plugin": "9.
|
|
254
|
+
"@cspell/eslint-plugin": "9.2.0",
|
|
252
255
|
"@eslint-react/eslint-plugin": "1.52.3",
|
|
253
256
|
"@eslint/config-inspector": "1.1.0",
|
|
254
257
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
255
258
|
"@intlify/eslint-plugin-vue-i18n": "4.0.1",
|
|
256
|
-
"@jest/environment": "30.0.
|
|
257
|
-
"@jest/expect": "30.0.
|
|
258
|
-
"@next/eslint-plugin-next": "15.4.
|
|
259
|
-
"@
|
|
259
|
+
"@jest/environment": "30.0.5",
|
|
260
|
+
"@jest/expect": "30.0.5",
|
|
261
|
+
"@next/eslint-plugin-next": "15.4.4",
|
|
262
|
+
"@nx/eslint-plugin": "21.3.7",
|
|
263
|
+
"@smarttools/eslint-plugin-rxjs": "1.0.22",
|
|
264
|
+
"@sveltejs/kit": "2.26.1",
|
|
260
265
|
"@tanstack/eslint-plugin-query": "5.81.2",
|
|
261
266
|
"@types/debug": "4.1.12",
|
|
262
267
|
"@types/eslint-plugin-jsx-a11y": "6.10.0",
|
|
263
268
|
"@types/eslint-plugin-security": "3.0.0",
|
|
264
269
|
"@types/eslint-plugin-tailwindcss": "3.17.0",
|
|
270
|
+
"@types/estree": "1.0.8",
|
|
265
271
|
"@types/node": "20.19.1",
|
|
266
272
|
"@types/semver": "7.7.0",
|
|
267
273
|
"@vitest/eslint-plugin": "1.3.4",
|
|
@@ -269,18 +275,19 @@ var devDependencies = {
|
|
|
269
275
|
"angular-eslint-plugin-template17": "npm:@angular-eslint/eslint-plugin-template@17.5.3",
|
|
270
276
|
"angular-eslint-plugin18": "npm:@angular-eslint/eslint-plugin@18.4.3",
|
|
271
277
|
"astro-eslint-parser": "1.2.2",
|
|
272
|
-
"cspell": "9.
|
|
278
|
+
"cspell": "9.2.0",
|
|
279
|
+
"destr": "2.0.5",
|
|
273
280
|
"diff": "8.0.2",
|
|
274
|
-
"ember-eslint-parser": "0.5.
|
|
281
|
+
"ember-eslint-parser": "0.5.10",
|
|
275
282
|
"eslint": "9.31.0",
|
|
276
283
|
"eslint-plugin-astro": "1.3.1",
|
|
277
|
-
"eslint-plugin-ava": "15.0
|
|
278
|
-
"eslint-plugin-better-tailwindcss": "3.
|
|
284
|
+
"eslint-plugin-ava": "15.1.0",
|
|
285
|
+
"eslint-plugin-better-tailwindcss": "3.7.2",
|
|
279
286
|
"eslint-plugin-case-police": "2.0.0",
|
|
280
287
|
"eslint-plugin-compat": "6.0.2",
|
|
281
288
|
"eslint-plugin-cypress": "5.1.0",
|
|
282
289
|
"eslint-plugin-de-morgan": "1.3.0",
|
|
283
|
-
"eslint-plugin-ember": "12.
|
|
290
|
+
"eslint-plugin-ember": "12.7.0",
|
|
284
291
|
"eslint-plugin-erasable-syntax-only": "0.3.1",
|
|
285
292
|
"eslint-plugin-es-x": "9.0.0",
|
|
286
293
|
"eslint-plugin-eslint-plugin": "6.5.0",
|
|
@@ -289,66 +296,72 @@ var devDependencies = {
|
|
|
289
296
|
"eslint-plugin-jest": "29.0.1",
|
|
290
297
|
"eslint-plugin-jest-extended": "3.0.0",
|
|
291
298
|
"eslint-plugin-lit": "2.1.1",
|
|
292
|
-
"eslint-plugin-lit-a11y": "5.1.
|
|
299
|
+
"eslint-plugin-lit-a11y": "5.1.1",
|
|
293
300
|
"eslint-plugin-mocha": "11.1.0",
|
|
294
301
|
"eslint-plugin-perfectionist": "4.15.0",
|
|
295
302
|
"eslint-plugin-pinia": "0.4.1",
|
|
296
|
-
"eslint-plugin-playwright": "2.2.
|
|
303
|
+
"eslint-plugin-playwright": "2.2.1",
|
|
297
304
|
"eslint-plugin-prefer-arrow-functions": "3.6.2",
|
|
298
|
-
"eslint-plugin-qunit": "8.2.
|
|
299
|
-
"eslint-plugin-qwik": "1.
|
|
305
|
+
"eslint-plugin-qunit": "8.2.5",
|
|
306
|
+
"eslint-plugin-qwik": "1.15.0",
|
|
300
307
|
"eslint-plugin-react": "7.37.5",
|
|
301
308
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
302
309
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
303
310
|
"eslint-plugin-react-refresh": "0.4.20",
|
|
304
311
|
"eslint-plugin-react-you-might-not-need-an-effect": "0.4.1",
|
|
305
312
|
"eslint-plugin-solid": "0.14.5",
|
|
306
|
-
"eslint-plugin-storybook": "9.0.
|
|
313
|
+
"eslint-plugin-storybook": "9.0.18",
|
|
307
314
|
"eslint-plugin-svelte": "3.11.0",
|
|
308
315
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
309
|
-
"eslint-plugin-testing-library": "7.6.
|
|
316
|
+
"eslint-plugin-testing-library": "7.6.3",
|
|
310
317
|
"eslint-plugin-turbo": "2.5.5",
|
|
311
318
|
"eslint-plugin-vue": "10.3.0",
|
|
319
|
+
"eslint-plugin-vue-scoped-css": "2.11.0",
|
|
312
320
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
313
321
|
"eslint-plugin-wc": "3.0.1",
|
|
314
322
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
|
|
315
|
-
"eslint-typegen": "2.
|
|
316
|
-
"json-schema
|
|
323
|
+
"eslint-typegen": "2.3.0",
|
|
324
|
+
"json-schema": "0.4.0",
|
|
325
|
+
"json-schema-to-ts": "3.1.1",
|
|
326
|
+
"json-schema-to-typescript-lite": "15.0.0",
|
|
317
327
|
"knip": "5.62.0",
|
|
318
|
-
"npm-check-updates": "18.0.
|
|
328
|
+
"npm-check-updates": "18.0.2",
|
|
319
329
|
"prettier": "3.6.2",
|
|
320
330
|
"release-it": "19.0.4",
|
|
321
331
|
"shiki": "3.8.1",
|
|
322
332
|
"svelte-eslint-parser": "1.3.0",
|
|
323
333
|
"toml-eslint-parser": "0.10.0",
|
|
324
|
-
"tsdown": "0.
|
|
334
|
+
"tsdown": "0.13.0",
|
|
325
335
|
"tsx": "4.20.3",
|
|
326
336
|
"typescript": "5.8.3",
|
|
327
337
|
"vue-eslint-parser": "10.2.0",
|
|
328
|
-
"yaml-eslint-parser": "1.3.0"
|
|
338
|
+
"yaml-eslint-parser": "1.3.0",
|
|
339
|
+
"zod": "4.0.10"
|
|
329
340
|
};
|
|
330
341
|
var peerDependencies = {
|
|
331
342
|
"@angular-eslint/eslint-plugin": ">=13 <21",
|
|
332
343
|
"@angular-eslint/eslint-plugin-template": ">=13 <21",
|
|
333
344
|
"@angular-eslint/template-parser": ">=13 <21",
|
|
334
|
-
"@cspell/eslint-plugin": "^9.
|
|
345
|
+
"@cspell/eslint-plugin": "^9.2.0",
|
|
335
346
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
336
347
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
337
348
|
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
|
|
338
|
-
"@next/eslint-plugin-next": "^15.4.
|
|
349
|
+
"@next/eslint-plugin-next": "^15.4.4",
|
|
350
|
+
"@nx/eslint-plugin": "^21.3.7",
|
|
351
|
+
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
339
352
|
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
340
353
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
341
354
|
"astro-eslint-parser": "^1.2.2",
|
|
342
|
-
"ember-eslint-parser": "^0.5.
|
|
355
|
+
"ember-eslint-parser": "^0.5.10",
|
|
343
356
|
"eslint": "^9.15.0",
|
|
344
357
|
"eslint-plugin-astro": "^1.3.1",
|
|
345
|
-
"eslint-plugin-ava": "^15.0
|
|
346
|
-
"eslint-plugin-better-tailwindcss": "^3.
|
|
358
|
+
"eslint-plugin-ava": "^15.1.0",
|
|
359
|
+
"eslint-plugin-better-tailwindcss": "^3.7.2",
|
|
347
360
|
"eslint-plugin-case-police": "^2.0.0",
|
|
348
361
|
"eslint-plugin-compat": "^6.0.2",
|
|
349
362
|
"eslint-plugin-cypress": "^5.1.0",
|
|
350
363
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
351
|
-
"eslint-plugin-ember": "^12.
|
|
364
|
+
"eslint-plugin-ember": "^12.7.0",
|
|
352
365
|
"eslint-plugin-erasable-syntax-only": "^0.3.1",
|
|
353
366
|
"eslint-plugin-es-x": "^9.0.0",
|
|
354
367
|
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
@@ -357,30 +370,31 @@ var peerDependencies = {
|
|
|
357
370
|
"eslint-plugin-jest": "^29.0.1",
|
|
358
371
|
"eslint-plugin-jest-extended": "^3.0.0",
|
|
359
372
|
"eslint-plugin-lit": "^2.1.1",
|
|
360
|
-
"eslint-plugin-lit-a11y": "^5.1.
|
|
373
|
+
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
361
374
|
"eslint-plugin-mocha": "^11.1.0",
|
|
362
375
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
363
376
|
"eslint-plugin-pinia": "^0.4.1",
|
|
364
|
-
"eslint-plugin-playwright": "^2.2.
|
|
377
|
+
"eslint-plugin-playwright": "^2.2.1",
|
|
365
378
|
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
|
|
366
|
-
"eslint-plugin-qunit": "^8.2.
|
|
367
|
-
"eslint-plugin-qwik": "^1.
|
|
379
|
+
"eslint-plugin-qunit": "^8.2.5",
|
|
380
|
+
"eslint-plugin-qwik": "^1.15.0",
|
|
368
381
|
"eslint-plugin-react": "^7.37.5",
|
|
369
382
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
370
383
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
371
384
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
372
385
|
"eslint-plugin-react-you-might-not-need-an-effect": "^0.4.1",
|
|
373
386
|
"eslint-plugin-solid": "^0.14.5",
|
|
374
|
-
"eslint-plugin-storybook": "^9.0.
|
|
387
|
+
"eslint-plugin-storybook": "^9.0.18",
|
|
375
388
|
"eslint-plugin-svelte": "^3.11.0",
|
|
376
389
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
377
|
-
"eslint-plugin-testing-library": "^7.6.
|
|
390
|
+
"eslint-plugin-testing-library": "^7.6.3",
|
|
378
391
|
"eslint-plugin-turbo": "^2.5.5",
|
|
379
392
|
"eslint-plugin-vue": "^10.3.0",
|
|
393
|
+
"eslint-plugin-vue-scoped-css": "^2.11.0",
|
|
380
394
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
381
395
|
"eslint-plugin-wc": "^3.0.1",
|
|
382
396
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
|
|
383
|
-
"svelte-eslint-parser": "^1.
|
|
397
|
+
"svelte-eslint-parser": "^1.3.0",
|
|
384
398
|
"toml-eslint-parser": "^0.10.0",
|
|
385
399
|
"vue-eslint-parser": "^10.2.0",
|
|
386
400
|
"yaml-eslint-parser": "^1.3.0"
|
|
@@ -394,6 +408,8 @@ var peerDependenciesMeta = {
|
|
|
394
408
|
"@graphql-eslint/eslint-plugin": { "optional": true },
|
|
395
409
|
"@intlify/eslint-plugin-vue-i18n": { "optional": true },
|
|
396
410
|
"@next/eslint-plugin-next": { "optional": true },
|
|
411
|
+
"@nx/eslint-plugin": { "optional": true },
|
|
412
|
+
"@smarttools/eslint-plugin-rxjs": { "optional": true },
|
|
397
413
|
"@tanstack/eslint-plugin-query": { "optional": true },
|
|
398
414
|
"@vitest/eslint-plugin": { "optional": true },
|
|
399
415
|
"astro-eslint-parser": { "optional": true },
|
|
@@ -434,6 +450,7 @@ var peerDependenciesMeta = {
|
|
|
434
450
|
"eslint-plugin-testing-library": { "optional": true },
|
|
435
451
|
"eslint-plugin-turbo": { "optional": true },
|
|
436
452
|
"eslint-plugin-vue": { "optional": true },
|
|
453
|
+
"eslint-plugin-vue-scoped-css": { "optional": true },
|
|
437
454
|
"eslint-plugin-vuejs-accessibility": { "optional": true },
|
|
438
455
|
"eslint-plugin-wc": { "optional": true },
|
|
439
456
|
"eslint-plugin-you-dont-need-lodash-underscore": { "optional": true },
|
|
@@ -591,6 +608,7 @@ const pluginsLoaders = {
|
|
|
591
608
|
...genModuleLoader("no-unsanitized", "eslint-plugin-no-unsanitized", () => import("eslint-plugin-no-unsanitized")),
|
|
592
609
|
...genModuleLoader("node", "eslint-plugin-n", () => import("eslint-plugin-n")),
|
|
593
610
|
...genModuleLoader("node-dependencies", "eslint-plugin-node-dependencies", () => import("eslint-plugin-node-dependencies")),
|
|
611
|
+
...genModuleLoader("nx", "@nx/eslint-plugin", () => import("@nx/eslint-plugin")),
|
|
594
612
|
...genModuleLoader("package-json", "eslint-plugin-package-json", () => import("eslint-plugin-package-json")),
|
|
595
613
|
...genModuleLoader("perfectionist", "eslint-plugin-perfectionist", () => import("eslint-plugin-perfectionist")),
|
|
596
614
|
...genModuleLoader("pinia", "eslint-plugin-pinia", () => import("eslint-plugin-pinia")),
|
|
@@ -607,6 +625,7 @@ const pluginsLoaders = {
|
|
|
607
625
|
...genModuleLoader("react-refresh", "eslint-plugin-react-refresh", () => import("eslint-plugin-react-refresh")),
|
|
608
626
|
...genModuleLoader("react-you-might-not-need-an-effect", "eslint-plugin-react-you-might-not-need-an-effect", () => import("eslint-plugin-react-you-might-not-need-an-effect")),
|
|
609
627
|
...genModuleLoader("regexp", "eslint-plugin-regexp", () => import("eslint-plugin-regexp")),
|
|
628
|
+
...genModuleLoader("rxjs", "@smarttools/eslint-plugin-rxjs", () => import("@smarttools/eslint-plugin-rxjs")),
|
|
610
629
|
...genModuleLoader("security", "eslint-plugin-security", () => import("eslint-plugin-security")),
|
|
611
630
|
...genModuleLoader("solid", "eslint-plugin-solid", () => import("eslint-plugin-solid")),
|
|
612
631
|
...genModuleLoader("sonarjs", "eslint-plugin-sonarjs", () => import("eslint-plugin-sonarjs")),
|
|
@@ -617,10 +636,12 @@ const pluginsLoaders = {
|
|
|
617
636
|
...genModuleLoader("toml", "eslint-plugin-toml", () => import("eslint-plugin-toml")),
|
|
618
637
|
...genModuleLoader("ts", "typescript-eslint", () => import("typescript-eslint").then((m) => m.plugin)),
|
|
619
638
|
...genModuleLoader("turbo", "eslint-plugin-turbo", () => import("eslint-plugin-turbo")),
|
|
639
|
+
...genModuleLoader("un", "", () => import("./plugin-un-C-6x8lEe.js")),
|
|
620
640
|
...genModuleLoader("unicorn", "eslint-plugin-unicorn", () => import("eslint-plugin-unicorn")),
|
|
621
641
|
...genModuleLoader("unused-imports", "eslint-plugin-unused-imports", () => import("eslint-plugin-unused-imports")),
|
|
622
642
|
...genModuleLoader("vitest", "@vitest/eslint-plugin", () => import("@vitest/eslint-plugin")),
|
|
623
643
|
...genModuleLoader("vue", "eslint-plugin-vue", () => import("eslint-plugin-vue")),
|
|
644
|
+
...genModuleLoader("vue-scoped-css", "eslint-plugin-vue-scoped-css", () => import("eslint-plugin-vue-scoped-css")),
|
|
624
645
|
...genModuleLoader("vuejs-accessibility", "eslint-plugin-vuejs-accessibility", () => import("eslint-plugin-vuejs-accessibility")),
|
|
625
646
|
...genModuleLoader("wc", "eslint-plugin-wc", () => import("eslint-plugin-wc")),
|
|
626
647
|
...genModuleLoader("yml", "eslint-plugin-yml", () => import("eslint-plugin-yml")),
|
|
@@ -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-2fjJ7RBH.js";
|
|
2
|
+
import { RULES_TO_DISABLE_IN_TEST_FILES, generateDefaultTestFiles } from "./shared-BVihMRB3.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-2fjJ7RBH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/graphql.ts
|
|
4
4
|
const graphqlUnConfig = async (context) => {
|
|
@@ -9,6 +9,7 @@ const graphqlUnConfig = async (context) => {
|
|
|
9
9
|
disableRulesRequiringSchema: false
|
|
10
10
|
});
|
|
11
11
|
const [eslintPluginGraphql, isRelayInstalled] = await Promise.all([pluginsLoaders.graphql(context, { throwIfNotFound: true }).then(({ module }) => module), doesPackageExist("relay-runtime")]);
|
|
12
|
+
context.usedPlugins.add("graphql");
|
|
12
13
|
if (!eslintPluginGraphql) return null;
|
|
13
14
|
const { configJsProcessor, graphqlConfig, requireSeparateFilesFor = {}, disableRulesRequiringOperations, disableRulesRequiringSchema } = optionsResolved;
|
|
14
15
|
const configBuilderProcessor = createConfigBuilder(context, configJsProcessor, null);
|