-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (29 loc) · 852 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
module.exports = {
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 11,
},
env: {
browser: true,
node: true,
es2020: true
},
'rules': {
// https://eslint.org/docs/rules/array-bracket-spacing
'array-bracket-spacing': ['error', 'never'],
// Use the one true brace style
'brace-style': ['error', '1tbs'],
// Enforce using camelCase
'camelcase': ['warn', {'properties': 'always'}],
// Shouldn't use console.* -- use a proper logger instead, e.g.
// https://www.npmjs.com/package/winston
// 'no-console': ['warn'],
'no-debugger': ['warn'],
// Indent at 4 spaces
'indent': ['error', 2],
// No trailing spaces in code
'no-trailing-spaces': ['error'],
// Don't use semicolons at the end of your statements
'semi': ['error', 'always'],
},
};