forked from gitter-badger/dashboard-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.04 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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: false,
},
globals: {
process: true,
__dirname: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier/react', 'prettier'],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
},
plugins: ['graphql', 'react', 'prettier'],
rules: {
'prettier/prettier': 1,
'graphql/template-strings': [
2,
{
// Import default settings for your GraphQL client. Supported values:
// 'apollo', 'relay', 'lokka'
env: 'relay',
// Import your schema JSON here
schemaJson: require('./src/relay/data/schema.json'),
// tagName is set for you to Relay.QL ...
},
],
'no-undef': 1,
'no-console': 0,
},
};