-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
56 lines (53 loc) · 1.76 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// @ts-check
// import withNuxt from './.nuxt/eslint.config.mjs'
// import antfu from '@antfu/eslint-config'
// export default withNuxt(
// // antfu(), // TODO enable
// )
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
export default createConfigForNuxt({
// options here
})
.override('nuxt/typescript/rules', {
rules: {
'@typescript-eslint/no-explicit-any': 'off', // TODO move to warn
'no-useless-escape': 'off', // TODO move to warn
"indent": ["error", 2, {
"SwitchCase": 1
}],
"vue/html-indent": ["error", 2, {
"baseIndent": 0
}],
"vue/component-tags-order": ["error", {
"order": ["template", "script", "style"]
}],
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 1
},
"multiline": {
"max": 1
}
}],
"vue/no-unused-components": ["error", {
"ignoreWhenBindingPresent": true
}],
"vue/no-unused-vars": ["error", {
"ignorePattern": "^_"
}],
"vue/no-template-shadow": "off",
"vue/v-on-event-hyphenation": "off",
"vue/return-in-computed-property": "off",
"no-console": ["warn", { "allow": ["warn", "error", "time", "timeEnd"] }],
"curly": [0, "all"],
"brace-style": [0, "stroustrup", { "allowSingleLine": false }],
"@typescript-eslint/brace-style": [0, "stroustrup", { "allowSingleLine": false }],
"no-unused-vars": "off",
"antfu/top-level-function": "off",
"@typescript-eslint/no-unused-vars": ["off"],
"arrow-parens": [2, "as-needed"],
'@typescript-eslint/no-dynamic-delete': 'off',
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-empty-object-type": "off",
}
})