Skip to content

Instantly share code, notes, and snippets.

@ihgrant
Created March 8, 2016 18:31
Show Gist options
  • Save ihgrant/ea595a31e5c2d965e4b1 to your computer and use it in GitHub Desktop.
Save ihgrant/ea595a31e5c2d965e4b1 to your computer and use it in GitHub Desktop.
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": false
},
"globals": {
"__DEV__": true
},
"rules": {
"camelcase": 1,
"brace-style": [2, "1tbs"],
"eol-last": 0,
"new-cap": 0,
"no-alert": 1,
"no-nested-ternary": 1,
"no-underscore-dangle": 0,
"no-unused-expressions": 1,
"semi": 2,
"quotes": [2, "single"],
"strict": 0,
"valid-jsdoc": 0,
"comma-dangle": 0,
"jsx-quotes": [1, "prefer-single"],
"react/jsx-closing-bracket-location": [1, {
"selfClosing": "after-props",
"nonEmpty": "after-props"
}],
"react/jsx-curly-spacing": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-unknown-property": 1,
"react/prop-types": 1,
"react/jsx-sort-props": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": [1, {
"order": [
"static",
"everything-else",
"lifecycle",
"render"
],
"groups": {
"static": [
"displayName",
"mixins",
"propTypes",
"contextTypes",
"childContextTypes",
"getChildContext",
"statics",
],
"lifecycle": [
"getInitialState",
"getDefaultProps",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
]
}
}],
"react/wrap-multilines": [1, {"declaration": false}]
},
"plugins": ["react"],
"parser": "babel-eslint",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment