forked from Istador/smoo.it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (32 loc) · 1.38 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
module.exports = {
root: true,
env: {
node: true,
},
parserOptions: {
ecmaVersion : 2020,
parser : '@typescript-eslint/parser',
},
rules: {
indent : [ 'error', 2 ],
'linebreak-style' : [ 'error', 'unix' ],
quotes : [ 'error', 'single' ],
semi : [ 'error', 'never' ],
'comma-dangle' : [ 'error', 'always-multiline' ],
'no-var' : [ 'error' ],
'no-multi-spaces' : [ 'error', { exceptions: { ArrayExpression: true, Property: true, TSPropertySignature: true }, ignoreEOLComments: true } ],
'array-bracket-spacing' : [ 'error', 'always' ],
'key-spacing' : [ 'error', { align: { beforeColon: true, afterColon: true, mode: 'minimum', on: 'colon' } } ],
'vue/multi-word-component-names' : 'off',
'operator-linebreak' : [ 'error', 'before' ],
'no-console' : [ (process.env.NODE_ENV === 'production' ? 'error' : 'warn'), { allow: [ 'warn', 'error' ] } ],
'no-debugger' : process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'yoda' : 'off',
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript/recommended',
'@vue/typescript',
],
}