-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
61 lines (60 loc) · 1.12 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
53
54
55
56
57
58
59
60
61
const path = require('path')
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jest: true
},
settings: {
react: {
version: '16.8.0-alpha.0'
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx']
}
}
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
overrides: [
{
files: ['**/__tests__/**'],
settings: {
'import/resolver': {
jest: {
jestConfigFile: path.join(__dirname, './jest.config.js')
}
}
}
}
],
rules: {
'no-console': 'off',
'no-unused-vars': 'off',
'react-hooks/rules-of-hooks': 'error',
'graphql/template-strings': [
'error',
{
env: 'literal',
tagName: 'gql',
projectName: 'app'
}
]
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['flowtype', 'react', 'react-hooks', 'jsx-a11y', 'graphql']
}