-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
34 lines (34 loc) · 1.06 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
30
31
32
33
34
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
plugins: ["@typescript-eslint"],
rules: {
// We console.log errors in the build script.
// This prevents eslint from complaining about them.
"no-console": "off",
// Gives false positives. Let TypeScript handle it.
"import/default": "off",
// Gives false positives. Let TypeScript handle it.
"import/named": "off",
"import/no-extraneous-dependencies": "error",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": true,
"ts-nocheck": true,
"ts-check": false,
minimumDescriptionLength: 10,
},
],
// Rules to consider re-enabling:
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
},
};