@luxass/eslint-config 4.0.0-beta.5 → 4.0.0-beta.7
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-PMOB43IB.mjs → chunk-6B53AW4K.mjs} +1 -1
- package/dist/{chunk-ETF3RTA4.mjs → chunk-ADP4MYOS.mjs} +1 -1
- package/dist/{chunk-2XXYFOA7.mjs → chunk-AP74CKWC.mjs} +1 -1
- package/dist/{chunk-N6ELMARC.mjs → chunk-AWRK5LBF.mjs} +1 -1
- package/dist/{chunk-VJYICA7B.mjs → chunk-E75NMIPT.mjs} +1 -1
- package/dist/{chunk-DCAOYLG4.mjs → chunk-KL4WRPMJ.mjs} +1 -1
- package/dist/{chunk-R5QPJQWU.mjs → chunk-LGVH5YDV.mjs} +1 -1
- package/dist/{chunk-TJ6SQTNG.mjs → chunk-ODRFH37N.mjs} +1 -1
- package/dist/{chunk-C22IQSUX.mjs → chunk-P4VCNFV7.mjs} +1 -1
- package/dist/{chunk-24LIS25A.mjs → chunk-QPBW5YAJ.mjs} +1 -1
- package/dist/{chunk-YPPGNIVG.mjs → chunk-R4NSLRAE.mjs} +1 -0
- package/dist/{chunk-F2BEG6UB.mjs → chunk-SPQZTV4E.mjs} +1 -1
- package/dist/{chunk-AOKXEX6L.mjs → chunk-UTGBMMZF.mjs} +1 -1
- package/dist/configs/astro.d.cts +1 -1
- package/dist/configs/astro.mjs +2 -2
- package/dist/configs/comments.d.cts +1 -1
- package/dist/configs/ignores.cjs +1 -0
- package/dist/configs/ignores.d.cts +1 -1
- package/dist/configs/ignores.mjs +2 -2
- package/dist/configs/imports.d.cts +1 -1
- package/dist/configs/index.cjs +1 -0
- package/dist/configs/index.d.cts +1 -1
- package/dist/configs/index.mjs +13 -13
- package/dist/configs/javascript.d.cts +1 -1
- package/dist/configs/javascript.mjs +2 -2
- package/dist/configs/jsdoc.d.cts +1 -1
- package/dist/configs/jsonc.d.cts +1 -1
- package/dist/configs/jsonc.mjs +2 -2
- package/dist/configs/markdown.d.cts +1 -1
- package/dist/configs/markdown.mjs +2 -2
- package/dist/configs/nextjs.d.cts +1 -1
- package/dist/configs/nextjs.mjs +2 -2
- package/dist/configs/node.d.cts +1 -1
- package/dist/configs/perfectionist.d.cts +1 -1
- package/dist/configs/react.d.cts +1 -1
- package/dist/configs/react.mjs +2 -2
- package/dist/configs/sort.d.cts +1 -1
- package/dist/configs/stylistic.d.cts +1 -1
- package/dist/configs/tailwindcss.d.cts +1 -1
- package/dist/configs/tailwindcss.mjs +2 -2
- package/dist/configs/test.d.cts +1 -1
- package/dist/configs/test.mjs +2 -2
- package/dist/configs/typescript.d.cts +1 -1
- package/dist/configs/typescript.mjs +2 -2
- package/dist/configs/unicorn.d.cts +1 -1
- package/dist/configs/unocss.d.cts +1 -1
- package/dist/configs/vue.d.cts +1 -1
- package/dist/configs/vue.mjs +2 -2
- package/dist/configs/yaml.d.cts +1 -1
- package/dist/configs/yaml.mjs +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.mjs +13 -13
- package/dist/types-d6wL74Fv.d.cts +235 -0
- package/package.json +22 -14
package/dist/configs/astro.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConfigurationOptions, O as OverrideOptions, R as ReactOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { C as ConfigurationOptions, O as OverrideOptions, R as ReactOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/astro.mjs
CHANGED
package/dist/configs/ignores.cjs
CHANGED
package/dist/configs/ignores.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/index.cjs
CHANGED
package/dist/configs/index.d.cts
CHANGED
|
@@ -19,7 +19,7 @@ export { tailwindcss } from './tailwindcss.cjs';
|
|
|
19
19
|
export { nextjs } from './nextjs.cjs';
|
|
20
20
|
export { react } from './react.cjs';
|
|
21
21
|
export { astro } from './astro.cjs';
|
|
22
|
-
import '../types-d6wL74Fv.
|
|
22
|
+
import '../types-d6wL74Fv.cjs';
|
|
23
23
|
import 'eslint-config-flat-gitignore';
|
|
24
24
|
import '@typescript-eslint/parser';
|
|
25
25
|
import '@antfu/eslint-define-config';
|
package/dist/configs/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-FKAOMYGL.mjs";
|
|
2
2
|
import {
|
|
3
3
|
tailwindcss
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AP74CKWC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
test
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-P4VCNFV7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
typescript
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-AWRK5LBF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
unicorn
|
|
13
13
|
} from "../chunk-HE56XDG6.mjs";
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
} from "../chunk-SLYFE6WI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
vue
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-QPBW5YAJ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
yaml
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-UTGBMMZF.mjs";
|
|
23
23
|
import {
|
|
24
24
|
jsonc
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-LGVH5YDV.mjs";
|
|
26
26
|
import {
|
|
27
27
|
markdown
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-E75NMIPT.mjs";
|
|
29
29
|
import {
|
|
30
30
|
nextjs
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-KL4WRPMJ.mjs";
|
|
32
32
|
import {
|
|
33
33
|
node
|
|
34
34
|
} from "../chunk-NDNDG7BH.mjs";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "../chunk-HLDEUDLN.mjs";
|
|
38
38
|
import {
|
|
39
39
|
react
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-ODRFH37N.mjs";
|
|
41
41
|
import {
|
|
42
42
|
sortPackageJson,
|
|
43
43
|
sortTsconfig
|
|
@@ -47,20 +47,20 @@ import {
|
|
|
47
47
|
} from "../chunk-ZCBXPKVL.mjs";
|
|
48
48
|
import {
|
|
49
49
|
astro
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-6B53AW4K.mjs";
|
|
51
51
|
import {
|
|
52
52
|
comments
|
|
53
53
|
} from "../chunk-4HH6LYJ6.mjs";
|
|
54
54
|
import {
|
|
55
55
|
ignores
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-ADP4MYOS.mjs";
|
|
57
57
|
import {
|
|
58
58
|
imports
|
|
59
59
|
} from "../chunk-2SW2E3TH.mjs";
|
|
60
60
|
import {
|
|
61
61
|
javascript
|
|
62
|
-
} from "../chunk-
|
|
63
|
-
import "../chunk-
|
|
62
|
+
} from "../chunk-SPQZTV4E.mjs";
|
|
63
|
+
import "../chunk-R4NSLRAE.mjs";
|
|
64
64
|
import "../chunk-C5VMTRKT.mjs";
|
|
65
65
|
import {
|
|
66
66
|
jsdoc
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InEditorOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { I as InEditorOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/jsdoc.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/jsonc.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StylisticOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { S as StylisticOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/jsonc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OptionsComponentExts, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { a as OptionsComponentExts, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NextJSOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { N as NextJSOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/nextjs.mjs
CHANGED
package/dist/configs/node.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PerfectionistOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { P as PerfectionistOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/react.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConfigurationOptions, O as OverrideOptions, R as ReactOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { C as ConfigurationOptions, O as OverrideOptions, R as ReactOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/react.mjs
CHANGED
package/dist/configs/sort.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as StylisticConfig, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { b as StylisticConfig, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OptionsTailwindCSS, C as ConfigurationOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { c as OptionsTailwindCSS, C as ConfigurationOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/test.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InEditorOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { I as InEditorOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/test.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OptionsComponentExts, O as OverrideOptions, d as OptionsTypeScriptWithTypes, e as OptionsTypeScriptParserOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { a as OptionsComponentExts, O as OverrideOptions, d as OptionsTypeScriptWithTypes, e as OptionsTypeScriptParserOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/vue.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConfigurationOptions, O as OverrideOptions, S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { C as ConfigurationOptions, O as OverrideOptions, S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/vue.mjs
CHANGED
package/dist/configs/yaml.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OverrideOptions, S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.
|
|
1
|
+
import { O as OverrideOptions, S as StylisticOptions, F as FlatConfigItem } from '../types-d6wL74Fv.cjs';
|
|
2
2
|
import 'eslint-config-flat-gitignore';
|
|
3
3
|
import '@typescript-eslint/parser';
|
|
4
4
|
import '@antfu/eslint-define-config';
|
package/dist/configs/yaml.mjs
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -19,7 +19,7 @@ export { tailwindcss } from './configs/tailwindcss.cjs';
|
|
|
19
19
|
export { nextjs } from './configs/nextjs.cjs';
|
|
20
20
|
export { react } from './configs/react.cjs';
|
|
21
21
|
export { astro } from './configs/astro.cjs';
|
|
22
|
-
import { f as OptionsConfig, F as FlatConfigItem, A as Awaitable, U as UserConfigItem } from './types-d6wL74Fv.
|
|
22
|
+
import { f as OptionsConfig, F as FlatConfigItem, A as Awaitable, U as UserConfigItem } from './types-d6wL74Fv.cjs';
|
|
23
23
|
import 'eslint-config-flat-gitignore';
|
|
24
24
|
import '@typescript-eslint/parser';
|
|
25
25
|
import '@antfu/eslint-define-config';
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./chunk-FKAOMYGL.mjs";
|
|
2
2
|
import {
|
|
3
3
|
tailwindcss
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AP74CKWC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
test
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4VCNFV7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
typescript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AWRK5LBF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
unicorn
|
|
13
13
|
} from "./chunk-HE56XDG6.mjs";
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
} from "./chunk-SLYFE6WI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
vue
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QPBW5YAJ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
yaml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UTGBMMZF.mjs";
|
|
23
23
|
import {
|
|
24
24
|
jsonc
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LGVH5YDV.mjs";
|
|
26
26
|
import {
|
|
27
27
|
markdown
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E75NMIPT.mjs";
|
|
29
29
|
import {
|
|
30
30
|
nextjs
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KL4WRPMJ.mjs";
|
|
32
32
|
import {
|
|
33
33
|
node
|
|
34
34
|
} from "./chunk-NDNDG7BH.mjs";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-HLDEUDLN.mjs";
|
|
38
38
|
import {
|
|
39
39
|
react
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ODRFH37N.mjs";
|
|
41
41
|
import {
|
|
42
42
|
sortPackageJson,
|
|
43
43
|
sortTsconfig
|
|
@@ -47,19 +47,19 @@ import {
|
|
|
47
47
|
} from "./chunk-ZCBXPKVL.mjs";
|
|
48
48
|
import {
|
|
49
49
|
astro
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6B53AW4K.mjs";
|
|
51
51
|
import {
|
|
52
52
|
comments
|
|
53
53
|
} from "./chunk-4HH6LYJ6.mjs";
|
|
54
54
|
import {
|
|
55
55
|
ignores
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ADP4MYOS.mjs";
|
|
57
57
|
import {
|
|
58
58
|
imports
|
|
59
59
|
} from "./chunk-2SW2E3TH.mjs";
|
|
60
60
|
import {
|
|
61
61
|
javascript
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SPQZTV4E.mjs";
|
|
63
63
|
import {
|
|
64
64
|
GLOB_ASTRO,
|
|
65
65
|
GLOB_CSS,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
GLOB_TS,
|
|
85
85
|
GLOB_VUE,
|
|
86
86
|
GLOB_YAML
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-R4NSLRAE.mjs";
|
|
88
88
|
import "./chunk-C5VMTRKT.mjs";
|
|
89
89
|
import {
|
|
90
90
|
jsdoc
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
2
|
+
import { ParserOptions } from '@typescript-eslint/parser';
|
|
3
|
+
import { FlatESLintConfigItem, MergeIntersection, RenamePrefix, VitestRules, YmlRules, NRules, Prefix, ImportRules, EslintRules, JsoncRules, VueRules, EslintCommentsRules, RuleConfig } from '@antfu/eslint-define-config';
|
|
4
|
+
import { RuleOptions as RuleOptions$1 } from '@eslint-types/jsdoc/types';
|
|
5
|
+
import { RuleOptions } from '@eslint-types/typescript-eslint/types';
|
|
6
|
+
import { RuleOptions as RuleOptions$2 } from '@eslint-types/unicorn/types';
|
|
7
|
+
import { Rules as Rules$1 } from 'eslint-plugin-antfu';
|
|
8
|
+
import { StylisticCustomizeOptions, UnprefixedRuleOptions } from '@stylistic/eslint-plugin';
|
|
9
|
+
import { Linter } from 'eslint';
|
|
10
|
+
|
|
11
|
+
type WrapRuleConfig<T extends {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}> = {
|
|
14
|
+
[K in keyof T]: T[K] extends RuleConfig ? T[K] : RuleConfig<T[K]>;
|
|
15
|
+
};
|
|
16
|
+
type Awaitable<T> = T | Promise<T>;
|
|
17
|
+
type Rules = WrapRuleConfig<MergeIntersection<RenamePrefix<RuleOptions, "@typescript-eslint/", "ts/"> & RenamePrefix<VitestRules, "vitest/", "test/"> & RenamePrefix<YmlRules, "yml/", "yaml/"> & RenamePrefix<NRules, "n/", "node/"> & Prefix<UnprefixedRuleOptions, "style/"> & Prefix<Rules$1, "antfu/"> & RuleOptions$1 & ImportRules & EslintRules & JsoncRules & VueRules & RuleOptions$2 & EslintCommentsRules & {
|
|
18
|
+
"test/no-only-tests": RuleConfig<any[]>;
|
|
19
|
+
}>>;
|
|
20
|
+
type FlatConfigItem = Omit<FlatESLintConfigItem<Rules, false>, "plugins"> & {
|
|
21
|
+
/**
|
|
22
|
+
* Custom name of each config item
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
27
|
+
*
|
|
28
|
+
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
29
|
+
*/
|
|
30
|
+
plugins?: Record<string, any>;
|
|
31
|
+
};
|
|
32
|
+
type UserConfigItem = FlatConfigItem | Linter.FlatConfig;
|
|
33
|
+
interface OptionsComponentExts {
|
|
34
|
+
/**
|
|
35
|
+
* Additional extensions for components.
|
|
36
|
+
*
|
|
37
|
+
* @example ["vue"]
|
|
38
|
+
* @default []
|
|
39
|
+
*/
|
|
40
|
+
componentExts?: string[];
|
|
41
|
+
}
|
|
42
|
+
interface OptionsTypeScriptParserOptions {
|
|
43
|
+
/**
|
|
44
|
+
* Additional parser options for TypeScript.
|
|
45
|
+
*/
|
|
46
|
+
parserOptions?: Partial<ParserOptions>;
|
|
47
|
+
}
|
|
48
|
+
interface OptionsTypeScriptWithTypes {
|
|
49
|
+
/**
|
|
50
|
+
* When this options is provided, type aware rules will be enabled.
|
|
51
|
+
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
52
|
+
*/
|
|
53
|
+
tsconfigPath?: string | string[];
|
|
54
|
+
}
|
|
55
|
+
type ConfigurationOptions<TConfigs extends keyof OptionsConfig> = {
|
|
56
|
+
[K in TConfigs]?: boolean;
|
|
57
|
+
};
|
|
58
|
+
interface NextJSOptions {
|
|
59
|
+
/**
|
|
60
|
+
* Tell the plugin where the root directory is.
|
|
61
|
+
* @see https://nextjs.org/docs/app/building-your-application/configuring/eslint#rootdir
|
|
62
|
+
*
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
rootDir?: boolean | string;
|
|
66
|
+
}
|
|
67
|
+
interface ReactOptions {
|
|
68
|
+
a11y?: boolean;
|
|
69
|
+
}
|
|
70
|
+
interface AstroOptions {
|
|
71
|
+
a11y?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface OptionsTailwindCSS {
|
|
74
|
+
/**
|
|
75
|
+
* Tell the plugin where the config file is located.
|
|
76
|
+
* If not provided, the plugin will try to find the config file automatically.
|
|
77
|
+
*/
|
|
78
|
+
config?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Tell the plugin to remove duplicate classes.
|
|
81
|
+
*
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
removeDuplicates?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Tell the plugin which function names to look for.
|
|
87
|
+
* @default ["classnames", "clsx", "cx", "cn"]
|
|
88
|
+
*
|
|
89
|
+
* If NextJS is enabled, the default value will also include `tw`
|
|
90
|
+
* to support NextJS's Image Response.
|
|
91
|
+
*/
|
|
92
|
+
callees?: string[];
|
|
93
|
+
/**
|
|
94
|
+
* Tell the plugin which class regex to look for.
|
|
95
|
+
*
|
|
96
|
+
* @default "^class(Name)?$"
|
|
97
|
+
*/
|
|
98
|
+
classRegex?: string;
|
|
99
|
+
}
|
|
100
|
+
type StylisticOptions = Pick<OptionsConfig, "stylistic">;
|
|
101
|
+
type StylisticConfig = Pick<StylisticCustomizeOptions, "jsx" | "indent" | "quotes" | "semi">;
|
|
102
|
+
interface OverrideOptions {
|
|
103
|
+
overrides?: FlatConfigItem["rules"];
|
|
104
|
+
}
|
|
105
|
+
interface InEditorOptions {
|
|
106
|
+
isEditor?: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface PerfectionistOptions {
|
|
109
|
+
enableAllRules?: boolean;
|
|
110
|
+
}
|
|
111
|
+
interface OptionsConfig extends OptionsComponentExts {
|
|
112
|
+
/**
|
|
113
|
+
* Enable gitignore support.
|
|
114
|
+
*
|
|
115
|
+
* Passing an object to configure the options.
|
|
116
|
+
*
|
|
117
|
+
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
gitignore?: FlatGitignoreOptions | boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Control to disable some rules in editors.
|
|
123
|
+
* @default auto-detect based on the process.env
|
|
124
|
+
*/
|
|
125
|
+
isEditor?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Enable JSONC support.
|
|
128
|
+
*
|
|
129
|
+
* @default true
|
|
130
|
+
*/
|
|
131
|
+
jsonc?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Enable JSX related rules.
|
|
134
|
+
*
|
|
135
|
+
* Currently only stylistic rules are included.
|
|
136
|
+
*
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
jsx?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Enable Markdown support.
|
|
142
|
+
*
|
|
143
|
+
* @default true
|
|
144
|
+
*/
|
|
145
|
+
markdown?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Enable Perfectionist rules.
|
|
148
|
+
*
|
|
149
|
+
* @default false
|
|
150
|
+
*
|
|
151
|
+
* NOTE: This plugin has some very opinionated rules, use with caution.
|
|
152
|
+
*/
|
|
153
|
+
perfectionist?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Enable NextJS support.
|
|
156
|
+
*
|
|
157
|
+
* @default auto-detect based on the dependencies
|
|
158
|
+
*/
|
|
159
|
+
nextjs?: boolean | NextJSOptions;
|
|
160
|
+
/**
|
|
161
|
+
* Enable React support.
|
|
162
|
+
*
|
|
163
|
+
* @default auto-detect based on the dependencies
|
|
164
|
+
*/
|
|
165
|
+
react?: boolean | ReactOptions;
|
|
166
|
+
/**
|
|
167
|
+
* Provide overrides for rules for each integration.
|
|
168
|
+
*/
|
|
169
|
+
overrides?: {
|
|
170
|
+
javascript?: FlatConfigItem["rules"];
|
|
171
|
+
jsonc?: FlatConfigItem["rules"];
|
|
172
|
+
markdown?: FlatConfigItem["rules"];
|
|
173
|
+
test?: FlatConfigItem["rules"];
|
|
174
|
+
typescript?: FlatConfigItem["rules"];
|
|
175
|
+
unocss?: FlatConfigItem["rules"];
|
|
176
|
+
tailwind?: FlatConfigItem["rules"];
|
|
177
|
+
vue?: FlatConfigItem["rules"];
|
|
178
|
+
yaml?: FlatConfigItem["rules"];
|
|
179
|
+
nextjs?: FlatConfigItem["rules"];
|
|
180
|
+
react?: FlatConfigItem["rules"];
|
|
181
|
+
astro?: FlatConfigItem["rules"];
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Enable stylistic rules.
|
|
185
|
+
*
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
stylistic?: StylisticConfig | boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Enable test support.
|
|
191
|
+
*
|
|
192
|
+
* @default true
|
|
193
|
+
*/
|
|
194
|
+
test?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Enable TypeScript support.
|
|
197
|
+
*
|
|
198
|
+
* Passing an object to enable TypeScript Language Server support.
|
|
199
|
+
*
|
|
200
|
+
* @default auto-detect based on the dependencies
|
|
201
|
+
*/
|
|
202
|
+
typescript?: OptionsTypeScriptParserOptions | OptionsTypeScriptWithTypes | boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Enable UnoCSS support.
|
|
205
|
+
*
|
|
206
|
+
* @default auto-detect based on the dependencies
|
|
207
|
+
*/
|
|
208
|
+
unocss?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Enable TailwindCSS support.
|
|
211
|
+
*
|
|
212
|
+
* @default auto-detect based on the dependencies
|
|
213
|
+
*/
|
|
214
|
+
tailwindcss?: boolean | OptionsTailwindCSS;
|
|
215
|
+
/**
|
|
216
|
+
* Enable Vue support.
|
|
217
|
+
*
|
|
218
|
+
* @default auto-detect based on the dependencies
|
|
219
|
+
*/
|
|
220
|
+
vue?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Enable Astro support.
|
|
223
|
+
*
|
|
224
|
+
* @default auto-detect based on the dependencies
|
|
225
|
+
*/
|
|
226
|
+
astro?: boolean | AstroOptions;
|
|
227
|
+
/**
|
|
228
|
+
* Enable YAML support.
|
|
229
|
+
*
|
|
230
|
+
* @default true
|
|
231
|
+
*/
|
|
232
|
+
yaml?: boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type { Awaitable as A, ConfigurationOptions as C, FlatConfigItem as F, InEditorOptions as I, NextJSOptions as N, OverrideOptions as O, PerfectionistOptions as P, ReactOptions as R, StylisticOptions as S, UserConfigItem as U, OptionsComponentExts as a, StylisticConfig as b, OptionsTailwindCSS as c, OptionsTypeScriptWithTypes as d, OptionsTypeScriptParserOptions as e, OptionsConfig as f };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.7",
|
|
5
5
|
"packageManager": "pnpm@8.10.5",
|
|
6
6
|
"description": "ESLint config for @luxass",
|
|
7
7
|
"author": {
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@next/eslint-plugin-next": "^14.0.3",
|
|
74
74
|
"eslint": ">=8.0.0",
|
|
75
|
+
"eslint-plugin-astro": "^0.29.1",
|
|
75
76
|
"eslint-plugin-react": "^7.33.2",
|
|
76
77
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
77
78
|
"eslint-plugin-react-refresh": "^0.4.4",
|
|
@@ -92,21 +93,22 @@
|
|
|
92
93
|
},
|
|
93
94
|
"eslint-plugin-tailwindcss": {
|
|
94
95
|
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"eslint-plugin-astro": {
|
|
98
|
+
"optional": true
|
|
95
99
|
}
|
|
96
100
|
},
|
|
97
101
|
"dependencies": {
|
|
98
102
|
"@antfu/eslint-define-config": "^1.23.0-2",
|
|
99
103
|
"@eslint-types/jsdoc": "46.9.0",
|
|
100
|
-
"@eslint-types/typescript-eslint": "^6.
|
|
104
|
+
"@eslint-types/typescript-eslint": "^6.12.0",
|
|
101
105
|
"@eslint-types/unicorn": "^49.0.0",
|
|
102
|
-
"@stylistic/eslint-plugin": "^1.
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
104
|
-
"@typescript-eslint/parser": "^6.
|
|
105
|
-
"@unocss/eslint-plugin": "^0.57.
|
|
106
|
-
"astro-eslint-parser": "^0.16.0",
|
|
106
|
+
"@stylistic/eslint-plugin": "^1.4.0",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
108
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
109
|
+
"@unocss/eslint-plugin": "^0.57.7",
|
|
107
110
|
"eslint-config-flat-gitignore": "^0.1.1",
|
|
108
|
-
"eslint-plugin-antfu": "^1.0.
|
|
109
|
-
"eslint-plugin-astro": "^0.29.1",
|
|
111
|
+
"eslint-plugin-antfu": "^1.0.10",
|
|
110
112
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
111
113
|
"eslint-plugin-i": "^2.29.0",
|
|
112
114
|
"eslint-plugin-jsdoc": "^46.9.0",
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
120
122
|
"eslint-plugin-unicorn": "^49.0.0",
|
|
121
123
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
122
|
-
"eslint-plugin-vitest": "^0.3.
|
|
124
|
+
"eslint-plugin-vitest": "^0.3.10",
|
|
123
125
|
"eslint-plugin-vue": "^9.18.1",
|
|
124
126
|
"eslint-plugin-yml": "^1.10.0",
|
|
125
127
|
"globals": "^13.23.0",
|
|
@@ -130,14 +132,20 @@
|
|
|
130
132
|
"yaml-eslint-parser": "^1.2.2"
|
|
131
133
|
},
|
|
132
134
|
"devDependencies": {
|
|
133
|
-
"@
|
|
135
|
+
"@next/eslint-plugin-next": "^14.0.3",
|
|
136
|
+
"@stylistic/eslint-plugin-migrate": "^1.4.0",
|
|
134
137
|
"@types/eslint": "^8.44.7",
|
|
135
138
|
"@types/node": "^18.17.19",
|
|
136
|
-
"eslint": "^8.
|
|
139
|
+
"eslint": "^8.54.0",
|
|
140
|
+
"eslint-plugin-astro": "^0.29.1",
|
|
141
|
+
"eslint-plugin-react": "^7.33.2",
|
|
142
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
143
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
144
|
+
"eslint-plugin-tailwindcss": "^3.13.0",
|
|
137
145
|
"lint-staged": "^15.1.0",
|
|
138
146
|
"simple-git-hooks": "^2.9.0",
|
|
139
|
-
"tsup": "^
|
|
140
|
-
"typescript": "^5.
|
|
147
|
+
"tsup": "^8.0.1",
|
|
148
|
+
"typescript": "^5.3.2"
|
|
141
149
|
},
|
|
142
150
|
"simple-git-hooks": {
|
|
143
151
|
"pre-commit": "pnpm lint-staged"
|