-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (27 loc) · 1.09 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
This is a workaround for https://github.com/eslint/eslint/issues/3458
TLDR; eslint requires you to know and declare all eslint plugins that are being used in the plugin you
are consuming as peer dependencies. This patch fixes that so you don't have to add to your peer
dependencies and is [recommended](https://github.com/microsoft/rushstack/tree/main/eslint/eslint-config#2-choose-one-profile) by the rush stack eslint-config package.
*/
require("@rushstack/eslint-config/patch/modern-module-resolution")
module.exports = {
extends: ["@rushstack/eslint-config/profile/node"],
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/consistent-type-definitions": [1, "type"],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/naming-convention": [
"error",
{
selector: "parameter",
format: ["camelCase"],
leadingUnderscore: "allow"
}
],
"@typescript-eslint/typedef": 0,
"@rushstack/no-new-null": 0,
"@rushstack/typedef-var": 0
},
parserOptions: { tsconfigRootDir: __dirname }
}