-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
46 lines (44 loc) · 1.07 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
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ["eslint:all", "plugin:@typescript-eslint/all", "prettier"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint"],
rules: {
"id-length": 0,
"max-params": 0,
"new-cap": 0,
"class-methods-use-this": 0,
"sort-imports": 0,
"one-var": 0,
"no-ternary": 0,
"max-statements": 0,
"max-lines-per-function": 0,
"sort-keys": 0,
"no-console": ["warn", { allow: ["warn"] }],
"@typescript-eslint/no-magic-numbers": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/prefer-readonly-parameter-types": 0,
"@typescript-eslint/prefer-regexp-exec": 0,
"@typescript-eslint/naming-convention": 0,
},
ignorePatterns: [
"node_modules/",
"dist/",
"coverage/",
"vite.config.ts",
".eslintrc.js",
],
};