-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
48 lines (47 loc) · 1.11 KB
/
.eslintrc.js
File metadata and controls
48 lines (47 loc) · 1.11 KB
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
44
45
46
47
48
module.exports = {
ignorePatterns: ['node_modules/', 'spec/'],
env: {
node: true,
browser: true,
es6: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'import/no-unresolved': 'warn',
'consistent-return': 'warn',
'no-shadow': 'warn',
'prefer-promise-reject-errors': 'warn',
'no-unused-vars': 'warn',
'no-continue': 'warn',
'no-trailing-spaces': 'warn',
'no-console': 'warn',
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'no-undef': 'off',
'no-plusplus': 'off',
'class-methods-use-this': 'off',
'max-len': 'off',
'padded-blocks': 'off',
'lines-between-class-members': 'off',
'prefer-object-spread': 'off',
'arrow-parens': 'off',
'no-restricted-syntax': 'off',
'no-tabs': 'off',
'indent': 'off',
'object-curly-newline': 'off',
'arrow-body-style': 'off',
'no-continue': 'off',
'no-param-reassign': 'off',
},
};