-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 933 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
27
28
29
30
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'@vue/typescript',
],
rules: {
'class-methods-use-this': 'off',
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'import/prefer-default-export': false,
'vue/singleline-html-element-content-newline': ['error', { ignoreWhenNoAttributes: false }],
'no-param-reassign': ['error', { props: false }],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'max-len': ['error', { code: 120 }],
'vue/html-indent': ['error', 4],
indent: ['error', 4],
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
};