-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
41 lines (40 loc) · 946 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
// ESLint configuration
// http://eslint.org/docs/user-guide/configuring
module.exports = {
extends: [
'eslint:recommended',
'plugin:flowtype/recommended',
'prettier',
'prettier/flowtype'
],
plugins: ['flowtype', 'jsx-a11y', 'prettier'],
env: {
node: true,
es6: true
},
rules: {
'no-console': [
'error',
{
allow: ['warn', 'error', 'info']
}
],
'jsx-a11y/anchor-is-valid': [
'error',
{
components: ['Link'],
specialLink: ['to'],
aspects: ['noHref', 'invalidHref', 'preferButton']
}
],
'prettier/prettier': 'error',
'no-unused-vars': 1
},
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules']
}
}
}
};