forked from openearth/Grondwater-Monitoring-IJmuiden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.17 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
module.exports = {
root: true,
env: {
node: true,
},
parserOptions: {
parser: 'babel-eslint',
},
globals: {
chrome: true,
Vue: 'readable',
},
plugins: [ 'vue' ], // required to lint *.vue files
extends: [
'plugin:vue/essential',
'eslint:recommended',
],
rules: {
'array-bracket-spacing': [ 'warn', 'always' ],
'brace-style': [ 'warn', '1tbs' ],
'curly': [ 'warn', 'all' ],
'comma-dangle': [ 'warn', 'always-multiline' ],
'eol-last': [ 'error', 'always' ],
'jsx-quotes': [ 'error', 'prefer-double' ],
'keyword-spacing': [ 'warn', { 'before': true, 'after': true } ],
'semi': [ 'error', 'always' ],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 'warn',
'object-curly-spacing': [ 'warn', 'always' ],
'quotes': [ 'error', 'single' ],
'template-curly-spacing': [ 'warn', 'always' ],
'vue/max-attributes-per-line': [ 'error', { singleline: 2 } ],
'vue/no-unused-components': 'warn',
'vue/script-indent': [ 'error', 2, { baseIndent: 1 } ],
'vue/no-v-html': 'off',
},
};