From 30ca47c2d8c176e48f679d61bd409b406a53fc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 9 Jun 2020 15:51:14 +0200 Subject: [PATCH] Enabling stricter lint: forbidding usage of any See #168 --- back/.eslintrc.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/back/.eslintrc.json b/back/.eslintrc.json index 0cee14a3..3aab37d9 100644 --- a/back/.eslintrc.json +++ b/back/.eslintrc.json @@ -7,7 +7,8 @@ }, "extends": [ "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended" + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking" ], "globals": { "Atomics": "readonly", @@ -16,12 +17,14 @@ "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2018, - "sourceType": "module" + "sourceType": "module", + "project": "./tsconfig.json" }, "plugins": [ "@typescript-eslint" ], "rules": { - "no-unused-vars": "off" + "no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "error" } -} \ No newline at end of file +}