-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
24 lines (24 loc) · 868 Bytes
/
.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
module.exports = {
extends: ["@lusito/eslint-config"],
rules: {
"@typescript-eslint/parameter-properties": ["error", { allow: ["private readonly", "public readonly"] }],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "warn",
"react/static-property-placement": "off",
},
overrides: [
{
extends: ["plugin:@definitelytyped/all"],
files: ["out/**/*.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "error",
"spaced-comment": "off",
"@typescript-eslint/no-unused-vars": "off",
"@definitelytyped/no-single-element-tuple-type": "off",
},
parserOptions: {
project: "./tsconfig-out.json",
},
},
],
};