This repository has been archived by the owner on Apr 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.js
58 lines (58 loc) · 1.72 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports = {
parser: 'babel-eslint',
extends: [
'airbnb-base',
'react-app',
'plugin:import/errors',
'prettier',
'plugin:react/recommended',
],
env: {
jest: true,
},
plugins: ['import', 'react'],
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'max-len': ['error', 120],
'no-bitwise': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-mixed-operators': 'off',
'no-await-in-loop': 'off',
'func-names': ['error', 'never'],
'no-underscore-dangle': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
'import/prefer-default-export': 'off',
'import/no-named-as-default': 'off',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['**/*.test.js', '**/*.spec.js', '**/test/*.js', '**/__tests__/*.js'] },
],
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
'no-shadow': 'off',
'consistent-return': 'off',
'spaced-comment': ['error', 'always'],
'react/prop-types': 'off',
},
settings: {
react: {
version: require('react/package.json').version,
},
},
};