Skip to content

Instantly share code, notes, and snippets.

@abhiaiyer91
Created August 28, 2016 01:59
Show Gist options
  • Save abhiaiyer91/cec3b802baf959acbba4abc649fb013b to your computer and use it in GitHub Desktop.
Save abhiaiyer91/cec3b802baf959acbba4abc649fb013b to your computer and use it in GitHub Desktop.
{
"env": {
"browser": true,
"builtin": true,
"jasmine": true,
"mocha": true,
"node": true
},
"extends": "airbnb",
"globals": {
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 6
},
"plugins": [
"flowtype"
],
"rules": {
"arrow-body-style": [
2,
"always"
],
"block-scoped-var": 1,
"brace-style": 2,
"camelcase": 2,
"comma-dangle": 0,
"comma-spacing": [
2,
{
"after": true
}
],
"comma-style": [
2,
"last"
],
"consistent-return": 0,
"curly": [
2,
"all"
],
"default-case": 2,
"dot-notation": [
2,
{
"allowKeywords": true
}
],
"eol-last": 0,
"eqeqeq": [
2,
"smart"
],
"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": [
2,
"^([A-Z][a-z0-9]+)+Type$"
],
"func-names": 0,
"guard-for-in": 2,
"handle-callback-err": 2,
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"key-spacing": [
2,
{
"afterColon": true
}
],
"keyword-spacing": 2,
"max-len": 0,
"new-cap": 0,
"no-alert": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-cond-assign": 2,
"no-console": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-dupe-keys": 2,
"no-else-return": 2,
"no-empty": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-boolean-cast": 0,
"no-extra-semi": 2,
"no-inner-declarations": 2,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 0,
"no-multi-str": 2,
"no-multiple-empty-lines": 2,
"no-nested-ternary": 2,
"no-new": 2,
"no-param-reassign": 1,
"no-proto": 2,
"no-redeclare": 0,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unreachable": 2,
"no-unused-expressions": 2,
"no-unused-vars": 2,
"no-use-before-define": [
2,
"nofunc"
],
"no-var": 0,
"no-warning-comments": [
1,
{
"terms": [
"eslint-disable-line fields",
"eslint-disable fields"
]
}
],
"no-with": 2,
"object-curly-spacing": 0,
"object-shorthand": 0,
"one-var": 2,
"padded-blocks": 0,
"prefer-arrow-callback": 0,
"react/prefer-stateless-function": 1,
"prefer-rest-params": 1,
"prefer-template": 1,
"quote-props": 0,
"quotes": 0,
"radix": 2,
"react/prop-types": 1,
"semi": [
2,
"always"
],
"semi-spacing": [
2,
{
"after": true,
"before": false
}
],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
"space-in-parens": 0,
"space-infix-ops": 2,
"space-unary-ops": [
2,
{
"nonwords": false,
"words": true
}
],
"spaced-comment": 0,
"strict": 0,
"valid-typeof": 2,
"vars-on-top": 0,
"wrap-iife": [
2,
"any"
],
"yoda": 0
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment