forked from mozilla/addons-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.32 KB
/
.eslintrc
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
{
"extends": "amo",
"globals": {
"CLIENT_CONFIG": true,
"document": true,
"webpackIsomorphicTools": true,
"ga": true,
// https://flow.org/en/docs/types/utilities/#toc-propertytype
"$PropertyType": true,
// This is an undocumented utility that ships with Flow
// https://github.com/facebook/flow/issues/875
"$Shape": true,
// See: https://github.com/facebook/flow/issues/1609
"SyntheticEvent": true,
// Standard DOM globals:
"Generator": true,
"HTMLElement": true,
"HTMLInputElement": true,
"HTMLSelectElement": true,
"HTMLTextAreaElement": true,
"Node": true,
},
"parser": "babel-eslint",
"plugins": [
"jest"
],
"rules": {
// FIXME: Deprecate use of findDOMNode https://github.com/mozilla/addons-frontend/issues/968
"react/no-find-dom-node": "off",
},
"settings": {
"import/ignore": [
// Because of CommonJS incompatibility, we can't
// check for bad imports in node_modules.
"node_modules",
// Ignore non-JS imports.
"\\.gif$",
"\\.jpeg$",
"\\.jpg$",
"\\.mp4$",
"\\.png$",
"\\.scss$",
"\\.svg$",
"\\.webm$"
],
"import/resolver": {
"node": {
// This adds ./src for relative imports.
"moduleDirectory": ["node_modules", "src"]
}
}
}
}