fix: Added eslint and prettier-eslint for formatting and linting

This commit is contained in:
Marius Begby committed 2023-07-13 11:35:39 +02:00
1 parent 78dcc1b2e9
commit d0f1c4103a
19 files changed
+1638 -71

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
{
"env": {
"node": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "windows"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"camelcase": [
"error",
{
"properties": "always"
}
],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": [
"error",
{
"afterColon": true,
"mode": "minimum"
}
],
"no-trailing-spaces": [
"error",
{
"skipBlankLines": true,
"ignoreComments": true
}
],
"curly": ["error", "all"]
}
}