forked from madxnl/dodo-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (42 loc) · 1.12 KB
/
.eslintrc.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
module.exports = {
root: true,
ignorePatterns: [
'/docs/',
'/dist/',
],
env: {
node: true,
browser: true,
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'standard',
'@vue/typescript',
'plugin:vue/vue3-recommended',
],
plugins: [
'@typescript-eslint',
'import',
],
rules: {
'comma-dangle': ['warn', 'always-multiline'],
'no-console': 'warn',
'space-before-function-paren': ['warn', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
'vue/singleline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/no-undef-components': 'error',
'func-call-spacing': 'off',
indent: 'off',
'@typescript-eslint/func-call-spacing': ['warn'],
'@typescript-eslint/indent': ['warn', 2],
'@typescript-eslint/member-delimiter-style': ['warn', { multiline: { delimiter: 'none' } }],
},
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.vue', '.d.ts'],
},
}