Skip to content

Instantly share code, notes, and snippets.

@johntran
Created November 21, 2016 13:45
Show Gist options
  • Save johntran/3c02e9effdeedfde7896403dcb8fa150 to your computer and use it in GitHub Desktop.
Save johntran/3c02e9effdeedfde7896403dcb8fa150 to your computer and use it in GitHub Desktop.
ONEHOPE eslint config
{
"extends": ["airbnb", "plugin:flowtype/recommended"],
"parser": "babel-eslint",
"plugins": [
"react",
"flowtype",
],
"rules": {
"arrow-parens": 0,
"arrow-spacing": 0,
"class-methods-use-this": 0,
"generator-star-spacing": 0,
"id-length": 0,
"max-len": ["error", { "code": 120, "ignoreTemplateLiterals": true, "ignoreStrings": true}],
"new-cap": 0,
"no-console": 0,
"import/no-named-as-default": 0,
"no-duplicate-imports": 0,
"no-nested-ternary": 0,
"quotes": ["error", 'single', { "allowTemplateLiterals": true }],
"jsx-a11y/no-static-element-interactions": 0,
"react/jsx-indent-props": 0,
"react/jsx-closing-bracket-location": [0, "after-props"],
"react/jsx-filename-extension": 0,
"react/jsx-no-bind": 0,
"react/forbid-prop-types": 0,
"react/no-children-prop": 0,
"react/no-unused-prop-types": 0,
"react/jsx-no-undef": 2,
"jsx-quotes": 0,
"react/jsx-space-before-closing": [1, "never"],
"react/jsx-uses-react": 1,
"react/prop-types": 0,
"react/prefer-stateless-function": 0,
"react/wrap-multilines": 1,
"react/sort-comp": [1, {
order: [
'type-annotations',
'static-methods',
'lifecycle',
'everything-else',
'render',
],
}]
},
"globals": {
"document": false,
"React": false,
"Relay": false,
"logger": false,
"debug": false,
"window": false,
"BMap": false,
"_": false,
"wx": false,
"Stripe": true,
"location": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment