forked from tus/tus-js-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
66 lines (64 loc) · 1.68 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
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"extends": [
"transloadit"
],
"plugins": [
"@babel/eslint-plugin",
"jest",
"node",
"prefer-import",
"promise",
"react"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jasmine": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-syntax-jsx"
]
},
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
// transloadit rules we are actually ok with in the tus-js-client repo
////////////////////////////////////////////////////////////
"class-methods-use-this": ["off"],
// rules we had to turn off just to get a pass, but we'd
// like to turn on one by one with separate PRs
////////////////////////////////////////////////////////////
"consistent-return": ["warn"],
"eqeqeq": ["warn"],
"guard-for-in": ["warn"],
"import/no-extraneous-dependencies": ["warn"],
"import/no-unresolved": ["warn"],
"no-bitwise": ["warn"],
"no-mixed-operators": ["warn"],
"no-multi-assign": ["warn"],
"no-param-reassign": ["warn"],
"no-redeclare": ["warn"],
"no-restricted-globals": ["warn"],
"no-restricted-syntax": ["warn"],
"no-return-assign": ["warn"],
"no-shadow": ["warn"],
"no-unused-expressions": ["warn"],
"no-use-before-define": ["warn"],
"no-var": ["warn"],
"node/no-deprecated-api": ["warn"],
"prefer-destructuring": ["warn"],
"prefer-rest-params": ["warn"],
"react/destructuring-assignment": ["warn"],
"react/sort-comp": ["warn"],
"vars-on-top": ["warn"]
}
}