-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 1.58 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
module.exports = {
env: {
es6: true,
jest: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:node/recommended",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
],
plugins: ["flowtype", "promise", "jest", "graphql"],
rules: {
"comma-dangle": [2, "always-multiline"],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"newline-before-return": ["error"],
"no-case-declarations": ["error"],
"no-console": [0],
"no-else-return": ["error"],
"no-extra-semi": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
quotes: ["error", "double"],
semi: ["error", "always"],
"sort-imports": [
"error",
{
ignoreCase: true,
memberSyntaxSortOrder: ["none", "all", "single", "multiple"],
},
],
"sort-keys": ["warn", "asc", { natural: true }],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": [
"error",
{ anonymous: "never", named: "never", asyncArrow: "always" },
],
"space-in-parens": ["error", "never"],
"wrap-iife": ["error", "inside"],
// complains about imports/export syntax but we are using babel
"node/no-unsupported-features/es-syntax": "off",
},
globals: {},
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
flowVersion: "0.98.1",
},
};