Skip to content
This repository was archived by the owner on Dec 24, 2019. It is now read-only.

Commit 50690a8

Browse files
author
Sergio Daniel Xalambrí
committed
[add] eslint configuration
1 parent f07fadd commit 50690a8

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.eslintrc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"plugins": [
5+
"import",
6+
"jsx-a11y",
7+
"react",
8+
"flowtype",
9+
],
10+
"env": {
11+
"browser": true,
12+
"node": true,
13+
},
14+
"parserOptions": {
15+
"ecmaFeatures": {
16+
"jsx": true,
17+
"es6": true,
18+
"classes": true,
19+
},
20+
},
21+
"settings": {
22+
"react": {
23+
"pragma": "React",
24+
"version": "15.3",
25+
},
26+
"flowtype": {
27+
"onlyFilesWithFlowAnnotation": false,
28+
},
29+
},
30+
"rules": {
31+
"flowtype/require-parameter-type": 1,
32+
"flowtype/require-return-type": [
33+
1,
34+
"always",
35+
{
36+
"annotateUndefined": "never"
37+
},
38+
],
39+
"flowtype/space-after-type-colon": [
40+
1,
41+
"always",
42+
],
43+
"flowtype/space-before-type-colon": [
44+
1,
45+
"never",
46+
],
47+
"flowtype/type-id-match": [
48+
1,
49+
"^([A-Z][a-z0-9]+)+Type$",
50+
],
51+
},
52+
}

0 commit comments

Comments
 (0)