-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
31 lines (31 loc) · 888 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
25
26
27
28
29
30
31
module.exports = {
root: true,
env: {
browser: true,
es2022: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.json"],
sourceType: "module",
},
files: ["./Extensions/full-screen/**/*"],
plugins: ["react", "@typescript-eslint"],
settings: {
react: {
version: "17.0.2",
},
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
rules: {
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": [
"warn",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
},
],
},
};