-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
40 lines (40 loc) · 969 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
31
32
33
34
35
36
37
38
39
40
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'prettier',
'eslint:recommended',
'plugin:vue/recommended',
'plugin:node/recommended',
'plugin:promise/recommended',
],
plugins: ['prettier', 'promise', 'node'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2017,
},
rules: {
'prettier/prettier': 'error',
'no-console': 0,
'linebreak-style': ['error', 'unix'],
'node/no-deprecated-api': 'error',
'node/no-extraneous-require': 0,
'node/no-unpublished-import': 0,
'node/no-unpublished-require': 0,
'node/no-missing-require': 0,
indent: ['error', 2],
quotes: ['error', 'single'],
semi: ['error', 'never'],
},
overrides: [{
files: ['**/*.vue'],
rules: {
'node/no-unsupported-features/es-syntax': 0,
'node/no-unsupported-features/es-builtins': 0,
'node/no-unsupported-features/node-builtins': 0,
},
}]
}