Skip to content

Commit a2a81bc

Browse files
authored
chore(NODE-4376): add typescript to eslint rules (#505)
1 parent 5475378 commit a2a81bc

19 files changed

+1348
-1511
lines changed

.eslintrc.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"plugin:prettier/recommended",
66
"plugin:@typescript-eslint/eslint-recommended",
77
"plugin:@typescript-eslint/recommended",
8-
"prettier/@typescript-eslint"
8+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
99
],
1010
"env": {
1111
"node": true
@@ -17,13 +17,18 @@
1717
"Set": true,
1818
"Map": false
1919
},
20+
"parser": "@typescript-eslint/parser",
2021
"parserOptions": {
21-
"ecmaVersion": 2017
22+
"ecmaVersion": 2017,
23+
"project": [
24+
"./tsconfig.json"
25+
]
2226
},
2327
"plugins": [
2428
"prettier",
2529
"eslint-plugin-tsdoc"
2630
],
31+
"reportUnusedDisableDirectives": true,
2732
"rules": {
2833
"prettier/prettier": "error",
2934
"tsdoc/syntax": "warn",
@@ -52,6 +57,11 @@
5257
"Function": false
5358
}
5459
}
55-
]
60+
],
61+
"@typescript-eslint/no-unsafe-member-access": "off",
62+
"@typescript-eslint/no-unsafe-assignment": "off",
63+
"@typescript-eslint/no-unsafe-return": "off",
64+
"@typescript-eslint/no-unsafe-argument": "off",
65+
"@typescript-eslint/no-unsafe-call": "off"
5666
}
5767
}

0 commit comments

Comments
 (0)