forked from beqom/alto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (58 loc) · 1.4 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', 'prettier'],
plugins: ['react', 'react-hooks'],
rules: {
'arrow-parens': ['error', 'as-needed'],
//"import/no-extraneous-dependencies": 0,
'comma-dangle': [
1,
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
'linebreak-style': 0,
'import/prefer-default-export': 0,
'react/forbid-prop-types': 0,
'react/no-danger': 0,
'react/jsx-no-target-blank': 0,
'react/require-default-props': 0,
'react/default-props-match-prop-types': 0,
'react/prop-types': 0,
'import/no-extraneous-dependencies': 2,
'react/jsx-filename-extension': 0,
'jsx-a11y/label-has-for': [
2,
{
components: ['Label'],
required: {
every: ['id'],
},
allowChildren: false,
},
],
// TODO: activate this one when it is ready
// waiting for this: https://github.com/airbnb/javascript/pull/1482
'jsx-a11y/href-no-hash': 0,
// react hooks
'react-hooks/rules-of-hooks': 'error',
},
env: {
browser: true,
es6: true,
commonjs: true,
node: true,
jest: true,
},
settings: {
'import/resolver': {
webpack: {
config: 'webpack-development.config.js',
},
},
},
};