forked from eteplus/vue-sui-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 1.08 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
module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
extends: 'airbnb-base',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
'import/no-unresolved': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': 0,
'no-unused-vars': [2, {'args': 'none'}],
'semi': [2, 'never'],
'object-curly-spacing': [2, 'never'],
'comma-dangle': [2, 'never'],
'no-unused-expressions': [2, {'allowShortCircuit': true, 'allowTernary': true}],
'prefer-const': 0,
'prefer-template': 0,
'prefer-arrow-callback': 0,
'max-len': [0, 120],
'space-before-function-paren': [2, {'anonymous': 'ignore', 'named': 'always' }],
'object-shorthand': [2, 'always', { 'avoidQuotes': true }],
'no-param-reassign': [2, { "props": false }],
'global-require': 0,
'brace-style': [2, 'stroustrup', {'allowSingleLine': true }],
'arrow-body-style': [2, 'always'],
'func-names': [2, 'never'],
'default-case': 0
}
}