This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
51 lines (51 loc) · 1.46 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
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"qpsh": true,
"toastr": true,
"Auth0Lock": true
},
"env": {
"mocha": true,
"es6": true,
"jquery": true,
"browser": true,
"node": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
// "off", "warn", "error" : values to en/disable rules
"quotes": ["off", "single"],
"no-unused-vars": ["error", {"vars": "all", "args": "all", "argsIgnorePattern": "^(next|_+)","ignoreRestSiblings": false }],
"no-console": "error",
"semi": ["off", "always"],
"no-extra-semi": "warn",
"curly": ["warn", "all"],
"multiline-ternary": ["warn", "always"],
"operator-linebreak": ["warn", "before"],
"space-infix-ops": ["warn", {"int32Hint": true}],
"newline-per-chained-call": ["warn"],
"keyword-spacing": ["warn", { overrides: {} }],
"object-curly-spacing": ["warn", "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
"array-bracket-spacing": ["warn", "never"],
"no-undef": ["error"],
"brace-style": ["error", "1tbs"],
// React specific
"react/display-name": ["warn"]
}
}