@luxass/eslint-config 4.0.1 → 4.1.0
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/{chunk-VZ2YFMWH.mjs → chunk-C67L5T23.mjs} +5 -2
- package/dist/{chunk-7R4FYLS2.mjs → chunk-K6TLNQJF.mjs} +1 -4
- package/dist/configs/astro.d.cts +1 -1
- package/dist/configs/astro.d.ts +1 -1
- package/dist/configs/comments.d.cts +1 -1
- package/dist/configs/comments.d.ts +1 -1
- package/dist/configs/formatters.d.cts +1 -1
- package/dist/configs/formatters.d.ts +1 -1
- package/dist/configs/ignores.d.cts +1 -1
- package/dist/configs/ignores.d.ts +1 -1
- package/dist/configs/imports.d.cts +1 -1
- package/dist/configs/imports.d.ts +1 -1
- package/dist/configs/index.cjs +5 -6
- package/dist/configs/index.d.cts +1 -1
- package/dist/configs/index.d.ts +1 -1
- package/dist/configs/index.mjs +2 -2
- package/dist/configs/javascript.cjs +1 -4
- package/dist/configs/javascript.d.cts +1 -1
- package/dist/configs/javascript.d.ts +1 -1
- package/dist/configs/javascript.mjs +1 -1
- package/dist/configs/jsdoc.d.cts +1 -1
- package/dist/configs/jsdoc.d.ts +1 -1
- package/dist/configs/jsonc.d.cts +1 -1
- package/dist/configs/jsonc.d.ts +1 -1
- package/dist/configs/markdown.d.cts +2 -2
- package/dist/configs/markdown.d.ts +2 -2
- package/dist/configs/nextjs.d.cts +1 -1
- package/dist/configs/nextjs.d.ts +1 -1
- package/dist/configs/node.d.cts +1 -1
- package/dist/configs/node.d.ts +1 -1
- package/dist/configs/perfectionist.d.cts +1 -1
- package/dist/configs/perfectionist.d.ts +1 -1
- package/dist/configs/react.d.cts +1 -1
- package/dist/configs/react.d.ts +1 -1
- package/dist/configs/sort.d.cts +1 -1
- package/dist/configs/sort.d.ts +1 -1
- package/dist/configs/stylistic.d.cts +1 -1
- package/dist/configs/stylistic.d.ts +1 -1
- package/dist/configs/tailwindcss.d.cts +1 -1
- package/dist/configs/tailwindcss.d.ts +1 -1
- package/dist/configs/test.d.cts +1 -1
- package/dist/configs/test.d.ts +1 -1
- package/dist/configs/toml.d.cts +1 -1
- package/dist/configs/toml.d.ts +1 -1
- package/dist/configs/typescript.d.cts +1 -1
- package/dist/configs/typescript.d.ts +1 -1
- package/dist/configs/unicorn.d.cts +1 -1
- package/dist/configs/unicorn.d.ts +1 -1
- package/dist/configs/unocss.d.cts +1 -1
- package/dist/configs/unocss.d.ts +1 -1
- package/dist/configs/vue.cjs +29 -2
- package/dist/configs/vue.d.cts +1 -1
- package/dist/configs/vue.d.ts +1 -1
- package/dist/configs/vue.mjs +1 -1
- package/dist/configs/yaml.d.cts +1 -1
- package/dist/configs/yaml.d.ts +1 -1
- package/dist/index.cjs +15 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -10
- package/dist/{types-spTEGSaV.d.cts → types-kS9TgR8_.d.cts} +12 -12
- package/dist/{types-spTEGSaV.d.ts → types-kS9TgR8_.d.ts} +12 -12
- package/package.json +24 -21
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ensure,
|
|
2
3
|
interop
|
|
3
4
|
} from "./chunk-4YBQZLPS.mjs";
|
|
4
5
|
import {
|
|
@@ -9,11 +10,14 @@ import {
|
|
|
9
10
|
import { mergeProcessors } from "eslint-merge-processors";
|
|
10
11
|
async function vue(options = {}) {
|
|
11
12
|
const {
|
|
12
|
-
a11y =
|
|
13
|
+
a11y = false,
|
|
13
14
|
files = [GLOB_VUE],
|
|
14
15
|
overrides = {},
|
|
15
16
|
stylistic = true
|
|
16
17
|
} = options;
|
|
18
|
+
if (a11y) {
|
|
19
|
+
await ensure(["eslint-plugin-vuejs-accessibility"]);
|
|
20
|
+
}
|
|
17
21
|
const [
|
|
18
22
|
pluginVue,
|
|
19
23
|
parserVue,
|
|
@@ -96,7 +100,6 @@ async function vue(options = {}) {
|
|
|
96
100
|
"vue/multi-word-component-names": "off",
|
|
97
101
|
"vue/no-dupe-keys": "off",
|
|
98
102
|
"vue/no-empty-pattern": "error",
|
|
99
|
-
"vue/no-extra-parens": ["error", "functions"],
|
|
100
103
|
"vue/no-irregular-whitespace": "error",
|
|
101
104
|
"vue/no-loss-of-precision": "error",
|
|
102
105
|
"vue/no-restricted-syntax": [
|
|
@@ -61,10 +61,7 @@ async function javascript(options = {}) {
|
|
|
61
61
|
"no-class-assign": "error",
|
|
62
62
|
"no-compare-neg-zero": "error",
|
|
63
63
|
"no-cond-assign": ["error", "always"],
|
|
64
|
-
"no-console": [
|
|
65
|
-
editor ? "off" : "error",
|
|
66
|
-
{ allow: ["warn", "error"] }
|
|
67
|
-
],
|
|
64
|
+
"no-console": ["error", { allow: ["warn", "error"] }],
|
|
68
65
|
"no-const-assign": "error",
|
|
69
66
|
"no-control-regex": "error",
|
|
70
67
|
"no-debugger": "error",
|
package/dist/configs/astro.d.cts
CHANGED
package/dist/configs/astro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FormattersOptions, i as formatters } from '../types-
|
|
1
|
+
export { F as FormattersOptions, i as formatters } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FormattersOptions, i as formatters } from '../types-
|
|
1
|
+
export { F as FormattersOptions, i as formatters } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticConfig, k as FlatConfigItem } from '../types-
|
|
1
|
+
import { S as StylisticConfig, k as FlatConfigItem } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticConfig, k as FlatConfigItem } from '../types-
|
|
1
|
+
import { S as StylisticConfig, k as FlatConfigItem } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/index.cjs
CHANGED
|
@@ -568,10 +568,7 @@ async function javascript(options = {}) {
|
|
|
568
568
|
"no-class-assign": "error",
|
|
569
569
|
"no-compare-neg-zero": "error",
|
|
570
570
|
"no-cond-assign": ["error", "always"],
|
|
571
|
-
"no-console": [
|
|
572
|
-
editor ? "off" : "error",
|
|
573
|
-
{ allow: ["warn", "error"] }
|
|
574
|
-
],
|
|
571
|
+
"no-console": ["error", { allow: ["warn", "error"] }],
|
|
575
572
|
"no-const-assign": "error",
|
|
576
573
|
"no-control-regex": "error",
|
|
577
574
|
"no-debugger": "error",
|
|
@@ -1278,11 +1275,14 @@ async function typescript(options = {}) {
|
|
|
1278
1275
|
var import_eslint_merge_processors2 = require("eslint-merge-processors");
|
|
1279
1276
|
async function vue(options = {}) {
|
|
1280
1277
|
const {
|
|
1281
|
-
a11y =
|
|
1278
|
+
a11y = false,
|
|
1282
1279
|
files = [GLOB_VUE],
|
|
1283
1280
|
overrides = {},
|
|
1284
1281
|
stylistic: stylistic2 = true
|
|
1285
1282
|
} = options;
|
|
1283
|
+
if (a11y) {
|
|
1284
|
+
await ensure(["eslint-plugin-vuejs-accessibility"]);
|
|
1285
|
+
}
|
|
1286
1286
|
const [
|
|
1287
1287
|
pluginVue,
|
|
1288
1288
|
parserVue,
|
|
@@ -1365,7 +1365,6 @@ async function vue(options = {}) {
|
|
|
1365
1365
|
"vue/multi-word-component-names": "off",
|
|
1366
1366
|
"vue/no-dupe-keys": "off",
|
|
1367
1367
|
"vue/no-empty-pattern": "error",
|
|
1368
|
-
"vue/no-extra-parens": ["error", "functions"],
|
|
1369
1368
|
"vue/no-irregular-whitespace": "error",
|
|
1370
1369
|
"vue/no-loss-of-precision": "error",
|
|
1371
1370
|
"vue/no-restricted-syntax": [
|
package/dist/configs/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ export { node } from './node.cjs';
|
|
|
5
5
|
export { sortPackageJson, sortTsconfig } from './sort.cjs';
|
|
6
6
|
export { perfectionist } from './perfectionist.cjs';
|
|
7
7
|
export { ImportsOptions, imports } from './imports.cjs';
|
|
8
|
-
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-
|
|
8
|
+
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-kS9TgR8_.cjs';
|
|
9
9
|
export { JSDOCOptions, jsdoc } from './jsdoc.cjs';
|
|
10
10
|
export { MarkdownOptions, markdown } from './markdown.cjs';
|
|
11
11
|
import 'eslint-config-flat-gitignore';
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { node } from './node.js';
|
|
|
5
5
|
export { sortPackageJson, sortTsconfig } from './sort.js';
|
|
6
6
|
export { perfectionist } from './perfectionist.js';
|
|
7
7
|
export { ImportsOptions, imports } from './imports.js';
|
|
8
|
-
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-
|
|
8
|
+
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-kS9TgR8_.js';
|
|
9
9
|
export { JSDOCOptions, jsdoc } from './jsdoc.js';
|
|
10
10
|
export { MarkdownOptions, markdown } from './markdown.js';
|
|
11
11
|
import 'eslint-config-flat-gitignore';
|
package/dist/configs/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-ME2OAMS3.mjs";
|
|
2
2
|
import {
|
|
3
3
|
vue
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-C67L5T23.mjs";
|
|
5
5
|
import {
|
|
6
6
|
yaml
|
|
7
7
|
} from "../chunk-WOYZWHPM.mjs";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "../chunk-KJ7ZCBK4.mjs";
|
|
28
28
|
import {
|
|
29
29
|
javascript
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-K6TLNQJF.mjs";
|
|
31
31
|
import {
|
|
32
32
|
jsdoc
|
|
33
33
|
} from "../chunk-DVQQVCGF.mjs";
|
|
@@ -116,10 +116,7 @@ async function javascript(options = {}) {
|
|
|
116
116
|
"no-class-assign": "error",
|
|
117
117
|
"no-compare-neg-zero": "error",
|
|
118
118
|
"no-cond-assign": ["error", "always"],
|
|
119
|
-
"no-console": [
|
|
120
|
-
editor ? "off" : "error",
|
|
121
|
-
{ allow: ["warn", "error"] }
|
|
122
|
-
],
|
|
119
|
+
"no-console": ["error", { allow: ["warn", "error"] }],
|
|
123
120
|
"no-const-assign": "error",
|
|
124
121
|
"no-control-regex": "error",
|
|
125
122
|
"no-debugger": "error",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as JavaScriptOptions, j as javascript } from '../types-
|
|
1
|
+
export { J as JavaScriptOptions, j as javascript } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as JavaScriptOptions, j as javascript } from '../types-
|
|
1
|
+
export { J as JavaScriptOptions, j as javascript } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/jsdoc.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticConfig, k as FlatConfigItem } from '../types-
|
|
1
|
+
import { S as StylisticConfig, k as FlatConfigItem } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/jsdoc.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticConfig, k as FlatConfigItem } from '../types-
|
|
1
|
+
import { S as StylisticConfig, k as FlatConfigItem } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/jsonc.d.cts
CHANGED
package/dist/configs/jsonc.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as FlatConfigItem } from '../types-
|
|
1
|
+
import { k as FlatConfigItem } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -26,7 +26,7 @@ interface MarkdownOptions {
|
|
|
26
26
|
* Glob patterns for Markdown files.
|
|
27
27
|
*
|
|
28
28
|
* @default [GLOB_MARKDOWN]
|
|
29
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
29
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
30
30
|
*/
|
|
31
31
|
files?: string[];
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as FlatConfigItem } from '../types-
|
|
1
|
+
import { k as FlatConfigItem } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -26,7 +26,7 @@ interface MarkdownOptions {
|
|
|
26
26
|
* Glob patterns for Markdown files.
|
|
27
27
|
*
|
|
28
28
|
* @default [GLOB_MARKDOWN]
|
|
29
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
29
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
30
30
|
*/
|
|
31
31
|
files?: string[];
|
|
32
32
|
}
|
package/dist/configs/nextjs.d.ts
CHANGED
package/dist/configs/node.d.cts
CHANGED
package/dist/configs/node.d.ts
CHANGED
package/dist/configs/react.d.cts
CHANGED
package/dist/configs/react.d.ts
CHANGED
package/dist/configs/sort.d.cts
CHANGED
package/dist/configs/sort.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@stylistic/eslint-plugin';
|
|
2
|
-
export { S as StylisticConfig, o as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-
|
|
2
|
+
export { S as StylisticConfig, o as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-kS9TgR8_.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@stylistic/eslint-plugin';
|
|
2
|
-
export { S as StylisticConfig, o as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-
|
|
2
|
+
export { S as StylisticConfig, o as StylisticConfigDefaults, c as StylisticOptions, s as stylistic } from '../types-kS9TgR8_.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-
|
|
1
|
+
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-kS9TgR8_.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-
|
|
1
|
+
export { h as TailwindCSSOptions, g as tailwindcss } from '../types-kS9TgR8_.js';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@antfu/eslint-define-config';
|
|
4
4
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/test.d.cts
CHANGED
package/dist/configs/test.d.ts
CHANGED
package/dist/configs/toml.d.cts
CHANGED
package/dist/configs/toml.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@typescript-eslint/parser';
|
|
2
|
-
export { T as TypeScriptOptions, t as typescript } from '../types-
|
|
2
|
+
export { T as TypeScriptOptions, t as typescript } from '../types-kS9TgR8_.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@typescript-eslint/parser';
|
|
2
|
-
export { T as TypeScriptOptions, t as typescript } from '../types-
|
|
2
|
+
export { T as TypeScriptOptions, t as typescript } from '../types-kS9TgR8_.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/unocss.d.ts
CHANGED
package/dist/configs/vue.cjs
CHANGED
|
@@ -67,15 +67,43 @@ async function interop(m) {
|
|
|
67
67
|
const resolved = await m;
|
|
68
68
|
return resolved.default || resolved;
|
|
69
69
|
}
|
|
70
|
+
async function ensure(packages) {
|
|
71
|
+
if (import_node_process.default.env.CI || import_node_process.default.stdout.isTTY === false) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
;
|
|
75
|
+
const nonExistingPackages = packages.filter((i) => !(0, import_local_pkg.isPackageExists)(i));
|
|
76
|
+
if (nonExistingPackages.length === 0) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
;
|
|
80
|
+
const { default: prompts } = await import("prompts");
|
|
81
|
+
const { result } = await prompts([
|
|
82
|
+
{
|
|
83
|
+
name: "result",
|
|
84
|
+
message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?`,
|
|
85
|
+
type: "confirm"
|
|
86
|
+
}
|
|
87
|
+
]);
|
|
88
|
+
if (result) {
|
|
89
|
+
await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, {
|
|
90
|
+
dev: true
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
;
|
|
94
|
+
}
|
|
70
95
|
|
|
71
96
|
// src/configs/vue.ts
|
|
72
97
|
async function vue(options = {}) {
|
|
73
98
|
const {
|
|
74
|
-
a11y =
|
|
99
|
+
a11y = false,
|
|
75
100
|
files = [GLOB_VUE],
|
|
76
101
|
overrides = {},
|
|
77
102
|
stylistic = true
|
|
78
103
|
} = options;
|
|
104
|
+
if (a11y) {
|
|
105
|
+
await ensure(["eslint-plugin-vuejs-accessibility"]);
|
|
106
|
+
}
|
|
79
107
|
const [
|
|
80
108
|
pluginVue,
|
|
81
109
|
parserVue,
|
|
@@ -158,7 +186,6 @@ async function vue(options = {}) {
|
|
|
158
186
|
"vue/multi-word-component-names": "off",
|
|
159
187
|
"vue/no-dupe-keys": "off",
|
|
160
188
|
"vue/no-empty-pattern": "error",
|
|
161
|
-
"vue/no-extra-parens": ["error", "functions"],
|
|
162
189
|
"vue/no-irregular-whitespace": "error",
|
|
163
190
|
"vue/no-loss-of-precision": "error",
|
|
164
191
|
"vue/no-restricted-syntax": [
|
package/dist/configs/vue.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'eslint-processor-vue-blocks';
|
|
2
|
-
export { V as VueOptions, v as vue } from '../types-
|
|
2
|
+
export { V as VueOptions, v as vue } from '../types-kS9TgR8_.cjs';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'eslint-processor-vue-blocks';
|
|
2
|
-
export { V as VueOptions, v as vue } from '../types-
|
|
2
|
+
export { V as VueOptions, v as vue } from '../types-kS9TgR8_.js';
|
|
3
3
|
import 'eslint-config-flat-gitignore';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
5
5
|
import '@eslint-types/jsdoc/types';
|
package/dist/configs/vue.mjs
CHANGED
package/dist/configs/yaml.d.cts
CHANGED
package/dist/configs/yaml.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -576,10 +576,7 @@ async function javascript(options = {}) {
|
|
|
576
576
|
"no-class-assign": "error",
|
|
577
577
|
"no-compare-neg-zero": "error",
|
|
578
578
|
"no-cond-assign": ["error", "always"],
|
|
579
|
-
"no-console": [
|
|
580
|
-
editor ? "off" : "error",
|
|
581
|
-
{ allow: ["warn", "error"] }
|
|
582
|
-
],
|
|
579
|
+
"no-console": ["error", { allow: ["warn", "error"] }],
|
|
583
580
|
"no-const-assign": "error",
|
|
584
581
|
"no-control-regex": "error",
|
|
585
582
|
"no-debugger": "error",
|
|
@@ -1299,11 +1296,14 @@ async function typescript(options = {}) {
|
|
|
1299
1296
|
var import_eslint_merge_processors2 = require("eslint-merge-processors");
|
|
1300
1297
|
async function vue(options = {}) {
|
|
1301
1298
|
const {
|
|
1302
|
-
a11y =
|
|
1299
|
+
a11y = false,
|
|
1303
1300
|
files = [GLOB_VUE],
|
|
1304
1301
|
overrides = {},
|
|
1305
1302
|
stylistic: stylistic2 = true
|
|
1306
1303
|
} = options;
|
|
1304
|
+
if (a11y) {
|
|
1305
|
+
await ensure(["eslint-plugin-vuejs-accessibility"]);
|
|
1306
|
+
}
|
|
1307
1307
|
const [
|
|
1308
1308
|
pluginVue,
|
|
1309
1309
|
parserVue,
|
|
@@ -1386,7 +1386,6 @@ async function vue(options = {}) {
|
|
|
1386
1386
|
"vue/multi-word-component-names": "off",
|
|
1387
1387
|
"vue/no-dupe-keys": "off",
|
|
1388
1388
|
"vue/no-empty-pattern": "error",
|
|
1389
|
-
"vue/no-extra-parens": ["error", "functions"],
|
|
1390
1389
|
"vue/no-irregular-whitespace": "error",
|
|
1391
1390
|
"vue/no-loss-of-precision": "error",
|
|
1392
1391
|
"vue/no-restricted-syntax": [
|
|
@@ -2499,7 +2498,8 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
2499
2498
|
if (enableTypeScript) {
|
|
2500
2499
|
configs.push(typescript({
|
|
2501
2500
|
...resolveSubOptions(options, "typescript"),
|
|
2502
|
-
exts
|
|
2501
|
+
exts,
|
|
2502
|
+
overrides: getOverrides(options, "typescript")
|
|
2503
2503
|
}));
|
|
2504
2504
|
}
|
|
2505
2505
|
if (stylisticOptions) {
|
|
@@ -2523,7 +2523,8 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
2523
2523
|
if (enableNextJS) {
|
|
2524
2524
|
configs.push(
|
|
2525
2525
|
nextjs({
|
|
2526
|
-
...resolveSubOptions(options, "nextjs")
|
|
2526
|
+
...resolveSubOptions(options, "nextjs"),
|
|
2527
|
+
overrides: getOverrides(options, "nextjs")
|
|
2527
2528
|
})
|
|
2528
2529
|
);
|
|
2529
2530
|
}
|
|
@@ -2531,6 +2532,7 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
2531
2532
|
configs.push(
|
|
2532
2533
|
vue({
|
|
2533
2534
|
...resolveSubOptions(options, "vue"),
|
|
2535
|
+
overrides: getOverrides(options, "vue"),
|
|
2534
2536
|
stylistic: stylisticOptions,
|
|
2535
2537
|
typescript: !!enableTypeScript
|
|
2536
2538
|
})
|
|
@@ -2540,6 +2542,7 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
2540
2542
|
configs.push(
|
|
2541
2543
|
astro({
|
|
2542
2544
|
...resolveSubOptions(options, "astro"),
|
|
2545
|
+
overrides: getOverrides(options, "astro"),
|
|
2543
2546
|
typescript: !!enableTypeScript
|
|
2544
2547
|
})
|
|
2545
2548
|
);
|
|
@@ -2580,12 +2583,10 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
2580
2583
|
}
|
|
2581
2584
|
if (options.markdown ?? true) {
|
|
2582
2585
|
configs.push(
|
|
2583
|
-
markdown(
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
}
|
|
2588
|
-
)
|
|
2586
|
+
markdown({
|
|
2587
|
+
exts,
|
|
2588
|
+
overrides: getOverrides(options, "markdown")
|
|
2589
|
+
})
|
|
2589
2590
|
);
|
|
2590
2591
|
}
|
|
2591
2592
|
if (options.formatters) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-
|
|
2
|
-
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-
|
|
1
|
+
import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-kS9TgR8_.cjs';
|
|
2
|
+
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-kS9TgR8_.cjs';
|
|
3
3
|
export { comments } from './configs/comments.cjs';
|
|
4
4
|
export { unicorn } from './configs/unicorn.cjs';
|
|
5
5
|
export { ignores } from './configs/ignores.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-
|
|
2
|
-
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-
|
|
1
|
+
import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-kS9TgR8_.js';
|
|
2
|
+
export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-kS9TgR8_.js';
|
|
3
3
|
export { comments } from './configs/comments.js';
|
|
4
4
|
export { unicorn } from './configs/unicorn.js';
|
|
5
5
|
export { ignores } from './configs/ignores.js';
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "./chunk-ME2OAMS3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
vue
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C67L5T23.mjs";
|
|
8
8
|
import {
|
|
9
9
|
yaml
|
|
10
10
|
} from "./chunk-WOYZWHPM.mjs";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-KJ7ZCBK4.mjs";
|
|
31
31
|
import {
|
|
32
32
|
javascript
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-K6TLNQJF.mjs";
|
|
34
34
|
import {
|
|
35
35
|
jsdoc
|
|
36
36
|
} from "./chunk-DVQQVCGF.mjs";
|
|
@@ -147,7 +147,8 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
147
147
|
if (enableTypeScript) {
|
|
148
148
|
configs.push(typescript({
|
|
149
149
|
...resolveSubOptions(options, "typescript"),
|
|
150
|
-
exts
|
|
150
|
+
exts,
|
|
151
|
+
overrides: getOverrides(options, "typescript")
|
|
151
152
|
}));
|
|
152
153
|
}
|
|
153
154
|
if (stylisticOptions) {
|
|
@@ -171,7 +172,8 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
171
172
|
if (enableNextJS) {
|
|
172
173
|
configs.push(
|
|
173
174
|
nextjs({
|
|
174
|
-
...resolveSubOptions(options, "nextjs")
|
|
175
|
+
...resolveSubOptions(options, "nextjs"),
|
|
176
|
+
overrides: getOverrides(options, "nextjs")
|
|
175
177
|
})
|
|
176
178
|
);
|
|
177
179
|
}
|
|
@@ -179,6 +181,7 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
179
181
|
configs.push(
|
|
180
182
|
vue({
|
|
181
183
|
...resolveSubOptions(options, "vue"),
|
|
184
|
+
overrides: getOverrides(options, "vue"),
|
|
182
185
|
stylistic: stylisticOptions,
|
|
183
186
|
typescript: !!enableTypeScript
|
|
184
187
|
})
|
|
@@ -188,6 +191,7 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
188
191
|
configs.push(
|
|
189
192
|
astro({
|
|
190
193
|
...resolveSubOptions(options, "astro"),
|
|
194
|
+
overrides: getOverrides(options, "astro"),
|
|
191
195
|
typescript: !!enableTypeScript
|
|
192
196
|
})
|
|
193
197
|
);
|
|
@@ -228,12 +232,10 @@ async function luxass(options = {}, ...userConfigs) {
|
|
|
228
232
|
}
|
|
229
233
|
if (options.markdown ?? true) {
|
|
230
234
|
configs.push(
|
|
231
|
-
markdown(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
)
|
|
235
|
+
markdown({
|
|
236
|
+
exts,
|
|
237
|
+
overrides: getOverrides(options, "markdown")
|
|
238
|
+
})
|
|
237
239
|
);
|
|
238
240
|
}
|
|
239
241
|
if (options.formatters) {
|
|
@@ -53,7 +53,7 @@ interface JSONOptions {
|
|
|
53
53
|
* Glob patterns for JSON files.
|
|
54
54
|
*
|
|
55
55
|
* @default [GLOB_JSON, GLOB_JSON5, GLOB_JSONC]
|
|
56
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
56
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
57
57
|
*/
|
|
58
58
|
files?: string[];
|
|
59
59
|
}
|
|
@@ -80,7 +80,7 @@ interface TypeScriptOptions {
|
|
|
80
80
|
* Glob patterns for TypeScript files.
|
|
81
81
|
*
|
|
82
82
|
* @default GLOB_SRC
|
|
83
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
83
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
84
84
|
*/
|
|
85
85
|
files?: string[];
|
|
86
86
|
/**
|
|
@@ -120,16 +120,16 @@ interface VueOptions {
|
|
|
120
120
|
*/
|
|
121
121
|
sfcBlocks?: boolean | Options;
|
|
122
122
|
/**
|
|
123
|
-
* Enable Vue
|
|
123
|
+
* Enable Vue a11y support.
|
|
124
124
|
*
|
|
125
|
-
* @default
|
|
125
|
+
* @default false
|
|
126
126
|
*/
|
|
127
127
|
a11y?: boolean;
|
|
128
128
|
/**
|
|
129
129
|
* Glob patterns for Vue files.
|
|
130
130
|
*
|
|
131
131
|
* @default GLOB_VUE
|
|
132
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
132
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
133
133
|
*/
|
|
134
134
|
files?: string[];
|
|
135
135
|
}
|
|
@@ -150,7 +150,7 @@ interface YAMLOptions {
|
|
|
150
150
|
* Glob patterns for YAML files.
|
|
151
151
|
*
|
|
152
152
|
* @default GLOB_YAML
|
|
153
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
153
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
154
154
|
*/
|
|
155
155
|
files?: string[];
|
|
156
156
|
}
|
|
@@ -167,7 +167,7 @@ interface TestOptions {
|
|
|
167
167
|
* Glob patterns for test files.
|
|
168
168
|
*
|
|
169
169
|
* @default GLOB_TESTS
|
|
170
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
170
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
171
171
|
*/
|
|
172
172
|
files?: string[];
|
|
173
173
|
/**
|
|
@@ -194,7 +194,7 @@ interface UnoCSSOptions {
|
|
|
194
194
|
* Glob patterns for files that includes unocss classes.
|
|
195
195
|
*
|
|
196
196
|
* @default GLOB_SRC
|
|
197
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
197
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
198
198
|
*/
|
|
199
199
|
files?: string[];
|
|
200
200
|
/**
|
|
@@ -220,7 +220,7 @@ interface NextJSOptions {
|
|
|
220
220
|
* Glob patterns for Next.js files.
|
|
221
221
|
*
|
|
222
222
|
* @default [GLOB_SRC]
|
|
223
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
223
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
224
224
|
*/
|
|
225
225
|
files?: string[];
|
|
226
226
|
}
|
|
@@ -247,7 +247,7 @@ interface ReactOptions {
|
|
|
247
247
|
* Glob patterns for JSX & TSX files.
|
|
248
248
|
*
|
|
249
249
|
* @default [GLOB_JSX, GLOB_TSX]
|
|
250
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
250
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
251
251
|
*/
|
|
252
252
|
files?: string[];
|
|
253
253
|
}
|
|
@@ -285,7 +285,7 @@ interface TailwindCSSOptions {
|
|
|
285
285
|
* Glob patterns for files that includes tailwind classes.
|
|
286
286
|
*
|
|
287
287
|
* @default [GLOB_SRC]
|
|
288
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
288
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
289
289
|
*/
|
|
290
290
|
files?: string[];
|
|
291
291
|
/**
|
|
@@ -454,7 +454,7 @@ interface TOMLOptions {
|
|
|
454
454
|
* Glob patterns for TOML files.
|
|
455
455
|
*
|
|
456
456
|
* @default [GLOB_TOML]
|
|
457
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
457
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
458
458
|
*/
|
|
459
459
|
files?: string[];
|
|
460
460
|
}
|
|
@@ -53,7 +53,7 @@ interface JSONOptions {
|
|
|
53
53
|
* Glob patterns for JSON files.
|
|
54
54
|
*
|
|
55
55
|
* @default [GLOB_JSON, GLOB_JSON5, GLOB_JSONC]
|
|
56
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
56
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
57
57
|
*/
|
|
58
58
|
files?: string[];
|
|
59
59
|
}
|
|
@@ -80,7 +80,7 @@ interface TypeScriptOptions {
|
|
|
80
80
|
* Glob patterns for TypeScript files.
|
|
81
81
|
*
|
|
82
82
|
* @default GLOB_SRC
|
|
83
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
83
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
84
84
|
*/
|
|
85
85
|
files?: string[];
|
|
86
86
|
/**
|
|
@@ -120,16 +120,16 @@ interface VueOptions {
|
|
|
120
120
|
*/
|
|
121
121
|
sfcBlocks?: boolean | Options;
|
|
122
122
|
/**
|
|
123
|
-
* Enable Vue
|
|
123
|
+
* Enable Vue a11y support.
|
|
124
124
|
*
|
|
125
|
-
* @default
|
|
125
|
+
* @default false
|
|
126
126
|
*/
|
|
127
127
|
a11y?: boolean;
|
|
128
128
|
/**
|
|
129
129
|
* Glob patterns for Vue files.
|
|
130
130
|
*
|
|
131
131
|
* @default GLOB_VUE
|
|
132
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
132
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
133
133
|
*/
|
|
134
134
|
files?: string[];
|
|
135
135
|
}
|
|
@@ -150,7 +150,7 @@ interface YAMLOptions {
|
|
|
150
150
|
* Glob patterns for YAML files.
|
|
151
151
|
*
|
|
152
152
|
* @default GLOB_YAML
|
|
153
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
153
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
154
154
|
*/
|
|
155
155
|
files?: string[];
|
|
156
156
|
}
|
|
@@ -167,7 +167,7 @@ interface TestOptions {
|
|
|
167
167
|
* Glob patterns for test files.
|
|
168
168
|
*
|
|
169
169
|
* @default GLOB_TESTS
|
|
170
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
170
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
171
171
|
*/
|
|
172
172
|
files?: string[];
|
|
173
173
|
/**
|
|
@@ -194,7 +194,7 @@ interface UnoCSSOptions {
|
|
|
194
194
|
* Glob patterns for files that includes unocss classes.
|
|
195
195
|
*
|
|
196
196
|
* @default GLOB_SRC
|
|
197
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
197
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
198
198
|
*/
|
|
199
199
|
files?: string[];
|
|
200
200
|
/**
|
|
@@ -220,7 +220,7 @@ interface NextJSOptions {
|
|
|
220
220
|
* Glob patterns for Next.js files.
|
|
221
221
|
*
|
|
222
222
|
* @default [GLOB_SRC]
|
|
223
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
223
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
224
224
|
*/
|
|
225
225
|
files?: string[];
|
|
226
226
|
}
|
|
@@ -247,7 +247,7 @@ interface ReactOptions {
|
|
|
247
247
|
* Glob patterns for JSX & TSX files.
|
|
248
248
|
*
|
|
249
249
|
* @default [GLOB_JSX, GLOB_TSX]
|
|
250
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
250
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
251
251
|
*/
|
|
252
252
|
files?: string[];
|
|
253
253
|
}
|
|
@@ -285,7 +285,7 @@ interface TailwindCSSOptions {
|
|
|
285
285
|
* Glob patterns for files that includes tailwind classes.
|
|
286
286
|
*
|
|
287
287
|
* @default [GLOB_SRC]
|
|
288
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
288
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
289
289
|
*/
|
|
290
290
|
files?: string[];
|
|
291
291
|
/**
|
|
@@ -454,7 +454,7 @@ interface TOMLOptions {
|
|
|
454
454
|
* Glob patterns for TOML files.
|
|
455
455
|
*
|
|
456
456
|
* @default [GLOB_TOML]
|
|
457
|
-
* @see https://github.com/luxass/eslint-config/blob/
|
|
457
|
+
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
458
458
|
*/
|
|
459
459
|
files?: string[];
|
|
460
460
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/eslint-config",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "ESLint config for @luxass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"email": "lucasnrgaard@gmail.com",
|
|
9
9
|
"url": "https://luxass.dev"
|
|
10
10
|
},
|
|
11
|
-
"packageManager": "pnpm@8.
|
|
11
|
+
"packageManager": "pnpm@8.14.0",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"eslint-plugin-react": ">=7.33.2",
|
|
90
90
|
"eslint-plugin-react-hooks": ">=4.6.0",
|
|
91
91
|
"eslint-plugin-react-refresh": ">=0.4",
|
|
92
|
-
"eslint-plugin-tailwindcss": ">=3.13.0"
|
|
92
|
+
"eslint-plugin-tailwindcss": ">=3.13.0",
|
|
93
|
+
"eslint-plugin-vuejs-accessibility": ">=2.2.0"
|
|
93
94
|
},
|
|
94
95
|
"peerDependenciesMeta": {
|
|
95
96
|
"@unocss/eslint-plugin": {
|
|
@@ -112,29 +113,31 @@
|
|
|
112
113
|
},
|
|
113
114
|
"eslint-plugin-tailwindcss": {
|
|
114
115
|
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"eslint-plugin-vuejs-accessibility": {
|
|
118
|
+
"optional": true
|
|
115
119
|
}
|
|
116
120
|
},
|
|
117
121
|
"dependencies": {
|
|
118
122
|
"@antfu/eslint-define-config": "^1.23.0-2",
|
|
119
123
|
"@antfu/install-pkg": "^0.3.1",
|
|
120
124
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
|
|
121
|
-
"@eslint-types/jsdoc": "
|
|
122
|
-
"@eslint-types/typescript-eslint": "^6.
|
|
123
|
-
"@eslint-types/unicorn": "^
|
|
124
|
-
"@stylistic/eslint-plugin": "^1.5.
|
|
125
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
126
|
-
"@typescript-eslint/parser": "^6.
|
|
125
|
+
"@eslint-types/jsdoc": "^47.0.2",
|
|
126
|
+
"@eslint-types/typescript-eslint": "^6.17.0",
|
|
127
|
+
"@eslint-types/unicorn": "^50.0.1",
|
|
128
|
+
"@stylistic/eslint-plugin": "^1.5.3",
|
|
129
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
130
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
127
131
|
"eslint-config-flat-gitignore": "^0.1.2",
|
|
128
132
|
"eslint-merge-processors": "^0.1.0",
|
|
129
133
|
"eslint-parser-plain": "^0.1.0",
|
|
130
134
|
"eslint-plugin-antfu": "^2.1.1",
|
|
131
|
-
"eslint-plugin-astro": "^0.31.0",
|
|
132
135
|
"eslint-plugin-i": "^2.29.1",
|
|
133
|
-
"eslint-plugin-jsdoc": "^
|
|
136
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
134
137
|
"eslint-plugin-jsonc": "^2.11.2",
|
|
135
138
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
136
139
|
"eslint-plugin-markdown": "^3.0.1",
|
|
137
|
-
"eslint-plugin-n": "^16.
|
|
140
|
+
"eslint-plugin-n": "^16.6.2",
|
|
138
141
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
139
142
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
140
143
|
"eslint-plugin-toml": "^0.8.0",
|
|
@@ -142,7 +145,6 @@
|
|
|
142
145
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
143
146
|
"eslint-plugin-vitest": "^0.3.20",
|
|
144
147
|
"eslint-plugin-vue": "^9.19.2",
|
|
145
|
-
"eslint-plugin-vuejs-accessibility": "^2.2.0",
|
|
146
148
|
"eslint-plugin-yml": "^1.11.0",
|
|
147
149
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
148
150
|
"globals": "^13.24.0",
|
|
@@ -151,32 +153,33 @@
|
|
|
151
153
|
"parse-gitignore": "^2.0.0",
|
|
152
154
|
"prompts": "^2.4.2",
|
|
153
155
|
"toml-eslint-parser": "^0.9.3",
|
|
154
|
-
"vue-eslint-parser": "^9.
|
|
156
|
+
"vue-eslint-parser": "^9.4.0",
|
|
155
157
|
"yaml-eslint-parser": "^1.2.2"
|
|
156
158
|
},
|
|
157
159
|
"devDependencies": {
|
|
158
160
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
159
161
|
"@next/eslint-plugin-next": "^14.0.4",
|
|
160
|
-
"@stylistic/eslint-plugin-migrate": "^1.5.
|
|
161
|
-
"@types/eslint": "^8.56.
|
|
162
|
+
"@stylistic/eslint-plugin-migrate": "^1.5.3",
|
|
163
|
+
"@types/eslint": "^8.56.1",
|
|
162
164
|
"@types/estree": "^1.0.5",
|
|
163
165
|
"@types/node": "^18.17.19",
|
|
164
166
|
"@types/prompts": "^2.4.9",
|
|
165
|
-
"@typescript-eslint/rule-tester": "^6.
|
|
166
|
-
"@typescript-eslint/utils": "^6.
|
|
167
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
167
|
+
"@typescript-eslint/rule-tester": "^6.18.1",
|
|
168
|
+
"@typescript-eslint/utils": "^6.18.1",
|
|
169
|
+
"@unocss/eslint-plugin": "^0.58.3",
|
|
168
170
|
"eslint": "^8.56.0",
|
|
169
171
|
"eslint-plugin-astro": "^0.31.0",
|
|
170
172
|
"eslint-plugin-format": "^0.1.0",
|
|
171
173
|
"eslint-plugin-react": "^7.33.2",
|
|
172
174
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
173
175
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
174
|
-
"eslint-plugin-tailwindcss": "^3.13.
|
|
176
|
+
"eslint-plugin-tailwindcss": "^3.13.1",
|
|
177
|
+
"eslint-plugin-vuejs-accessibility": "^2.2.0",
|
|
175
178
|
"lint-staged": "^15.2.0",
|
|
176
179
|
"simple-git-hooks": "^2.9.0",
|
|
177
180
|
"tsup": "^8.0.1",
|
|
178
181
|
"typescript": "^5.3.3",
|
|
179
|
-
"vitest": "^1.1.
|
|
182
|
+
"vitest": "^1.1.3"
|
|
180
183
|
},
|
|
181
184
|
"simple-git-hooks": {
|
|
182
185
|
"pre-commit": "pnpm lint-staged"
|