changes to eslint config

This commit is contained in:
Emily 2020-10-17 16:16:53 +11:00
parent a7cb8bf4a1
commit fc9a0dc33c
1 changed files with 35 additions and 0 deletions

View File

@ -24,6 +24,41 @@
"semi": [
"error",
"always"
],
"no-var": [
"error"
],
"no-use-before-define": [
"error", {
"functions": true,
"classes": true
}
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
}