Created
November 1, 2016 19:55
-
-
Save krambertech/490f27b35d98f7d3954212d55074a547 to your computer and use it in GitHub Desktop.
My 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
{ | |
"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