Skip to content

Instantly share code, notes, and snippets.

@krambertech
Created November 1, 2016 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krambertech/490f27b35d98f7d3954212d55074a547 to your computer and use it in GitHub Desktop.
Save krambertech/490f27b35d98f7d3954212d55074a547 to your computer and use it in GitHub Desktop.
My eslint config
{
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"indent": [2, 4, { "SwitchCase": 1 }],
"max-len": [2, 120, 4, {
"ignoreUrls": true,
"ignoreComments": false
}],
"jsx-quotes": [2, "prefer-double"],
"no-return-assign": 0,
"react/jsx-indent-props": [2, 4],
"react/jsx-indent": [2, 4],
"react/jsx-max-props-per-line": [2, {maximum: 3}],
"react/jsx-no-bind": [2, {
"ignoreRefs": true
}],
'react/sort-comp': [2, {
order: [
'static-methods',
'lifecycle',
'/^handle.+$/',
'/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/',
'everything-else',
'/^render.+$/',
'render'
],
}],
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"settings": {
"import/resolver": { "webpack": { config: 'webpack.dev.config.js' } }
},
"globals": {
"$": true,
"ga": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment