projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520c575
)
Enable type checking rules
author
Alexander Ebert
<ebert@woltlab.com>
Thu, 29 Oct 2020 16:50:01 +0000
(17:50 +0100)
committer
Tim Düsterhus
<duesterhus@woltlab.com>
Fri, 30 Oct 2020 11:26:17 +0000
(12:26 +0100)
.eslintrc.js
patch
|
blob
|
blame
|
history
diff --git
a/.eslintrc.js
b/.eslintrc.js
index bc57778af2f74375fc69e8128f8982ace507b39f..d908dc7669db9a72301cd8867513f793af056265 100644
(file)
--- 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",
],