eslint-config-un 1.0.0-alpha.15 → 1.0.0-alpha.17
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 +3 -1
- package/dist/{angular-ZFGONNG5.js → angular-IHCOH3PH.js} +8 -15
- package/dist/{astro-6SPPSRQA.js → astro-GXI7QBII.js} +5 -6
- package/dist/{ava-IO6ZXELD.js → ava-TO7MAEVB.js} +2 -2
- package/dist/{better-tailwind-FNHSFHYZ.js → better-tailwind-KMEN4AA3.js} +1 -1
- package/dist/{case-police-QTIM3NUF.js → case-police-5RMGCLYB.js} +1 -1
- package/dist/{chunk-YFMHTZZZ.js → chunk-LSLNWIER.js} +192 -103
- package/dist/{chunk-2BBKB537.js → chunk-QQHUJYJX.js} +1 -1
- package/dist/{chunk-6RJG6B4Y.js → chunk-T5HX4PC2.js} +1 -1
- package/dist/{chunk-A57BVULE.js → chunk-XLOEIP4T.js} +1 -1
- package/dist/{cli-YTJSWN4V.js → cli-EMKWLE5I.js} +1 -1
- package/dist/{cloudfront-functions-OU4634OO.js → cloudfront-functions-G6NQ6E7Q.js} +2 -2
- package/dist/{compat-TYMUWVEZ.js → compat-VSJN5QOY.js} +1 -1
- package/dist/{cspell-QDOZWFC4.js → cspell-3T3HP53L.js} +1 -1
- package/dist/{css-B66S3I3H.js → css-RARKHDQR.js} +1 -1
- package/dist/{css-in-js-T5BZSDEE.js → css-in-js-BIUJ2LBF.js} +1 -1
- package/dist/{cypress-VM4PMBDZ.js → cypress-SCRTTGBR.js} +2 -2
- package/dist/{de-morgan-YVLXOZXF.js → de-morgan-MSD5BDPL.js} +1 -1
- package/dist/{depend-MHNS5N2F.js → depend-R4F2LYCE.js} +9 -3
- package/dist/{ember-LSRHJ7SQ.js → ember-D6NL77SG.js} +9 -17
- package/dist/{erasable-syntax-only-OBTCSL27.js → erasable-syntax-only-T33PKURB.js} +1 -1
- package/dist/es-2I3FZ33P.js +7 -0
- package/dist/{eslint-comments-7TF4UFF4.js → eslint-comments-CSBZTYNA.js} +1 -1
- package/dist/{eslint-plugin-UDOXOXEK.js → eslint-plugin-N5CGPTPW.js} +2 -2
- package/dist/{file-progress-HKX5TR3F.js → file-progress-OMN2POVV.js} +1 -1
- package/dist/{graphql-UR5SUQ23.js → graphql-7O7BR7WI.js} +1 -1
- package/dist/{html-44X5CV25.js → html-TJRKLC2S.js} +1 -1
- package/dist/{import-P22DCT3J.js → import-UVJBHT2S.js} +1 -1
- package/dist/index.d.ts +574 -85
- package/dist/index.js +151 -99
- package/dist/{jest-HFXUIO7F.js → jest-NIK3NTYF.js} +2 -2
- package/dist/{js-YXGEV4GD.js → js-6BZSXK5J.js} +1 -1
- package/dist/{js-inline-24EEJR5E.js → js-inline-EYDLPQRG.js} +1 -1
- package/dist/{jsdoc-TDY3I4S7.js → jsdoc-W5SXLPVV.js} +1 -1
- package/dist/{json-schema-validator-4NERYR6W.js → json-schema-validator-3KZPOTSC.js} +13 -29
- package/dist/{jsonc-LOOFCMVP.js → jsonc-TY64QAMO.js} +2 -2
- package/dist/{jsx-a11y-7JNZWW5C.js → jsx-a11y-UEPJ62AD.js} +1 -1
- package/dist/{lit-Z4S3DDFV.js → lit-JZF6S4SM.js} +2 -2
- package/dist/{markdown-RDN6VJYO.js → markdown-R7DB6BIE.js} +2 -2
- package/dist/{math-L3HDG5ZY.js → math-XY6QG5HV.js} +1 -1
- package/dist/{mdx-F7XXJVRU.js → mdx-MJT4A6GQ.js} +2 -2
- package/dist/{mocha-TL3I4LS4.js → mocha-OUWFJILW.js} +2 -2
- package/dist/{nextjs-KXQX5GR2.js → nextjs-HNKNY5SE.js} +1 -1
- package/dist/{no-only-tests-MO75G7V3.js → no-only-tests-UWCW6LKF.js} +2 -2
- package/dist/{no-stylistic-rules-G54INGJF.js → no-stylistic-rules-FBUSSBZJ.js} +88 -2
- package/dist/{no-unsanitized-P3YTDMSI.js → no-unsanitized-LHA3QSSU.js} +1 -1
- package/dist/{node-O2V7Y54C.js → node-273ZUISN.js} +5 -5
- package/dist/{node-dependencies-MVMYIYM2.js → node-dependencies-UKV5GOPN.js} +2 -2
- package/dist/{package-json-G52S5DEC.js → package-json-ZTBAFLNF.js} +2 -2
- package/dist/{perfectionist-4CPH4E22.js → perfectionist-7LTRVMVF.js} +1 -1
- package/dist/{playwright-2QMKYCFV.js → playwright-CRA6QX5B.js} +2 -2
- package/dist/{pnpm-JB6CHWSI.js → pnpm-76WI6QPJ.js} +9 -19
- package/dist/{prefer-arrow-functions-AIQSPYZI.js → prefer-arrow-functions-4QXLSDRA.js} +1 -1
- package/dist/{promise-SVBDM7B5.js → promise-ODD5RXNB.js} +1 -1
- package/dist/qunit-ZVJGEA2Q.js +54 -0
- package/dist/{qwik-7UYJITDH.js → qwik-RPJ344TO.js} +1 -1
- package/dist/{react-ZTVZUVGN.js → react-TOYI5M5T.js} +2 -2
- package/dist/{regexp-ZWUAFGHY.js → regexp-CNS5RQSP.js} +1 -1
- package/dist/{security-AG4DWBEH.js → security-VBXXDTVR.js} +1 -1
- package/dist/{solid-EY4WAYIG.js → solid-7ZCRUTFS.js} +1 -1
- package/dist/{sonar-32BSVXAW.js → sonar-L2375M7P.js} +1 -1
- package/dist/{storybook-HUKBVEVW.js → storybook-76UMCZ5I.js} +1 -1
- package/dist/{svelte-UHE24AYG.js → svelte-JOJDWOIX.js} +4 -5
- package/dist/{tailwind-GLK5II3H.js → tailwind-CRWKODRJ.js} +1 -1
- package/dist/{tanstack-query-DHF2RPFD.js → tanstack-query-XI73YB5E.js} +1 -1
- package/dist/{testing-library-HKODELS7.js → testing-library-V326F6F3.js} +2 -2
- package/dist/{toml-SZTZFRWK.js → toml-NI53T5SB.js} +7 -11
- package/dist/{ts-IRWXYK4B.js → ts-6R6P3NA4.js} +1 -1
- package/dist/{turbo-QJM4M36C.js → turbo-UQ5MXNNT.js} +1 -1
- package/dist/{unicorn-HU4WANTH.js → unicorn-7A2GHV5W.js} +1 -1
- package/dist/{unused-imports-5EJWQNJD.js → unused-imports-GPD2LT5L.js} +1 -1
- package/dist/{vitest-SUNJXQGH.js → vitest-G2R3C5ZD.js} +2 -2
- package/dist/{vue-ALJW74V3.js → vue-RO7Y7LXW.js} +36 -30
- package/dist/{yaml-GSFGSGA6.js → yaml-6AMTF3WA.js} +7 -11
- package/dist/{you-dont-need-lodash-underscore-733NY7HU.js → you-dont-need-lodash-underscore-44IIQOXW.js} +1 -1
- package/package.json +50 -15
- package/dist/es-Y7P3OIBW.js +0 -7
package/README.md
CHANGED
|
@@ -80,8 +80,8 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
80
80
|
| `perfectionist` | `eslint-plugin-perfectionist` |
|
|
81
81
|
| `pinia` | `eslint-plugin-pinia` |
|
|
82
82
|
| `playwright` | `eslint-plugin-playwright` |
|
|
83
|
-
| `pnpm` | `eslint-plugin-pnpm` |
|
|
84
83
|
| `prefer-arrow-functions` | `eslint-plugin-prefer-arrow-functions` |
|
|
84
|
+
| `qunit` | `eslint-plugin-qunit` |
|
|
85
85
|
| `qwik` | `eslint-plugin-qwik` |
|
|
86
86
|
| `react-compiler` | `eslint-plugin-react-compiler` |
|
|
87
87
|
| `react-hooks` | `eslint-plugin-react-hooks` |
|
|
@@ -278,6 +278,8 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
278
278
|
| `vitest/noOnlyTests` | ❌ | [eslint-plugin-no-only-tests](https://npmjs.com/eslint-plugin-no-only-tests) (`no-only-tests`) | Since v1.0.0 |
|
|
279
279
|
| `ava` | ✅ (`ava` is installed) | [eslint-plugin-ava](https://npmjs.com/eslint-plugin-ava) (`ava`) | Since v1.0.0 |
|
|
280
280
|
| `ava/noOnlyTests` | ❌ | [eslint-plugin-no-only-tests](https://npmjs.com/eslint-plugin-no-only-tests) (`no-only-tests`) | Since v1.0.0 |
|
|
281
|
+
| `qunit` | ✅ (`qunit` is installed) | [eslint-plugin-qunit](https://npmjs.com/eslint-plugin-qunit) (`qunit`) | Since v1.0.0 |
|
|
282
|
+
| `qunit/noOnlyTests` | ❌ | [eslint-plugin-no-only-tests](https://npmjs.com/eslint-plugin-no-only-tests) (`no-only-tests`) | Since v1.0.0 |
|
|
281
283
|
|  `testingLibrary` | ✅ (`@testing-library/dom` is installed) | [eslint-plugin-testing-library](https://npmjs.com/eslint-plugin-testing-library) (`testing-library`) | Since v1.0.0 |
|
|
282
284
|
|  `testingLibrary/angular` | ✅ (`angular` config is enabled) | ^ | Since v1.0.0 |
|
|
283
285
|
|  `testingLibrary/marko` | ✅ (`marko` is installed) | ^ | Since v1.0.0 |
|
|
@@ -10,10 +10,9 @@ import {
|
|
|
10
10
|
interopDefault,
|
|
11
11
|
klona,
|
|
12
12
|
pluginsLoaders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LSLNWIER.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/angular.ts
|
|
16
|
-
import angularTemplateParser from "@angular-eslint/template-parser";
|
|
17
16
|
var SUPPORTED_ANGULAR_VERSIONS = [13, 14, 15, 16, 17, 18, 19, 20];
|
|
18
17
|
var LATEST_SUPPORTED_ANGULAR_VERSION = SUPPORTED_ANGULAR_VERSIONS.at(
|
|
19
18
|
-1
|
|
@@ -223,21 +222,15 @@ var angularUnConfig = async (context) => {
|
|
|
223
222
|
configTemplate,
|
|
224
223
|
"@angular-eslint/template"
|
|
225
224
|
);
|
|
226
|
-
configBuilderTemplate?.addConfig(
|
|
227
|
-
|
|
228
|
-
"angular/template",
|
|
229
|
-
{
|
|
230
|
-
includeDefaultFilesAndIgnores: true,
|
|
231
|
-
filesFallback: [GLOB_HTML],
|
|
232
|
-
doNotIgnoreHtml: true
|
|
233
|
-
}
|
|
234
|
-
],
|
|
225
|
+
configBuilderTemplate?.addConfig([
|
|
226
|
+
"angular/template",
|
|
235
227
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
228
|
+
includeDefaultFilesAndIgnores: true,
|
|
229
|
+
filesFallback: [GLOB_HTML],
|
|
230
|
+
parser: "@angular-eslint/template-parser",
|
|
231
|
+
doNotIgnoreHtml: true
|
|
239
232
|
}
|
|
240
|
-
).addRule(
|
|
233
|
+
]).addRule(
|
|
241
234
|
...getAngularEslintTemplatePluginRuleSeverity("accessibility-alt-text", a11yRulesSeverity)
|
|
242
235
|
).addRule(
|
|
243
236
|
...getAngularEslintTemplatePluginRuleSeverity(
|
|
@@ -7,14 +7,13 @@ import {
|
|
|
7
7
|
createConfigBuilder,
|
|
8
8
|
interopDefault,
|
|
9
9
|
pluginsLoaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LSLNWIER.js";
|
|
11
11
|
|
|
12
12
|
// src/configs/astro.ts
|
|
13
13
|
var DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
|
|
14
14
|
var astroUnConfig = async (context) => {
|
|
15
|
-
const [eslintPluginAstro,
|
|
15
|
+
const [eslintPluginAstro, { parser: typescriptEslintParser }] = await Promise.all([
|
|
16
16
|
pluginsLoaders.astro(context).then(({ module }) => module),
|
|
17
|
-
interopDefault(import("astro-eslint-parser")),
|
|
18
17
|
interopDefault(import("typescript-eslint"))
|
|
19
18
|
]);
|
|
20
19
|
if (!eslintPluginAstro) {
|
|
@@ -33,13 +32,13 @@ var astroUnConfig = async (context) => {
|
|
|
33
32
|
"astro/setup",
|
|
34
33
|
{
|
|
35
34
|
filesFallback: [...DEFAULT_ASTRO_FILES, ...parentConfigFiles],
|
|
36
|
-
doNotIgnoreMarkdown: true
|
|
35
|
+
doNotIgnoreMarkdown: true,
|
|
36
|
+
parser: "astro-eslint-parser"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
{
|
|
40
40
|
languageOptions: {
|
|
41
41
|
globals: eslintPluginAstro.environments.astro.globals,
|
|
42
|
-
parser: astroEslintParser,
|
|
43
42
|
parserOptions: {
|
|
44
43
|
parser: isTypescriptEnabled ? typescriptEslintParser : void 0
|
|
45
44
|
},
|
|
@@ -62,7 +61,7 @@ var astroUnConfig = async (context) => {
|
|
|
62
61
|
configs: [
|
|
63
62
|
configBuilder,
|
|
64
63
|
...configJsxA11y === false ? [] : await (async () => {
|
|
65
|
-
const { jsxA11yUnConfig } = await import("./jsx-a11y-
|
|
64
|
+
const { jsxA11yUnConfig } = await import("./jsx-a11y-UEPJ62AD.js");
|
|
66
65
|
const result = await jsxA11yUnConfig(context, {
|
|
67
66
|
prefix: "astro",
|
|
68
67
|
options: {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RULES_TO_DISABLE_IN_TEST_FILES,
|
|
3
3
|
generateConfigNoOnlyTestsBuilder,
|
|
4
4
|
generateDefaultTestFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-T5HX4PC2.js";
|
|
6
6
|
import {
|
|
7
7
|
ERROR,
|
|
8
8
|
GLOB_JS_TS_X_EXTENSION,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WARNING,
|
|
11
11
|
assignDefaults,
|
|
12
12
|
createConfigBuilder
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LSLNWIER.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/ava.ts
|
|
16
16
|
var avaUnConfig = (context) => {
|