Enable type checking rules
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 Oct 2020 16:50:01 +0000 (17:50 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 11:26:17 +0000 (12:26 +0100)
.eslintrc.js

index bc57778af2f74375fc69e8128f8982ace507b39f..d908dc7669db9a72301cd8867513f793af056265 100644 (file)
@@ -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",
        ],