-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
51 lines (50 loc) · 1.43 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
module.exports = {
"env": {
"es6": true,
"browser": true,
},
"parser": "babel-eslint",
"extends": ["react-app", "prettier"],
"plugins": ["graphql", "flowtype", "prettier"],
// TODO: enable when will be merged https://github.com/tleunen/eslint-import-resolver-babel-module/pull/63
// plugins: ["import", "graphql", "flowtype", "prettier"],
// settings: {
// "import/resolver": {
// "babel-module": {},
// },
// },
"globals": {
"__DEV__": true
},
"rules": {
"graphql/template-strings": ['error', {
env: 'relay',
schemaString: require('fs').readFileSync('./schema.graphql').toString(),
}],
"react/jsx-quotes": 0,
"react/jsx-indent-props": 0,
"jsx-quotes": [2, "prefer-double"],
"no-trailing-spaces": 0,
"import/no-unresolved": [2, {commonjs: true, amd: true}],
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"import/no-extraneous-dependencies": 0,
"import/imports-first": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"prettier/prettier": [
"error",
{
printWidth: 100,
singleQuote: true,
trailingComma: "es5",
tabWidth: 2,
useTabs: false,
},
],
"jsx-a11y/href-no-hash": "off",
// TODO: remove when be merged https://github.com/tleunen/eslint-import-resolver-babel-module/pull/63
"import/no-unresolved": 0,
"import/extensions": 0,
}
};