forked from ParabolInc/parabol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
113 lines (112 loc) · 2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
"extends": [
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"eslint-config-airbnb/base",
"eslint-config-airbnb/rules/react"
],
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"arrow-body-style": OFF,
"arrow-parens": [
ERROR,
"always"
],
"babel/generator-star-spacing": OFF,
"babel/object-curly-spacing": ["error", "never"],
"global-require": OFF,
"import/default": OFF,
"import/extensions": [
ERROR,
"never",
{
"json": "always",
"png": "always",
"jpg": "always",
"svg": "always",
"ttf": "always",
"woff2": "always"
}
],
"import/first": OFF,
"import/no-duplicates": OFF,
"import/named": OFF,
"import/namespace": OFF,
"import/no-extraneous-dependencies": OFF,
"import/no-unresolved": OFF,
"import/no-named-as-default": OFF,
"comma-dangle": ["error", "never"],
"id-length": OFF,
"indent": [
ERROR,
ERROR,
{
"SwitchCase": WARN
}
],
"no-alert": OFF,
"no-console": OFF,
"no-continue": OFF,
"no-mixed-operators": OFF,
"no-multi-assign": OFF,
"no-param-reassign": OFF,
"no-plusplus": OFF,
"no-prototype-builtins": OFF,
"no-confusing-arrow": OFF,
"no-underscore-dangle": OFF,
"max-len": [
WARN,
140
],
"no-unused-expressions": [ERROR, {
"allowTaggedTemplates": true
}],
"object-curly-spacing": OFF,
"react/forbid-prop-types": OFF,
"react/jsx-filename-extension": OFF,
"react/jsx-space-before-closing": OFF,
"react/no-multi-comp": OFF,
"react/no-unused-prop-types": OFF,
"react/require-default-props": OFF
},
"plugins": [
"import",
"jest",
"react",
"babel"
],
"parser": "babel-eslint",
"settings": {
"import/parser": "babel-eslint",
"import/resolver": {
"webpack": {
"config": "webpack/prod.babel.js"
}
},
"import/ignore": [
".scss$",
".css$",
".svg$"
]
},
"globals": {
"__ACTION__": true,
"__PRODUCTION__": true,
"__CLIENT__": true,
"__WEBPACK__": true,
"__RELEASE_FLAGS__": true,
"socket": true,
"graphql": true,
"System": true,
// not sure how to handle these undocumented flow types
"$ReadOnlyArray": true
}
};