-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
27 lines (27 loc) · 864 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
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', '@vue/airbnb'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'class-methods-use-this': 0,
'linebreak-style': 'off',
// 'comma-dangle': 0,
'import/no-unresolved': 'off', // Suppress errors caused by import '@/...'
'max-len': 'off', // Allow lines longer than 100 characters
quotes: ['error', 'single', 'avoid-escape'],
'no-param-reassign': [
'error', // Allow param reassigns required by Vuex
{
props: true,
ignorePropertyModificationsFor: ['state', 'acc', 'e', 'ctx', 'req', 'request', 'res', 'response', '$scope'],
},
],
},
parserOptions: {
parser: 'babel-eslint',
},
};