-
Notifications
You must be signed in to change notification settings - Fork 161
/
.eslintrc.js
39 lines (38 loc) · 1.11 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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
},
env: {
browser: false,
node: true,
commonjs: true,
es6: true,
mocha: true,
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
rules: {
'consistent-return': 'off',
'import/no-dynamic-require': 'off',
'max-classes-per-file': 'off',
'import/no-extraneous-dependencies': ['error', { optionalDependencies: true }],
'global-require': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'func-names': 'off',
'no-continue': 'off',
'no-else-return': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-properties': 'off',
'no-restricted-syntax': 'off',
'no-use-before-define': ['error', { classes: false, functions: false }],
'prefer-destructuring': 'off',
'prefer-template': 'off',
// this rules were disabled to make it easier to add airbnb-base, but they are good ones; we should re-enable them
// at some point
'class-methods-use-this': 'off',
'guard-for-in': 'off',
'no-shadow': 'off',
'no-underscore-dangle': 'off',
},
}