-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
40 lines (40 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'linebreak-style': 0,
'import/prefer-default-export': 'off',
'import/no-default-export': 2,
'padded-blocks': [2, { classes: 'always' }],
indent: [2, 4],
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z]|window' }],
'lines-around-comment': ['error', {
beforeBlockComment: true,
afterBlockComment: false,
}],
yoda: [2, 'always'],
'no-prototype-builtins': 0,
'no-param-reassign': [2, { props: false }],
'no-useless-constructor': 0,
'no-return-assign': 0,
'class-methods-use-this': 0,
'consistent-return': 0,
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
'no-empty': 0,
},
parser: '@babel/eslint-parser',
};