mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: Added eslint and prettier-eslint for formatting and linting
This commit is contained in:
1 parent
78dcc1b2e9
commit
d0f1c4103a
19 files changed
+1638
-71
No files matched your search
@@ -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"]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user