forked from cybercongress/cyb-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (53 loc) · 1.41 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
{
"env": {
"browser": true,
"es6": true,
"amd": true
},
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["prettier", "react"],
"globals": {
"expect": true,
"FileReader": true
},
"rules": {
"valid-jsdoc": "error",
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"curly": ["warn", "all"],
"no-alert": "warn",
"no-debugger": "warn",
"no-duplicate-imports": ["warn", {
"includeExports": true
}],
"object-curly-spacing": ["warn", "always"],
"object-property-newline": 0,
"one-var-declaration-per-line": ["warn", "always"],
"no-use-before-define": ["error", { "variables": false }],
"padded-blocks": ["warn", {
"blocks": "never",
"classes": "never",
"switches": "never"
}],
"react/jsx-closing-bracket-location": "warn",
"react/jsx-indent-props": [2, 2],
"react/prop-types": 0,
// "react/jsx-indent": ["warn", 2],
// "indent": ["warn", 2, {"ignoredNodes": ["JSXElement *", "JSXElement"]}],
"react/jsx-props-no-spreading": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
}