-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.js
39 lines (36 loc) · 1.48 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
39
module.exports = {
env: {
node: true,
es6: true,
},
extends: `eslint:recommended`,
parserOptions: {
ecmaVersion: 2018,
sourceType: `module`,
},
rules: {
'no-debugger': [`warn`],
'arrow-parens': [`error`, `as-needed`],
'camelcase': [`error`, {'properties': `always`}],
'comma-dangle': [`error`, `always-multiline`],
'comma-spacing': [`error`, {'before': false, 'after': true}],
'eol-last': [`error`],
'eqeqeq': [`error`],
'indent': [`error`, 2],
'key-spacing': ['error', {beforeColon: false, afterColon: true, mode: `minimum`}],
'keyword-spacing': [`error`],
'linebreak-style': [`error`, `unix`],
'no-multi-spaces': ['error'],
'no-console': ['off'],
'no-trailing-spaces': [`error`],
'no-unused-expressions': [`warn`],
'no-unused-vars': [`error`],
'no-use-before-define': [`error`, {classes: false}],
'object-curly-spacing': [`error`, `never`],
'object-shorthand': [`error`, `always`],
'quotes': [`error`, `backtick`],
'semi': [`error`, `always`],
'space-before-blocks': [`error`, `always`],
'space-before-function-paren': [`error`, {anonymous: `never`, named: `never`, asyncArrow: `always`}]
},
};