eslint-config-un 1.0.0-alpha.16 → 1.0.0-alpha.18
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-PNGGGTJW.js} +8 -15
- package/dist/{astro-UEHYHUGM.js → astro-AZD2TV2G.js} +5 -6
- package/dist/{ava-2FWTVEPL.js → ava-VJMIS62T.js} +2 -2
- package/dist/{better-tailwind-IDVBMJYC.js → better-tailwind-LH62VNO5.js} +1 -1
- package/dist/{case-police-KQAUMEVZ.js → case-police-GIYTIKWY.js} +1 -1
- package/dist/{chunk-7KNYEC34.js → chunk-4DHT7IZG.js} +1 -1
- package/dist/{chunk-7EW5IVZK.js → chunk-BGEJKHR6.js} +1 -1
- package/dist/{chunk-4TKBH2T4.js → chunk-IVQBTEE7.js} +1 -1
- package/dist/{chunk-5LNWM35I.js → chunk-MSLCWNNM.js} +197 -104
- package/dist/{cli-GNVUFUFC.js → cli-BDWVLILO.js} +1 -1
- package/dist/{cloudfront-functions-CD3ZDDC7.js → cloudfront-functions-GXH7ZOBS.js} +2 -2
- package/dist/{compat-NGZ6XXJ5.js → compat-2UHZKQBN.js} +1 -1
- package/dist/{cspell-XAOY7ZA3.js → cspell-O74CNNLZ.js} +1 -1
- package/dist/{css-HQN42EXD.js → css-A6EE2FZF.js} +1 -1
- package/dist/{css-in-js-QI3HM3BG.js → css-in-js-T5FHMLEM.js} +1 -1
- package/dist/{cypress-65SJZMAU.js → cypress-G73G2KK7.js} +2 -2
- package/dist/{de-morgan-CJFODBE4.js → de-morgan-WD3UJ7TL.js} +1 -1
- package/dist/{depend-6QYMABFF.js → depend-3DHZU66D.js} +9 -3
- package/dist/{ember-VG6ZC62I.js → ember-3XTGEAOD.js} +9 -17
- package/dist/{erasable-syntax-only-MJ2R43BW.js → erasable-syntax-only-23DUI7AS.js} +1 -1
- package/dist/es-EAVZOLC4.js +7 -0
- package/dist/{eslint-comments-2O66PB43.js → eslint-comments-UWWI26UX.js} +1 -1
- package/dist/{eslint-plugin-QWUYVKYP.js → eslint-plugin-AG5N43H7.js} +2 -2
- package/dist/{file-progress-2UQIEA3C.js → file-progress-T46J7RHU.js} +1 -1
- package/dist/{graphql-UI7ELKHF.js → graphql-XSKUQDPZ.js} +1 -1
- package/dist/{html-OHG7TSOD.js → html-S74XCAAX.js} +1 -1
- package/dist/{import-MH27BMF3.js → import-6EIERPAB.js} +1 -1
- package/dist/index.d.ts +656 -90
- package/dist/index.js +151 -99
- package/dist/{jest-X45TYMJB.js → jest-7CRPXVYA.js} +2 -2
- package/dist/{js-5W2SXIXZ.js → js-PSYV4H4U.js} +1 -1
- package/dist/{js-inline-LX3IH4XB.js → js-inline-PYJ2QX2Q.js} +1 -1
- package/dist/{jsdoc-DZEF6I7M.js → jsdoc-UNE2OZCL.js} +1 -1
- package/dist/{json-schema-validator-MMM46OLP.js → json-schema-validator-TUPFHRHR.js} +13 -29
- package/dist/{jsonc-HNMKGYXX.js → jsonc-D26ESFP2.js} +2 -2
- package/dist/{jsx-a11y-7EIFOIF2.js → jsx-a11y-AZIKNHOL.js} +1 -1
- package/dist/{lit-MRMK4QP7.js → lit-FNAQGDDD.js} +2 -2
- package/dist/{markdown-MPCMGISW.js → markdown-7WQ7D4GT.js} +2 -2
- package/dist/{math-JWZJBW53.js → math-6VPBB2E4.js} +1 -1
- package/dist/{mdx-YILHYDAT.js → mdx-YSJ5BUWF.js} +2 -2
- package/dist/{mocha-SWEOKMHD.js → mocha-V6FEC5CR.js} +2 -2
- package/dist/{nextjs-GFXG5JVJ.js → nextjs-C46H5SON.js} +1 -1
- package/dist/{no-only-tests-VQWB2FVR.js → no-only-tests-P7FOFJMP.js} +2 -2
- package/dist/{no-stylistic-rules-IAUHSEHB.js → no-stylistic-rules-NLX47BQ4.js} +104 -4
- package/dist/{no-unsanitized-IBRZ27Q4.js → no-unsanitized-TQAZGLR6.js} +1 -1
- package/dist/{node-KIPPIDUQ.js → node-U3Y53JET.js} +5 -5
- package/dist/{node-dependencies-P3UTM3J7.js → node-dependencies-2K5I2HCA.js} +11 -7
- package/dist/{package-json-O7RB3GEZ.js → package-json-EKTSKN7P.js} +2 -2
- package/dist/{perfectionist-PIE4UHVT.js → perfectionist-5OSJURYW.js} +1 -1
- package/dist/{playwright-UY6E5Q32.js → playwright-QNTTJXTT.js} +2 -2
- package/dist/{pnpm-6U2Q4HBW.js → pnpm-UI5K6LPU.js} +9 -19
- package/dist/{prefer-arrow-functions-3MC5ELG7.js → prefer-arrow-functions-IDT73HOP.js} +1 -1
- package/dist/{promise-UNK6VJDP.js → promise-KES6UDPT.js} +1 -1
- package/dist/qunit-G2QZURYN.js +54 -0
- package/dist/{qwik-AWKZWU3E.js → qwik-6RJSDYTC.js} +1 -1
- package/dist/{react-Y33IGMCN.js → react-OWDNZWWB.js} +3 -3
- package/dist/{regexp-O2ZKAVZY.js → regexp-KOFSATIJ.js} +1 -1
- package/dist/{security-UGTKLQFQ.js → security-EVK233CD.js} +1 -1
- package/dist/{solid-SCP262ZV.js → solid-WOCBBBHW.js} +1 -1
- package/dist/{sonar-YNG6I5HV.js → sonar-3PHFBKFW.js} +1 -1
- package/dist/{storybook-3JREBY5R.js → storybook-Y5GVC52G.js} +1 -1
- package/dist/{svelte-UQLM5KIR.js → svelte-QLLPEMVO.js} +4 -5
- package/dist/{tailwind-TTPVLQC2.js → tailwind-JET5KGHU.js} +1 -1
- package/dist/{tanstack-query-YC7UMMAG.js → tanstack-query-SPFRXAKE.js} +1 -1
- package/dist/{testing-library-WKKD3DDM.js → testing-library-EN6YADCW.js} +2 -2
- package/dist/{toml-OUO6CI2T.js → toml-ENZVL6RY.js} +7 -11
- package/dist/{ts-M6JIOGPO.js → ts-SXPMTDZO.js} +1 -1
- package/dist/{turbo-GGQWNFLH.js → turbo-IIZP553B.js} +1 -1
- package/dist/{unicorn-QIODLCMF.js → unicorn-ISSH6UI2.js} +1 -1
- package/dist/{unused-imports-BSQ6ZTUZ.js → unused-imports-HAPEMTHR.js} +1 -1
- package/dist/{vitest-NPXPP2HF.js → vitest-5QYDHEPB.js} +2 -2
- package/dist/{vue-KBJKKQIK.js → vue-IPGT7CYQ.js} +36 -30
- package/dist/{yaml-SJWQRBL2.js → yaml-HFLH2BAF.js} +7 -11
- package/dist/you-dont-need-lodash-underscore-GOVYTR37.js +113 -0
- package/package.json +55 -16
- package/dist/es-UTQINZDP.js +0 -7
- package/dist/you-dont-need-lodash-underscore-QOKHFKMX.js +0 -27
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-MSLCWNNM.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-MSLCWNNM.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-AZIKNHOL.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-IVQBTEE7.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-MSLCWNNM.js";
|
|
14
14
|
|
|
15
15
|
// src/configs/ava.ts
|
|
16
16
|
var avaUnConfig = (context) => {
|