-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
53 lines (48 loc) · 1.33 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
47
48
49
50
51
52
53
const OFF = 0;
const ERROR = 2;
module.exports = {
parser: "@typescript-eslint/parser",
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parserOptions: {
sourceType: "module",
},
extends: [
"eslint:recommended",
//"plugin:prettier/recommended",
//'plugin:jest/recommended'
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/no-explicit-any": OFF,
"@typescript-eslint/explicit-function-return-type": OFF,
"@typescript-eslint/no-use-before-define": OFF,
"@typescript-eslint/camelcase": OFF,
"@typescript-eslint/explicit-module-boundary-types": OFF,
"@typescript-eslint/ban-ts-comment": OFF,
"@typescript-eslint/no-empty-function": OFF,
"no-cond-assign": OFF,
"no-floating-decimal": ERROR,
"no-trailing-spaces": ERROR,
"no-multiple-empty-lines": [ERROR, { max: 2, maxEOF: 0 }],
"eol-last": ERROR,
semi: ERROR,
complexity: [ERROR, { max: 15 }],
// prevent lint errors if you don't use some function arguments
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ vars: "all", args: "none", varsIgnorePattern: "[iI]gnored" },
],
"no-restricted-imports": [
"error",
{
patterns: ["@mui/*/*/*", "!@mui/material/test-utils/*"],
},
],
},
};