Skip to content

Instantly share code, notes, and snippets.

@isabellachen
Last active April 8, 2018 18:22
Show Gist options
  • Save isabellachen/2c97e95f9f37a338e529bbb7feed324c to your computer and use it in GitHub Desktop.
Save isabellachen/2c97e95f9f37a338e529bbb7feed324c to your computer and use it in GitHub Desktop.
eslintrc for react front end custom builds
{
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true,
"mocha": true
},
"parser": "babel-eslint",
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true,
"spread": true,
"experimentalObjectRestSpread": true,
"classes":true
}
},
"plugins": [
"json",
"react"
],
"rules": {
"indent": [
"error",
2
],
"keyword-spacing": "error",
"linebreak-style": "error",
"quotes": [
"error",
"single"
],
"semi": ["error", "never"],
"space-before-blocks": "error",
"space-before-function-paren": "error",
"no-undef": "off",
"no-unused-vars": "off",
"comma-dangle": ["error", "always-multiline"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment