Skip to content

Commit

Permalink
.eslintrc.json: Add even more code style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jan 17, 2020
1 parent 87d47b7 commit 63c86fe
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,30 @@
"sourceType": "script"
},
"rules": {
"array-bracket-spacing" : "warn",
"block-spacing": "warn",
"brace-style": ["warn", "1tbs"],
"camelcase": "warn",
"comma-spacing": "warn",
"computed-property-spacing" : ["warn", "never", {
"enforceForClassMembers": true
}],
"dot-location": "warn",
"eqeqeq": ["error", "always"],
"func-style": ["error", "expression", {
"allowArrowFunctions": true
}],
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"object-curly-spacing" : "warn",
"quotes": ["warn", "double"],
"require-atomic-updates": "error"
"require-atomic-updates": "error",
"semi": "warn",
"semi-spacing": "warn",
"space-in-parens": "warn"
},
"globals": {
"console": "writable",
Expand Down

0 comments on commit 63c86fe

Please sign in to comment.