Skip to content

Commit

Permalink
eslintrc.json: add rules often enforced manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Sep 12, 2021
1 parent 69ac6fe commit b2e1d21
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,28 @@
"brace-style": ["warn", "1tbs", {
"allowSingleLine": true
}],
"curly": "warn",
"camelcase": "warn",
"comma-spacing": "warn",
"computed-property-spacing" : ["warn", "never", {
"enforceForClassMembers": true
}],
"dot-location": "warn",
"dot-notation": "warn",
"eqeqeq": ["error", "always"],
"func-call-spacing": "warn",
"func-style": ["error", "expression", {
"allowArrowFunctions": true
}],
"indent": ["warn", 4],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"no-constructor-return": "warn",
"no-extra-bind": "warn",
"no-sequences": "warn",
"no-useless-call": "warn",
"no-useless-return": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": ["warn", {
"defaultAssignment": false
Expand All @@ -36,13 +44,15 @@
"multiline": true
}],
"object-curly-spacing" : "warn",
"prefer-regex-literals": "warn",
"quotes": ["warn", "double"],
"require-atomic-updates": "error",
"semi": "warn",
"semi-spacing": "warn",
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn"
"space-in-parens": "warn",
"yoda": "warn"
},
"globals": {
"console": "writable",
Expand Down

0 comments on commit b2e1d21

Please sign in to comment.