-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (28 loc) · 860 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
// .eslintrc.js
// Also see .prettierrc.js
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
rules: {
curly: ['error', 'multi-line', 'consistent'],
'prefer-const': ['error'],
'no-console': ['error', { allow: ['log', 'warn', 'error'] }],
// Prettier prefers no space after function
// 'space-before-function-paren': 'error',
// 'space-before-function-paren': ['error', 'never'],
// Here to match our Prettier options
semi: ['error', 'never'],
quotes: ['error', 'single'],
indent: ['error', 4],
'comma-dangle': ['error', 'always-multiline'],
'arrow-parens': ['error', 'as-needed'],
},
}