forked from sveltejs/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (22 loc) · 764 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import antfu from '@antfu/eslint-config'
import antfuOptions from './rules/antfuOptions.js'
import rzConfigBase from './rules/rzConfigBase.js'
import rzConfigSvelte from './rules/rzConfigSvelte.js'
import rzConfigTailwind from './rules/rzConfigTailwind.js'
import rzConfigPrettier from './rules/rzConfigPrettier.js'
const runkai = (options, ...configs) => {
return antfu(
// @antfu/eslint-config options, must be the first argument
{
...antfuOptions,
...options
},
// Additional flat configs start from here
rzConfigBase,
...configs
)
}
const svelte = rzConfigSvelte
const tailwind = rzConfigTailwind
const prettier = rzConfigPrettier
export { runkai, svelte, tailwind, prettier }