-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.27 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
module.exports = {
extends: [
'airbnb-base',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
],
env: {
browser: true,
jest: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
},
plugins: [
'fp',
'react',
'react-hooks',
],
rules: {
'class-methods-use-this': ['error', {
exceptMethods: ['render'],
}],
'arrow-parens': [0, 'always'],
'comma-dangle': ['error', {
arrays: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
imports: 'never',
objects: 'always-multiline',
}],
'import/prefer-default-export': 0,
'import/no-unresolved': 'off',
'linebreak-style': 0,
'new-cap': 0,
'no-alert': 'error',
'no-console': 'error',
'no-debugger': 'error',
'no-use-before-define': ['error', { functions: false, classes: true }],
'react/no-unused-prop-types': 1,
'react/prop-types': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'sort-keys': 1,
'strict': ['error', 'safe'],
// Temporary fix for linter issues
// 'template-curly-spacing': 'off',
// 'indent': "off"
},
};