summary refs log tree commit diff
path: root/.eslintrc
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-20 18:10:47 +1100
committerGitHub <noreply@github.com>2023-01-20 18:10:47 +1100
commit084dc0be08555891cad4c2bb984822a62ec5ec9f (patch)
treeed2ca0fafefa2224ae32761f955f63935422a97d /.eslintrc
parentfix: route file regex (#956) (diff)
downloadserver-084dc0be08555891cad4c2bb984822a62ec5ec9f.tar.xz
Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 00000000..00ce9892
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,11 @@
+{
+	"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
+	"parser": "@typescript-eslint/parser",
+	"plugins": ["@typescript-eslint"],
+	"root": true,
+	"rules": {
+		"no-mixed-spaces-and-tabs": "off",
+		"@typescript-eslint/no-inferrable-types": "off", // Required by typeorm
+		"@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps
+	}
+}