This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
/
.eslintrc
75 lines (75 loc) · 2.34 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
67
68
69
70
71
72
73
74
75
{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"globals": {
"window": false,
"Promise": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "script"
},
"plugins": ["compat", "import", "jest", "prettier", "react"],
"root": true,
"rules": {
"constructor-super": "error",
"linebreak-style": ["error", "unix"],
"new-cap": "error",
"no-catch-shadow": "error",
"no-class-assign": "error",
"no-console": 0,
"no-const-assign": "error",
"no-delete-var": "error",
"no-dupe-class-members": "error",
"no-label-var": "error",
"no-this-before-super": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-unused-vars": "error",
"no-use-before-define": ["error", { "classes": false, "functions": false }],
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"parser": "babel",
"printWidth": 100,
"singleQuote": false,
"semi": true,
"tabWidth": 4,
"trailingComma": "all"
}
],
"react/jsx-key": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/jsx-sort-props": ["error", { "ignoreCase": false }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-deprecated": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "warn",
"react/no-unsafe": ["error", { "checkAliases": true }],
"react/no-unknown-property": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/sort-prop-types": "error",
"require-yield": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"strict": ["error", "global"],
"yoda": "error"
},
"settings": {
"react": {
"version": "16.0"
}
}
}