-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
39 lines (39 loc) · 1.01 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 = {
env: {
browser: true,
jest: true,
},
ignorePatterns: ['packages/**/rollup.config.*.js'],
parser: '@babel/eslint-parser',
extends: 'airbnb-base',
rules: {
'import/no-extraneous-dependencies': 'off',
'operator-linebreak': 'off',
'prefer-destructuring': 'off',
'guard-for-in': 'off',
'default-case': 'off',
'no-case-declarations': 'off',
'import/prefer-default-export': 'off',
'no-plusplus': 'off',
'no-use-before-define': 'off',
'no-restricted-syntax': 'off',
'max-len': ['error', { code: 160 }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-alert': 'off',
'no-param-reassign': [
2,
{
props: false,
},
],
'import/no-relative-packages': 'off',
'class-methods-use-this': 'off',
},
parserOptions: {
requireConfigFile: false,
ecmaFeatures: {
legacyDecorators: true,
},
},
};