-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
50 lines (49 loc) · 1.29 KB
/
eslint.config.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
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
import love from 'eslint-config-love'
import pluginVue from 'eslint-plugin-vue'
import parser from '@typescript-eslint/parser'
export default [
{
ignores: [
'node_modules/',
'dist/',
'src/graphql/index.ts',
'.vscode/',
'**/generated',
'**/graphql.schema.json',
'**/local.settings.json',
]
},
love,
...pluginVue.configs['flat/recommended'],
{
languageOptions: {
parserOptions: {
parser,
extraFileExtensions: ['.vue'],
sourceType: 'module',
},
},
},
{
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/only-throw-error': 'off'
}
},
{
files: ['**/*.vue'],
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
'vue/multi-word-component-names': 'off'
}
}
]