-
Notifications
You must be signed in to change notification settings - Fork 30
/
.eslintrc
34 lines (28 loc) · 900 Bytes
/
.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
{
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015
},
"rules": {
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
// import/first is incompatible with airbnb config
"import/first": 0,
// allow files to have extension ".js"
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": [2, { "skipUndeclared": true }],
// allow ommitted parentheses in single-argument arrow functions
"arrow-parens": [2, "as-needed"],
// allow <Link> components to act as anchors
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}]
},
// environments define allowed global variables
"env": {
"browser": true
}
}