-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (48 loc) · 953 Bytes
/
.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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
modules: true,
experimentalObjectRestSpread: true,
},
},
extends: 'airbnb',
rules: {
'jsx-a11y/click-events-have-key-events': 'off',
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'react/no-did-mount-set-state': [false],
'jsx-a11y/anchor-is-valid': [
'error',
{
components: ['Link'],
specialLink: ['to', 'hrefLeft', 'hrefRight'],
aspects: ['noHref', 'invalidHref', 'preferButton'],
},
],
'max-len': 'off',
},
env: {
browser: true,
node: true,
jest: true,
},
settings: {
react: {
pragma: 'React',
version: '16.2.0',
},
'import/resolver': {
webpack: {
config: 'webpack.config.js',
},
},
},
};