forked from scalable-react/scalable-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
39 lines (38 loc) · 831 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
var path = require('path');
module.exports = {
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
"func-names": 0,
"eol-last": 0,
"react/no-unused-prop-types": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-no-bind": [ 2, {
"ignoreRefs": false,
"allowArrowFunctions": true,
"allowBind": true
}],
"graphql/template-strings": ['error', {
env: 'apollo',
schemaJsonFilepath: path.resolve(__dirname, './config/schema/schema.json'),
}]
},
"plugins": [
"import",
"react",
"graphql",
"jsx-a11y"
]
}