eslint-config-un 1.0.0-alpha.25 → 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/dist/{angular-phXG45ra.js → angular-Dq8zO9dB.js} +1 -1
- package/dist/{astro-DlN0Pj4X.js → astro-BaRlmNF6.js} +3 -2
- package/dist/{ava-CyFZReDQ.js → ava-D3yLeahA.js} +2 -2
- package/dist/{better-tailwind-DGK22xgF.js → better-tailwind-DzZxncc8.js} +1 -1
- package/dist/{case-police-eoKaiTuS.js → case-police-BSzfS2W7.js} +1 -1
- package/dist/{cli-DjZhN_-g.js → cli-Cushz403.js} +1 -1
- package/dist/{cloudfront-functions-CMi_T9Cb.js → cloudfront-functions-DKokMWat.js} +2 -2
- package/dist/{compat-oiPRMD0J.js → compat-DXktPXNE.js} +1 -1
- package/dist/{cspell-OvmU0R5d.js → cspell-QSYltlut.js} +1 -1
- package/dist/{css-DfCkX37h.js → css-BW6brZjM.js} +1 -1
- package/dist/{css-in-js-C1ArR1M4.js → css-in-js-CLTLTmeY.js} +1 -1
- package/dist/{cypress-Bu2j83FK.js → cypress-DBrfJDnp.js} +2 -2
- package/dist/{de-morgan-C9z5Ec08.js → de-morgan-D9xBhTVn.js} +1 -1
- package/dist/{depend-BUngBjF3.js → depend-CLJBkgDT.js} +2 -2
- package/dist/ember-RljWgPhR.js +40 -0
- package/dist/{erasable-syntax-only-B0YKu56B.js → erasable-syntax-only-BU9KylMC.js} +1 -1
- package/dist/{es-Btdbi4mU.js → es-Cm5ckJcr.js} +1 -1
- package/dist/es-WzLEpPLR.js +4 -0
- package/dist/{eslint-C_5c5bqf.js → eslint-2fjJ7RBH.js} +41 -34
- package/dist/{eslint-comments-DXRhqaQ_.js → eslint-comments-B0pBxJR2.js} +1 -1
- package/dist/{eslint-plugin-BhI5hfi2.js → eslint-plugin-DRtBWCio.js} +2 -2
- package/dist/{file-progress-tKBtvR-g.js → file-progress-D5WI6k4n.js} +1 -1
- package/dist/{graphql-DdjHxtYA.js → graphql-Bk01L8bO.js} +2 -1
- package/dist/{header-BZyK1xGl.js → header-ClmcWxDe.js} +1 -1
- package/dist/{headers-DJW2k4cj.js → headers-wGXkrUHS.js} +1 -1
- package/dist/{html-9YIixdot.js → html-C8W14qFo.js} +1 -1
- package/dist/{import-BZHyhJD3.js → import-Dbkzpx7U.js} +1 -1
- package/dist/index.d.ts +135 -33
- package/dist/index.js +81 -76
- package/dist/{jest-DrL-gOZw.js → jest-B7iXpTGS.js} +3 -2
- package/dist/{js--vM2nhPg.js → js-DfV1iflk.js} +2 -2
- package/dist/{js-inline-CqrnrtKL.js → js-inline-ZLcEprqr.js} +1 -1
- package/dist/{jsdoc-B766RwmH.js → jsdoc-DW4mcJmp.js} +1 -1
- package/dist/{json-schema-validator-CBmjDV0D.js → json-schema-validator-BKVoof4q.js} +2 -2
- package/dist/{jsonc-DOZ64vhs.js → jsonc-C3_AYHjK.js} +2 -2
- package/dist/{jsx-a11y-BgWbTKVz.js → jsx-a11y-Dagqzdyc.js} +1 -1
- package/dist/{lit-BUtsNork.js → lit-fE8Lw75C.js} +2 -2
- package/dist/{markdown-Rzo3DscK.js → markdown-Dk503MoF.js} +3 -3
- package/dist/{math-SP0Ty5KH.js → math-BzI-Z-re.js} +1 -1
- package/dist/{mdx-Bm9KmKSU.js → mdx-CxNqAUPg.js} +2 -2
- package/dist/{mocha-Dm1_NP5x.js → mocha-B_iU5y8z.js} +2 -2
- package/dist/{nextjs-DIfYQH-g.js → nextjs-Ao2q1L59.js} +1 -1
- package/dist/{no-only-tests-4CnMNdBx.js → no-only-tests-B7LnzANf.js} +2 -2
- package/dist/{no-stylistic-rules-DY9DFmuF.js → no-stylistic-rules-Bgb4I9pG.js} +7 -1
- package/dist/{no-unsanitized-DbkquhRh.js → no-unsanitized-DtM6OvsX.js} +1 -1
- package/dist/{node-CKZrL5Tu.js → node-BLCg-jTm.js} +1 -1
- package/dist/{node-dependencies-DZqClQMU.js → node-dependencies-G_bm1XND.js} +2 -2
- package/dist/{nx-BEkcijqY.js → nx-De7tCmxE.js} +1 -1
- package/dist/{package-json-BasMBwbn.js → package-json-BAGQfoyv.js} +6 -5
- package/dist/package-json-DcEoAXVE.js +4 -0
- package/dist/{perfectionist-DfYAkBTH.js → perfectionist-DxkX19Tj.js} +1 -1
- package/dist/{playwright-CQFFNFQI.js → playwright-B3E9lbgD.js} +3 -3
- package/dist/plugin-un-C-6x8lEe.js +47 -0
- package/dist/{pnpm-5p6XAuWe.js → pnpm-D2awuBcF.js} +1 -1
- package/dist/{prefer-arrow-functions-Q59fcBCw.js → prefer-arrow-functions-CNYgiEle.js} +1 -1
- package/dist/{promise-BF_jBvwj.js → promise-Bkulve4k.js} +1 -1
- package/dist/{qunit-Bvffy4Tt.js → qunit-CyxrH6YM.js} +2 -2
- package/dist/{qwik-BxrjjX0x.js → qwik-CLL8LZae.js} +1 -1
- package/dist/{react-5sZ22k1J.js → react-CEXehnAx.js} +2 -2
- package/dist/{regexp-5xufIIwe.js → regexp-CXRITXXZ.js} +1 -1
- package/dist/{rxjs-zr4_IX3u.js → rxjs-IRUzOhOt.js} +1 -1
- package/dist/{security-BNXbmlwM.js → security-OQH0cnby.js} +1 -1
- package/dist/{shared-Bxydmgzn.js → shared-BVihMRB3.js} +1 -1
- package/dist/{solid-D9_teCPx.js → solid-CB60RVDP.js} +1 -1
- package/dist/{sonar-Bl0nyu6y.js → sonar-DY4rrWbX.js} +1 -1
- package/dist/{storybook-Cejrv98g.js → storybook-wpR-LYHq.js} +1 -1
- package/dist/{svelte-C01bFyeA.js → svelte-CDgOAvYr.js} +3 -2
- package/dist/{tailwind-Bl3B0Qlb.js → tailwind-DKsNz_N1.js} +1 -1
- package/dist/{tanstack-query-BMJGRJyF.js → tanstack-query-BiDgBkzF.js} +1 -1
- package/dist/{testing-library-Dt-JO39R.js → testing-library-ufQ3BWcB.js} +2 -2
- package/dist/{toml-CdxiVaeo.js → toml-vFdqp2r4.js} +2 -2
- package/dist/{ts-V6xr9PE-.js → ts-DKnHgl6F.js} +1 -1
- package/dist/{turbo-Bfi18aHn.js → turbo-cp_yD5n0.js} +1 -1
- package/dist/un-e6YGFfpk.js +19 -0
- package/dist/{unicorn-fQBvHCxI.js → unicorn-ClODEp4P.js} +1 -1
- package/dist/{unused-imports-AJJ9B5kV.js → unused-imports-B-xetUjw.js} +1 -1
- package/dist/{vitest-Csfs8PFK.js → vitest-CxNJUlgg.js} +3 -2
- package/dist/{vue-BfXCYMmK.js → vue-B5eg2U4l.js} +3 -2
- package/dist/{web-components-DNuAkw1b.js → web-components-C4rQ5mMD.js} +1 -1
- package/dist/{yaml-u3cx8DTC.js → yaml-SiE_57If.js} +2 -2
- package/dist/{you-dont-need-lodash-underscore-4qgvEBs_.js → you-dont-need-lodash-underscore-hK3sc5UN.js} +1 -1
- package/package.json +40 -34
- package/dist/ember-1U9t_7pa.js +0 -40
- package/dist/es-CG5URhVf.js +0 -4
- package/dist/package-json-8EegariM.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERROR, GLOB_HTML, GLOB_JS_TS_X, OFF, WARNING, assignDefaults, cloneDeep, createConfigBuilder, fetchPackageInfo, interopDefault, pluginsLoaders } from "./eslint-
|
|
1
|
+
import { ERROR, GLOB_HTML, GLOB_JS_TS_X, OFF, WARNING, assignDefaults, cloneDeep, createConfigBuilder, fetchPackageInfo, interopDefault, pluginsLoaders } from "./eslint-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) => {
|
|
@@ -138,7 +138,7 @@ const PACKAGES_TO_GET_INFO_FOR = [
|
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region package.json
|
|
140
140
|
var name = "eslint-config-un";
|
|
141
|
-
var version = "1.0.0-alpha.
|
|
141
|
+
var version = "1.0.0-alpha.26";
|
|
142
142
|
var description = "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.";
|
|
143
143
|
var keywords = ["eslint", "eslint-config"];
|
|
144
144
|
var homepage = "https://github.com/andreww2012/eslint-plugin-un";
|
|
@@ -170,7 +170,7 @@ var scripts = {
|
|
|
170
170
|
"typegen": "tsx scripts/typegen.ts",
|
|
171
171
|
"knip": "knip --no-progress",
|
|
172
172
|
"build:code": "tsdown --clean",
|
|
173
|
-
"build:code:test": "tsdown --silent --out-dir temp",
|
|
173
|
+
"build:code:test": "tsdown --silent --out-dir temp/dist",
|
|
174
174
|
"build": "nr typegen && nr build:code",
|
|
175
175
|
"test": "nr typegen && nr knip && nr spellcheck && nr lint && nr build:code:test",
|
|
176
176
|
"lint:public-types": "npx @arethetypeswrong/cli --pack . --profile esm-only",
|
|
@@ -186,18 +186,19 @@ var dependencies = {
|
|
|
186
186
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
187
187
|
"@eslint/compat": "1.3.1",
|
|
188
188
|
"@eslint/css": "0.10.0",
|
|
189
|
-
"@eslint/markdown": "7.
|
|
190
|
-
"@html-eslint/eslint-plugin": "0.43.
|
|
189
|
+
"@eslint/markdown": "7.1.0",
|
|
190
|
+
"@html-eslint/eslint-plugin": "0.43.1",
|
|
191
191
|
"@html-eslint/parser": "0.43.0",
|
|
192
192
|
"@stylistic/eslint-plugin": "5.2.2",
|
|
193
193
|
"@typescript-eslint/eslint-plugin": "8.38.0",
|
|
194
194
|
"@typescript-eslint/parser": "8.38.0",
|
|
195
|
-
"@vue/compiler-sfc": "3.5.
|
|
195
|
+
"@vue/compiler-sfc": "3.5.18",
|
|
196
|
+
"ci-info": "4.3.0",
|
|
196
197
|
"consola": "3.4.2",
|
|
197
198
|
"debug": "4.4.1",
|
|
198
199
|
"defu": "6.1.4",
|
|
199
200
|
"enhanced-resolve": "5.18.2",
|
|
200
|
-
"es-toolkit": "1.39.
|
|
201
|
+
"es-toolkit": "1.39.8",
|
|
201
202
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
202
203
|
"eslint-config-prettier": "10.1.8",
|
|
203
204
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
@@ -208,18 +209,18 @@ var dependencies = {
|
|
|
208
209
|
"eslint-plugin-file-progress": "3.0.2",
|
|
209
210
|
"eslint-plugin-html": "8.1.3",
|
|
210
211
|
"eslint-plugin-import-x": "4.16.1",
|
|
211
|
-
"eslint-plugin-jsdoc": "
|
|
212
|
+
"eslint-plugin-jsdoc": "52.0.0",
|
|
212
213
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
213
214
|
"eslint-plugin-jsonc": "2.20.1",
|
|
214
215
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
215
216
|
"eslint-plugin-math": "0.10.1",
|
|
216
217
|
"eslint-plugin-mdx": "3.6.2",
|
|
217
|
-
"eslint-plugin-n": "17.21.
|
|
218
|
+
"eslint-plugin-n": "17.21.3",
|
|
218
219
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
219
220
|
"eslint-plugin-no-type-assertion": "file:./deps/eslint-plugin-no-type-assertion-1.3.0.tgz",
|
|
220
221
|
"eslint-plugin-no-unsanitized": "4.1.2",
|
|
221
222
|
"eslint-plugin-node-dependencies": "1.1.2",
|
|
222
|
-
"eslint-plugin-package-json": "0.
|
|
223
|
+
"eslint-plugin-package-json": "0.47.0",
|
|
223
224
|
"eslint-plugin-pnpm": "1.1.0",
|
|
224
225
|
"eslint-plugin-prettier": "file:./deps/eslint-plugin-prettier-5.5.0.tgz",
|
|
225
226
|
"eslint-plugin-promise": "7.2.1",
|
|
@@ -240,7 +241,7 @@ var dependencies = {
|
|
|
240
241
|
"package-manager-detector": "1.3.0",
|
|
241
242
|
"read-package-up": "11.0.0",
|
|
242
243
|
"semver": "7.7.2",
|
|
243
|
-
"tailwind-csstree": "0.1.
|
|
244
|
+
"tailwind-csstree": "0.1.2",
|
|
244
245
|
"type-fest": "4.41.0",
|
|
245
246
|
"typescript-eslint": "8.38.0"
|
|
246
247
|
};
|
|
@@ -257,15 +258,16 @@ var devDependencies = {
|
|
|
257
258
|
"@intlify/eslint-plugin-vue-i18n": "4.0.1",
|
|
258
259
|
"@jest/environment": "30.0.5",
|
|
259
260
|
"@jest/expect": "30.0.5",
|
|
260
|
-
"@next/eslint-plugin-next": "15.4.
|
|
261
|
-
"@nx/eslint-plugin": "21.3.
|
|
261
|
+
"@next/eslint-plugin-next": "15.4.4",
|
|
262
|
+
"@nx/eslint-plugin": "21.3.7",
|
|
262
263
|
"@smarttools/eslint-plugin-rxjs": "1.0.22",
|
|
263
|
-
"@sveltejs/kit": "2.
|
|
264
|
+
"@sveltejs/kit": "2.26.1",
|
|
264
265
|
"@tanstack/eslint-plugin-query": "5.81.2",
|
|
265
266
|
"@types/debug": "4.1.12",
|
|
266
267
|
"@types/eslint-plugin-jsx-a11y": "6.10.0",
|
|
267
268
|
"@types/eslint-plugin-security": "3.0.0",
|
|
268
269
|
"@types/eslint-plugin-tailwindcss": "3.17.0",
|
|
270
|
+
"@types/estree": "1.0.8",
|
|
269
271
|
"@types/node": "20.19.1",
|
|
270
272
|
"@types/semver": "7.7.0",
|
|
271
273
|
"@vitest/eslint-plugin": "1.3.4",
|
|
@@ -274,17 +276,18 @@ var devDependencies = {
|
|
|
274
276
|
"angular-eslint-plugin18": "npm:@angular-eslint/eslint-plugin@18.4.3",
|
|
275
277
|
"astro-eslint-parser": "1.2.2",
|
|
276
278
|
"cspell": "9.2.0",
|
|
279
|
+
"destr": "2.0.5",
|
|
277
280
|
"diff": "8.0.2",
|
|
278
|
-
"ember-eslint-parser": "0.5.
|
|
281
|
+
"ember-eslint-parser": "0.5.10",
|
|
279
282
|
"eslint": "9.31.0",
|
|
280
283
|
"eslint-plugin-astro": "1.3.1",
|
|
281
284
|
"eslint-plugin-ava": "15.1.0",
|
|
282
|
-
"eslint-plugin-better-tailwindcss": "3.7.
|
|
285
|
+
"eslint-plugin-better-tailwindcss": "3.7.2",
|
|
283
286
|
"eslint-plugin-case-police": "2.0.0",
|
|
284
287
|
"eslint-plugin-compat": "6.0.2",
|
|
285
288
|
"eslint-plugin-cypress": "5.1.0",
|
|
286
289
|
"eslint-plugin-de-morgan": "1.3.0",
|
|
287
|
-
"eslint-plugin-ember": "12.
|
|
290
|
+
"eslint-plugin-ember": "12.7.0",
|
|
288
291
|
"eslint-plugin-erasable-syntax-only": "0.3.1",
|
|
289
292
|
"eslint-plugin-es-x": "9.0.0",
|
|
290
293
|
"eslint-plugin-eslint-plugin": "6.5.0",
|
|
@@ -297,9 +300,9 @@ var devDependencies = {
|
|
|
297
300
|
"eslint-plugin-mocha": "11.1.0",
|
|
298
301
|
"eslint-plugin-perfectionist": "4.15.0",
|
|
299
302
|
"eslint-plugin-pinia": "0.4.1",
|
|
300
|
-
"eslint-plugin-playwright": "2.2.
|
|
303
|
+
"eslint-plugin-playwright": "2.2.1",
|
|
301
304
|
"eslint-plugin-prefer-arrow-functions": "3.6.2",
|
|
302
|
-
"eslint-plugin-qunit": "8.2.
|
|
305
|
+
"eslint-plugin-qunit": "8.2.5",
|
|
303
306
|
"eslint-plugin-qwik": "1.15.0",
|
|
304
307
|
"eslint-plugin-react": "7.37.5",
|
|
305
308
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
@@ -310,17 +313,19 @@ var devDependencies = {
|
|
|
310
313
|
"eslint-plugin-storybook": "9.0.18",
|
|
311
314
|
"eslint-plugin-svelte": "3.11.0",
|
|
312
315
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
313
|
-
"eslint-plugin-testing-library": "7.6.
|
|
316
|
+
"eslint-plugin-testing-library": "7.6.3",
|
|
314
317
|
"eslint-plugin-turbo": "2.5.5",
|
|
315
318
|
"eslint-plugin-vue": "10.3.0",
|
|
316
319
|
"eslint-plugin-vue-scoped-css": "2.11.0",
|
|
317
320
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
318
321
|
"eslint-plugin-wc": "3.0.1",
|
|
319
322
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
|
|
320
|
-
"eslint-typegen": "2.
|
|
321
|
-
"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",
|
|
322
327
|
"knip": "5.62.0",
|
|
323
|
-
"npm-check-updates": "18.0.
|
|
328
|
+
"npm-check-updates": "18.0.2",
|
|
324
329
|
"prettier": "3.6.2",
|
|
325
330
|
"release-it": "19.0.4",
|
|
326
331
|
"shiki": "3.8.1",
|
|
@@ -330,32 +335,33 @@ var devDependencies = {
|
|
|
330
335
|
"tsx": "4.20.3",
|
|
331
336
|
"typescript": "5.8.3",
|
|
332
337
|
"vue-eslint-parser": "10.2.0",
|
|
333
|
-
"yaml-eslint-parser": "1.3.0"
|
|
338
|
+
"yaml-eslint-parser": "1.3.0",
|
|
339
|
+
"zod": "4.0.10"
|
|
334
340
|
};
|
|
335
341
|
var peerDependencies = {
|
|
336
342
|
"@angular-eslint/eslint-plugin": ">=13 <21",
|
|
337
343
|
"@angular-eslint/eslint-plugin-template": ">=13 <21",
|
|
338
344
|
"@angular-eslint/template-parser": ">=13 <21",
|
|
339
|
-
"@cspell/eslint-plugin": "^9.
|
|
345
|
+
"@cspell/eslint-plugin": "^9.2.0",
|
|
340
346
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
341
347
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
342
348
|
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
|
|
343
|
-
"@next/eslint-plugin-next": "^15.4.
|
|
344
|
-
"@nx/eslint-plugin": "^21.3.
|
|
349
|
+
"@next/eslint-plugin-next": "^15.4.4",
|
|
350
|
+
"@nx/eslint-plugin": "^21.3.7",
|
|
345
351
|
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
346
352
|
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
347
353
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
348
354
|
"astro-eslint-parser": "^1.2.2",
|
|
349
|
-
"ember-eslint-parser": "^0.5.
|
|
355
|
+
"ember-eslint-parser": "^0.5.10",
|
|
350
356
|
"eslint": "^9.15.0",
|
|
351
357
|
"eslint-plugin-astro": "^1.3.1",
|
|
352
|
-
"eslint-plugin-ava": "^15.0
|
|
353
|
-
"eslint-plugin-better-tailwindcss": "^3.7.
|
|
358
|
+
"eslint-plugin-ava": "^15.1.0",
|
|
359
|
+
"eslint-plugin-better-tailwindcss": "^3.7.2",
|
|
354
360
|
"eslint-plugin-case-police": "^2.0.0",
|
|
355
361
|
"eslint-plugin-compat": "^6.0.2",
|
|
356
362
|
"eslint-plugin-cypress": "^5.1.0",
|
|
357
363
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
358
|
-
"eslint-plugin-ember": "^12.
|
|
364
|
+
"eslint-plugin-ember": "^12.7.0",
|
|
359
365
|
"eslint-plugin-erasable-syntax-only": "^0.3.1",
|
|
360
366
|
"eslint-plugin-es-x": "^9.0.0",
|
|
361
367
|
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
@@ -368,9 +374,9 @@ var peerDependencies = {
|
|
|
368
374
|
"eslint-plugin-mocha": "^11.1.0",
|
|
369
375
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
370
376
|
"eslint-plugin-pinia": "^0.4.1",
|
|
371
|
-
"eslint-plugin-playwright": "^2.2.
|
|
377
|
+
"eslint-plugin-playwright": "^2.2.1",
|
|
372
378
|
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
|
|
373
|
-
"eslint-plugin-qunit": "^8.2.
|
|
379
|
+
"eslint-plugin-qunit": "^8.2.5",
|
|
374
380
|
"eslint-plugin-qwik": "^1.15.0",
|
|
375
381
|
"eslint-plugin-react": "^7.37.5",
|
|
376
382
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
@@ -381,14 +387,14 @@ var peerDependencies = {
|
|
|
381
387
|
"eslint-plugin-storybook": "^9.0.18",
|
|
382
388
|
"eslint-plugin-svelte": "^3.11.0",
|
|
383
389
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
384
|
-
"eslint-plugin-testing-library": "^7.6.
|
|
390
|
+
"eslint-plugin-testing-library": "^7.6.3",
|
|
385
391
|
"eslint-plugin-turbo": "^2.5.5",
|
|
386
392
|
"eslint-plugin-vue": "^10.3.0",
|
|
387
393
|
"eslint-plugin-vue-scoped-css": "^2.11.0",
|
|
388
394
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
389
395
|
"eslint-plugin-wc": "^3.0.1",
|
|
390
396
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
|
|
391
|
-
"svelte-eslint-parser": "^1.
|
|
397
|
+
"svelte-eslint-parser": "^1.3.0",
|
|
392
398
|
"toml-eslint-parser": "^0.10.0",
|
|
393
399
|
"vue-eslint-parser": "^10.2.0",
|
|
394
400
|
"yaml-eslint-parser": "^1.3.0"
|
|
@@ -630,6 +636,7 @@ const pluginsLoaders = {
|
|
|
630
636
|
...genModuleLoader("toml", "eslint-plugin-toml", () => import("eslint-plugin-toml")),
|
|
631
637
|
...genModuleLoader("ts", "typescript-eslint", () => import("typescript-eslint").then((m) => m.plugin)),
|
|
632
638
|
...genModuleLoader("turbo", "eslint-plugin-turbo", () => import("eslint-plugin-turbo")),
|
|
639
|
+
...genModuleLoader("un", "", () => import("./plugin-un-C-6x8lEe.js")),
|
|
633
640
|
...genModuleLoader("unicorn", "eslint-plugin-unicorn", () => import("eslint-plugin-unicorn")),
|
|
634
641
|
...genModuleLoader("unused-imports", "eslint-plugin-unused-imports", () => import("eslint-plugin-unused-imports")),
|
|
635
642
|
...genModuleLoader("vitest", "@vitest/eslint-plugin", () => import("@vitest/eslint-plugin")),
|
|
@@ -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);
|
|
@@ -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-2fjJ7RBH.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-2fjJ7RBH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/import.ts
|
|
4
4
|
const importUnConfig = async (context) => {
|