mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: update eslint to respect typescript and run eslint fix
This commit is contained in:
1 parent
9125e4a5da
commit
1a7f800ba2
15 files changed
+325
-77
No files matched your search
+12
-10
@@ -1,12 +1,17 @@
|
||||
{
|
||||
"ignorePatterns": ["config/**/*.js"],
|
||||
"env": {
|
||||
"node": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest"
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"rules": {
|
||||
"indent": ["error", 4, { "SwitchCase": 1 }],
|
||||
"max-len": [
|
||||
@@ -21,14 +26,9 @@
|
||||
}
|
||||
],
|
||||
"linebreak-style": ["error", "windows"],
|
||||
"quotes": ["error", "single"],
|
||||
"quotes": ["error", "single", { "avoidEscape": true }],
|
||||
"semi": ["error", "always"],
|
||||
"camelcase": [
|
||||
"error",
|
||||
{
|
||||
"properties": "always"
|
||||
}
|
||||
],
|
||||
"camelcase": "error",
|
||||
"array-bracket-spacing": ["error", "never"],
|
||||
"object-curly-spacing": ["error", "always"],
|
||||
"jsx-quotes": ["error", "prefer-single"],
|
||||
@@ -47,6 +47,8 @@
|
||||
}
|
||||
],
|
||||
"curly": ["error", "all"],
|
||||
"no-console": ["error"]
|
||||
"no-console": ["error"],
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user