-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
35 lines (35 loc) · 1005 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
32
33
34
35
/** @type {import("eslint").ESLint.Options} */
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: ["prettier", "@typescript-eslint"],
env: { browser: true, commonjs: true, es6: true, node: true },
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"prettier/prettier": ["error", { endOfLine: "auto" }],
semi: "off",
quotes: ["warn", "double"],
"max-classes-per-file": ["error", 1],
"max-depth": ["warn", 4],
curly: ["warn", "multi-line"],
"no-spaced-func": "off",
"no-extra-semi": "off",
"no-console": "warn",
"@typescript-eslint/no-misused-promises": [
"warn",
{
checksConditionals: true,
checksVoidReturn: false,
checksSpreads: true,
},
],
},
};