This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (83 loc) · 1.66 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": "airbnb",
"plugins": ["react"],
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"globals": {
"server": false,
"browser": false,
"expect": false
},
"rules": {
"import/no-unresolved": [
2,
{
"ignore": ["meteor"]
}
],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"new-cap": [
"error",
{
"newIsCapExceptionPattern": "^fT",
"capIsNewExceptions": ["OneOf"]
}
],
"no-console": [
"warn",
{
"allow": ["warn", "error", "info"]
}
],
"linebreak-style": 0,
"object-curly-newline": ["error", { "multiline": true }],
"no-param-reassign": ["error", { "props": false }],
"max-len": ["error", { "code": 150 }],
"semi": ["error", "never"],
"no-underscore-dangle": [
"error",
{
"allow": [
"_id",
"_ensureIndex",
"_verifyEmailToken",
"_resetPasswordToken",
"_name",
"_options",
"_checkPassword",
"_execute",
"_hashLoginToken",
"_hashStampedToken",
"_tokenExpiration",
"_generateStampedLoginToken"
]
}
],
"jsx-a11y/anchor-is-valid": 1,
"import/extensions": ["error", "ignorePackages"],
"react/jsx-one-expression-per-line" : 0,
"react/forbid-prop-types": [
"error",
{
"forbid": ["any", "array"]
}
]
}
}