eslint-config-un 1.0.0-alpha.16 → 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 -0
- package/dist/{angular-YWYEFAV2.js → angular-IHCOH3PH.js} +8 -15
- package/dist/{astro-UEHYHUGM.js → astro-GXI7QBII.js} +5 -6
- package/dist/{ava-2FWTVEPL.js → ava-TO7MAEVB.js} +2 -2
- package/dist/{better-tailwind-IDVBMJYC.js → better-tailwind-KMEN4AA3.js} +1 -1
- package/dist/{case-police-KQAUMEVZ.js → case-police-5RMGCLYB.js} +1 -1
- package/dist/{chunk-5LNWM35I.js → chunk-LSLNWIER.js} +192 -99
- package/dist/{chunk-7EW5IVZK.js → chunk-QQHUJYJX.js} +1 -1
- package/dist/{chunk-4TKBH2T4.js → chunk-T5HX4PC2.js} +1 -1
- package/dist/{chunk-7KNYEC34.js → chunk-XLOEIP4T.js} +1 -1
- package/dist/{cli-GNVUFUFC.js → cli-EMKWLE5I.js} +1 -1
- package/dist/{cloudfront-functions-CD3ZDDC7.js → cloudfront-functions-G6NQ6E7Q.js} +2 -2
- package/dist/{compat-NGZ6XXJ5.js → compat-VSJN5QOY.js} +1 -1
- package/dist/{cspell-XAOY7ZA3.js → cspell-3T3HP53L.js} +1 -1
- package/dist/{css-HQN42EXD.js → css-RARKHDQR.js} +1 -1
- package/dist/{css-in-js-QI3HM3BG.js → css-in-js-BIUJ2LBF.js} +1 -1
- package/dist/{cypress-65SJZMAU.js → cypress-SCRTTGBR.js} +2 -2
- package/dist/{de-morgan-CJFODBE4.js → de-morgan-MSD5BDPL.js} +1 -1
- package/dist/{depend-6QYMABFF.js → depend-R4F2LYCE.js} +9 -3
- package/dist/{ember-VG6ZC62I.js → ember-D6NL77SG.js} +9 -17
- package/dist/{erasable-syntax-only-MJ2R43BW.js → erasable-syntax-only-T33PKURB.js} +1 -1
- package/dist/es-2I3FZ33P.js +7 -0
- package/dist/{eslint-comments-2O66PB43.js → eslint-comments-CSBZTYNA.js} +1 -1
- package/dist/{eslint-plugin-QWUYVKYP.js → eslint-plugin-N5CGPTPW.js} +2 -2
- package/dist/{file-progress-2UQIEA3C.js → file-progress-OMN2POVV.js} +1 -1
- package/dist/{graphql-UI7ELKHF.js → graphql-7O7BR7WI.js} +1 -1
- package/dist/{html-OHG7TSOD.js → html-TJRKLC2S.js} +1 -1
- package/dist/{import-MH27BMF3.js → import-UVJBHT2S.js} +1 -1
- package/dist/index.d.ts +573 -84
- package/dist/index.js +151 -99
- package/dist/{jest-X45TYMJB.js → jest-NIK3NTYF.js} +2 -2
- package/dist/{js-5W2SXIXZ.js → js-6BZSXK5J.js} +1 -1
- package/dist/{js-inline-LX3IH4XB.js → js-inline-EYDLPQRG.js} +1 -1
- package/dist/{jsdoc-DZEF6I7M.js → jsdoc-W5SXLPVV.js} +1 -1
- package/dist/{json-schema-validator-MMM46OLP.js → json-schema-validator-3KZPOTSC.js} +13 -29
- package/dist/{jsonc-HNMKGYXX.js → jsonc-TY64QAMO.js} +2 -2
- package/dist/{jsx-a11y-7EIFOIF2.js → jsx-a11y-UEPJ62AD.js} +1 -1
- package/dist/{lit-MRMK4QP7.js → lit-JZF6S4SM.js} +2 -2
- package/dist/{markdown-MPCMGISW.js → markdown-R7DB6BIE.js} +2 -2
- package/dist/{math-JWZJBW53.js → math-XY6QG5HV.js} +1 -1
- package/dist/{mdx-YILHYDAT.js → mdx-MJT4A6GQ.js} +2 -2
- package/dist/{mocha-SWEOKMHD.js → mocha-OUWFJILW.js} +2 -2
- package/dist/{nextjs-GFXG5JVJ.js → nextjs-HNKNY5SE.js} +1 -1
- package/dist/{no-only-tests-VQWB2FVR.js → no-only-tests-UWCW6LKF.js} +2 -2
- package/dist/{no-stylistic-rules-IAUHSEHB.js → no-stylistic-rules-FBUSSBZJ.js} +88 -2
- package/dist/{no-unsanitized-IBRZ27Q4.js → no-unsanitized-LHA3QSSU.js} +1 -1
- package/dist/{node-KIPPIDUQ.js → node-273ZUISN.js} +5 -5
- package/dist/{node-dependencies-P3UTM3J7.js → node-dependencies-UKV5GOPN.js} +2 -2
- package/dist/{package-json-O7RB3GEZ.js → package-json-ZTBAFLNF.js} +2 -2
- package/dist/{perfectionist-PIE4UHVT.js → perfectionist-7LTRVMVF.js} +1 -1
- package/dist/{playwright-UY6E5Q32.js → playwright-CRA6QX5B.js} +2 -2
- package/dist/{pnpm-6U2Q4HBW.js → pnpm-76WI6QPJ.js} +9 -19
- package/dist/{prefer-arrow-functions-3MC5ELG7.js → prefer-arrow-functions-4QXLSDRA.js} +1 -1
- package/dist/{promise-UNK6VJDP.js → promise-ODD5RXNB.js} +1 -1
- package/dist/qunit-ZVJGEA2Q.js +54 -0
- package/dist/{qwik-AWKZWU3E.js → qwik-RPJ344TO.js} +1 -1
- package/dist/{react-Y33IGMCN.js → react-TOYI5M5T.js} +2 -2
- package/dist/{regexp-O2ZKAVZY.js → regexp-CNS5RQSP.js} +1 -1
- package/dist/{security-UGTKLQFQ.js → security-VBXXDTVR.js} +1 -1
- package/dist/{solid-SCP262ZV.js → solid-7ZCRUTFS.js} +1 -1
- package/dist/{sonar-YNG6I5HV.js → sonar-L2375M7P.js} +1 -1
- package/dist/{storybook-3JREBY5R.js → storybook-76UMCZ5I.js} +1 -1
- package/dist/{svelte-UQLM5KIR.js → svelte-JOJDWOIX.js} +4 -5
- package/dist/{tailwind-TTPVLQC2.js → tailwind-CRWKODRJ.js} +1 -1
- package/dist/{tanstack-query-YC7UMMAG.js → tanstack-query-XI73YB5E.js} +1 -1
- package/dist/{testing-library-WKKD3DDM.js → testing-library-V326F6F3.js} +2 -2
- package/dist/{toml-OUO6CI2T.js → toml-NI53T5SB.js} +7 -11
- package/dist/{ts-M6JIOGPO.js → ts-6R6P3NA4.js} +1 -1
- package/dist/{turbo-GGQWNFLH.js → turbo-UQ5MXNNT.js} +1 -1
- package/dist/{unicorn-QIODLCMF.js → unicorn-7A2GHV5W.js} +1 -1
- package/dist/{unused-imports-BSQ6ZTUZ.js → unused-imports-GPD2LT5L.js} +1 -1
- package/dist/{vitest-NPXPP2HF.js → vitest-G2R3C5ZD.js} +2 -2
- package/dist/{vue-KBJKKQIK.js → vue-RO7Y7LXW.js} +36 -30
- package/dist/{yaml-SJWQRBL2.js → yaml-6AMTF3WA.js} +7 -11
- package/dist/{you-dont-need-lodash-underscore-QOKHFKMX.js → you-dont-need-lodash-underscore-44IIQOXW.js} +1 -1
- package/package.json +50 -11
- package/dist/es-UTQINZDP.js +0 -7
package/README.md
CHANGED
|
@@ -81,6 +81,7 @@ yarn add -D https://registry.npmjs.org/eslint-config-un/-/eslint-config-un-<VERS
|
|
|
81
81
|
| `pinia` | `eslint-plugin-pinia` |
|
|
82
82
|
| `playwright` | `eslint-plugin-playwright` |
|
|
83
83
|
| `prefer-arrow-functions` | `eslint-plugin-prefer-arrow-functions` |
|
|
84
|
+
| `qunit` | `eslint-plugin-qunit` |
|
|
84
85
|
| `qwik` | `eslint-plugin-qwik` |
|
|
85
86
|
| `react-compiler` | `eslint-plugin-react-compiler` |
|
|
86
87
|
| `react-hooks` | `eslint-plugin-react-hooks` |
|
|
@@ -277,6 +278,8 @@ Sub-config is a Config located within Config's options. If the parent config is
|
|
|
277
278
|
| `vitest/noOnlyTests` | ❌ | [eslint-plugin-no-only-tests](https://npmjs.com/eslint-plugin-no-only-tests) (`no-only-tests`) | Since v1.0.0 |
|
|
278
279
|
| `ava` | ✅ (`ava` is installed) | [eslint-plugin-ava](https://npmjs.com/eslint-plugin-ava) (`ava`) | Since v1.0.0 |
|
|
279
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 |
|
|
280
283
|
|  `testingLibrary` | ✅ (`@testing-library/dom` is installed) | [eslint-plugin-testing-library](https://npmjs.com/eslint-plugin-testing-library) (`testing-library`) | Since v1.0.0 |
|
|
281
284
|
|  `testingLibrary/angular` | ✅ (`angular` config is enabled) | ^ | Since v1.0.0 |
|
|
282
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) => {
|