Created
January 9, 2017 10:08
-
-
Save thesabbir/dabdc20568128cefe7eac94d145cc241 to your computer and use it in GitHub Desktop.
Eslint config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb/base", | |
"plugins": [ | |
"flowtype", | |
"flowtype-errors", | |
"html" | |
], | |
"rules": { | |
"import/no-extraneous-dependencies": 0, | |
"import/prefer-default-export": 0, | |
"arrow-parens": 1, | |
"no-unused-vars": 0, | |
"indent": [ | |
2, | |
4, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"arrow-body-style": 0, | |
"spaced-comment": 0, | |
"no-shadow": 0, | |
"comma-dangle": 0, | |
"flowtype/require-parameter-type": 2, | |
"flowtype/require-return-type": [ | |
2, | |
"always", | |
{ | |
"annotateUndefined": "never" | |
} | |
], | |
"flowtype/space-after-type-colon": [ | |
2, | |
"always" | |
], | |
"flowtype/space-before-type-colon": [ | |
2, | |
"never" | |
], | |
"flowtype/type-id-match": [ | |
1, | |
"^([A-Z][a-z0-9]+)+Type$" | |
], | |
"flowtype-errors/show-errors": 2 | |
}, | |
"settings": { | |
"flowtype": { | |
"onlyFilesWithFlowAnnotation": true | |
} | |
}, | |
"globals": { | |
"google": true, | |
"window": true | |
}, | |
"env": { | |
"browser": true, | |
"mocha": true, | |
"node": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment