-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
56 lines (55 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
root: true,
env: {
browser: true,
node: true,
es6: true
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: ['airbnb-base', 'plugin:vue/vue3-essential', 'prettier'],
rules: {
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
],
quotes: ['error', 'single'],
'space-before-function-paren': ['error', {
'anonymous': 'always',
'named': 'always',
'asyncArrow': 'always'
}],
// 'vue/attributes-order': 'off',
// 'vue/one-component-per-file': 'off',
// 'vue/html-closing-bracket-newline': 'off',
// 'vue/multiline-html-element-content-newline': 'off',
// 'vue/singleline-html-element-content-newline': 'off',
// 'vue/no-side-effects-in-computed-properties': 'off',
// 'vue/attribute-hyphenation': 'off',
// 'vue/require-default-prop': 'off',
// 'vue/html-self-closing': 'off',
// 'vue/max-attributes-per-line': 'off',
semi: [1, 'never'],
'comma-dangle': ['error', 'never'],
'linebreak-style': 'off',
'no-return-assign': 'off',
'no-console': 'off',
'no-shadow': 'off',
'no-param-reassign': ['error', { 'props': false }]
},
settings: {
'import/resolver': {
alias: {
map: [['@', './src', 'vue-i18n']],
extensions: ['.js', '.vue', '.jsx', '.json', '.ts']
}
}
}
})