Skip to content

Commit

Permalink
add switch indentation to eslint whitespace rules
Browse files Browse the repository at this point in the history
  • Loading branch information
itismadness committed Nov 4, 2020
1 parent ae9eb9c commit 3b69d62
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
"env": {
"browser": true,
"es6": true
},
//"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"$": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4,
{
SwitchCase: 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
]
}
};

0 comments on commit 3b69d62

Please sign in to comment.