-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
52 lines (50 loc) · 1.05 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
52
// In a file called .eslintrc.js
module.exports = {
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
rules: {
// ES6
"no-unused-vars": 'warn',
"no-undef": 'error',
"no-constant-condition": 'warn',
"no-unreachable": 'warn',
"no-prototype-builtins": 'warn',
"no-extra-semi": 'warn',
// React
"react/no-deprecated": 'error',
"react/display-name": 'warn',
"react/jsx-no-undef": 'error',
"react/prop-types": 'warn',
"react/no-unescaped-entities": 'off',
"react/no-string-refs": 'warn',
// GraphQL
"graphql/template-strings": ['error', {
// Import default settings for your GraphQL client. Supported values:
// 'apollo', 'relay', 'lokka', 'fraql', 'literal'
env: 'literal',
}]
},
settings: {
react: {
version: "16.12.0"
}
},
plugins: [
'graphql',
'react'
],
env: {
browser: true,
node: true,
jasmine: true,
es6: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
]
}