-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheslint.js
54 lines (54 loc) · 1.13 KB
/
eslint.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', 'plugin:prettier/recommended'],
parser: 'babel-eslint',
env: {
jest: true,
},
plugins: ['flowtype', 'jsx-a11y', 'react'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
globals: {
document: true,
window: true,
navigator: true,
},
rules: {
'no-unused-vars': [
2,
{
vars: 'all',
args: 'after-used',
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
// https://github.com/yannickcr/eslint-plugin-react/issues/621
'react/prop-types': [
'warn',
{
ignore: ['children'],
},
],
'react/require-extension': 'off',
'react/jsx-filename-extension': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
'react/no-unused-prop-types': [
'error',
{
skipShapeProps: true,
},
],
'react/forbid-prop-types': 'off',
'jsx-a11y/no-static-element-interactions': 'warn',
},
};