-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
31 lines (31 loc) · 853 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 = {
env: {
browser: true,
es2021: true,
webextensions: true,
},
extends: ["standard", "prettier"],
rules: {
quotes: ["error", "double", { avoidEscape: true }],
camelcase: "error",
},
ignorePatterns: ["build", "node_modules", "public"],
overrides: [
{
files: ["**/*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/semi": "error",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
},
},
],
};