forked from emelendez89/codea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.13 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
61
62
63
64
{
"parser": "babel-eslint",
"extends": [
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"pragma": "React",
"version": "*"
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["prettier", "react"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"jsxBracketSameLine": true,
"parser": "flow",
"endOfLine": "lf"
}
],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used"
}
],
"no-console": 1,
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"no-unexpected-multiline": "error",
"react/button-has-type": [
"error",
{
"button": true,
"submit": true,
"reset": true
}
],
"react/destructuring-assignment": ["error", "always"]
}
}