From: Alexander Ebert Date: Thu, 29 Oct 2020 16:50:01 +0000 (+0100) Subject: Enable type checking rules X-Git-Tag: 5.4.0_Alpha_1~666^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8e6015cec603ebe75810379faa35278b66c80ae;p=GitHub%2FWoltLab%2FWCF.git Enable type checking rules --- diff --git a/.eslintrc.js b/.eslintrc.js index bc57778af2..d908dc7669 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,15 @@ module.exports = { root: true, parser: "@typescript-eslint/parser", + parserOptions: { + tsconfigRootDir: __dirname, + project: ['./tsconfig.json'] + }, plugins: ["@typescript-eslint"], extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", "prettier", "prettier/@typescript-eslint", ],