-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.08 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
40
41
42
43
module.exports = {
env: {
'es6': true,
'jest/globals': true,
'node': true,
},
extends: [ 'eslint:recommended' ],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [ 'jest' ],
rules: {
'array-bracket-spacing': [ 'error', 'always' ],
'brace-style': [ 'error', 'stroustrup' ],
'camelcase': 'error',
'comma-dangle': [ 'error', 'always-multiline' ],
'computed-property-spacing': [ 'error', 'always' ],
'curly': 'error',
'eol-last': [ 'error', 'always' ],
'eqeqeq': [ 'error', 'smart' ],
'indent': [
'error', 2,
{ SwitchCase: 1 },
],
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-var': 'error',
'object-curly-spacing': [ 'error', 'always' ],
'prefer-const': 'error',
'quote-props': [ 'error', 'consistent-as-needed' ],
'quotes': [
'error', 'single',
{ allowTemplateLiterals: true },
],
'space-in-parens': [ 'error', 'always' ],
},
};