Canvas: Enable ESLint
Change-Id: Ia9e84976b6d237f34c773eb55054fe244c625624
diff --git a/apps/canvas/back/eslint.config.js b/apps/canvas/back/eslint.config.js
new file mode 100644
index 0000000..20ef473
--- /dev/null
+++ b/apps/canvas/back/eslint.config.js
@@ -0,0 +1,23 @@
+import js from "@eslint/js";
+import tseslint from "typescript-eslint";
+
+export default tseslint.config(
+ { ignores: ["dist"] },
+ {
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
+ files: ["**/*.ts"],
+ languageOptions: {
+ ecmaVersion: 2020,
+ },
+ rules: {
+ "@typescript-eslint/no-unused-vars": [
+ "error",
+ {
+ argsIgnorePattern: "^_$",
+ varsIgnorePattern: "^_$",
+ caughtErrorsIgnorePattern: "^_$",
+ },
+ ],
+ },
+ },
+);