forked from transloadit/uppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (59 loc) · 1.29 KB
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"extends": ["standard", "standard-jsx"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"window": true,
"hexo": true
},
"plugins": ["jest", "compat", "jsdoc"],
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"compat/compat": ["error"],
"react/jsx-handler-names": ["warn"], // maybe we want to do this in the future?
"jsdoc/check-alignment": ["warn"],
"jsdoc/check-examples": ["warn"],
"jsdoc/check-param-names": ["warn"],
"jsdoc/check-syntax": ["warn"],
"jsdoc/check-tag-names": ["warn"],
"jsdoc/check-types": ["warn"],
"jsdoc/newline-after-description": ["warn"],
"jsdoc/valid-types": ["warn"],
"jsdoc/check-indentation": ["off"]
},
"settings": {
"react": {
"pragma": "h"
},
"polyfills": [
"Promise",
"fetch",
"Object.assign",
"document.querySelector"
]
},
"overrides": [{
"files": [
"*.test.js",
"test/endtoend/*.js",
"website/*.js",
"bin/*.js"
],
"rules": {
"compat/compat": "off"
}
},{
"files": [
"packages/@uppy/locales/src/*.js",
"packages/@uppy/locales/template.js"
],
"rules": {
"camelcase": "off",
"quote-props": "off"
}
}]
}