-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
34 lines (33 loc) · 1.01 KB
/
.eslintrc.cjs
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
30
31
32
33
34
require("@rushstack/eslint-config/patch/modern-module-resolution")
module.exports = {
extends: ["@rushstack/eslint-config/profile/node"],
parserOptions: {
tsconfigRootDir: __dirname,
ecmaVersion: "latest",
sourceType: "module"
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"@typescript-eslint/consistent-type-definitions": [1, "type"],
"@typescript-eslint/naming-convention": [
"error",
{
selector: "parameter",
format: ["camelCase"],
leadingUnderscore: "allow"
}
],
// allow use of null
"@rushstack/no-new-null": 0,
// disable requiring explicit types in locations where inference is possible
"@typescript-eslint/typedef": 0,
"@rushstack/typedef-var": 0,
// disable required jest hoisting to allow more flexibility
"@rushstack/hoist-jest-mock": 0,
"@typescript-eslint/method-signature-style": ["warn", "property"]
}
}
]
}