Skip to content

Instantly share code, notes, and snippets.

@samson-sham
Last active August 29, 2020 10:23
Show Gist options
  • Save samson-sham/f3c98edf58ef5460bb65ae3cc89f03aa to your computer and use it in GitHub Desktop.
Save samson-sham/f3c98edf58ef5460bb65ae3cc89f03aa to your computer and use it in GitHub Desktop.
ES Lint settings
module.exports = {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2019
},
"rules": {
// Format
"indent": ["error", 4, { "MemberExpression": "off", "SwitchCase": 1 }],
"semi": ["error", "always"],
// Code checks
"no-console": "off",
"no-extra-boolean-cast": "off",
"no-useless-escape": "off",
"no-unused-vars": "warn"
},
"env": {
"es6": true,
"node": true
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment