-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
26 lines (25 loc) · 966 Bytes
/
.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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
],
// Let's be a bit more strict than the default config, because we can. ;)
rules: {
'vue/html-indent': ['error', 4],
'vue/html-closing-bracket-newline': ['error', { 'singleline': 'never', 'multiline': 'never' }],
'vue/max-attributes-per-line': ['error', {'singleline': 10, 'multiline': 1}],
'indent': ['error', 4],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'comma-dangle': ['error', 'always-multiline'],
'space-before-function-paren': ['error', 'never'],
'eqeqeq': ['error', 'always'], // This has saved me from a lot of bugs in the past.
'vue/eqeqeq': ['error', 'always'],
},
};