-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
35 lines (35 loc) · 959 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 = {
env: {
browser: true,
es6: true,
jest: true,
node: true,
},
extends: ['eslint:recommended', 'airbnb-base'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
rules: {
'no-console': 0,
indent: ['error', 2, { ignoreComments: true, SwitchCase: 1 }],
'max-len': 0,
'consistent-return': 0,
camelcase: 0,
'no-underscore-dangle': 0,
'no-promise-executor-return': 0,
'no-template-curly-in-string': 0,
'new-cap': 0,
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: '*', next: 'if' },
{ blankLine: 'always', prev: '*', next: 'break' },
],
'import/no-extraneous-dependencies': ['error', { devDependencies: false, optionalDependencies: false, peerDependencies: false }],
},
};