Skip to content

Instantly share code, notes, and snippets.

@oscaroceguera
Created March 21, 2019 19:10
Show Gist options
  • Save oscaroceguera/e430603bf65db33fff5d0e351c801e05 to your computer and use it in GitHub Desktop.
Save oscaroceguera/e430603bf65db33fff5d0e351c801e05 to your computer and use it in GitHub Desktop.
my eslintrc
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
parser: "babel-eslint",
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"max-len": [1, 80, 2, {ignoreComments: true}],
"overrides": [
{
"files": ["*.stories.js"],
"rules": {
"no-unused-expressions": "off"
}
}
]
}
};
// package.json: "pre-commit": "eslint",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment