-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
32 lines (32 loc) · 869 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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
'linebreak-style': 'off',
'comma-dangle': ['error', 'never'],
'semi': ['error', 'never'],
'space-before-function-paren': ['error', 'always'],
'nonblock-statement-body-position': ['error', 'below'],
'no-use-before-define': ['error', { functions: false } ],
'no-underscore-dangle': 'off',
'curly': ['error', 'multi-or-nest', 'consistent'],
'operator-linebreak': ['error', 'after'],
'no-param-reassign': ['error', { 'props': false }],
'no-await-in-loop': 'off',
'class-methods-use-this': 'off',
'arrow-body-style': 'off'
}
};