From 5a3b810896e98741dff27c766a2dc4573b4d57ee Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Mon, 11 Jan 2021 13:18:00 +0100 Subject: [PATCH] fix: eslint config --- .eslintrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 657cd2c81..91b24e84a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,11 +1,15 @@ { - "extends": ["eslint:recommended", "semistandard", "prettier"], - "parser": "babel-eslint", + "extends": ["eslint:recommended", "prettier"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "./app/assets/javascripts/tsconfig.json" + }, "rules": { "standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals "no-throw-literal": 0, - // "no-console": "error", - "semi": 1 + "no-console": "warn", + "semi": 1, + "camelcase": "warn" }, "env": { "browser": true