-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.mjs
42 lines (39 loc) · 894 Bytes
/
eslint.config.mjs
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// eslint.config.js
import antfu from '@antfu/eslint-config'
export default antfu(
{
// Configures for antfu's config
// Enable stylistic formatting rules
stylistic: true,
// TypeScript and Vue are auto-detected, you can also explicitly enable them:
typescript: true,
vue: true,
// Disable jsonc and yaml support
jsonc: false,
yaml: false,
formatters: {
/**
* Format CSS, LESS, SCSS files, also the `<style>` blocks in Vue
* By default uses Prettier
*/
css: true,
/**
* Format HTML files
* By default uses Prettier
*/
html: true,
},
},
// From the second arguments they are ESLint Flat Configs
// you can have multiple configs
{
files: ['**/*.ts'],
rules: {},
},
{
rules: {
'no-console': 'off',
'style/semi': ['error', 'never'],
},
},
)