forked from BiloCode/School-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
85 lines (85 loc) · 2.2 KB
/
.eslintrc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"root": true,
"env": {
"es2021": true,
"browser": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "airbnb"],
"plugins": ["prettier", "react", "react-hooks", "import", "@typescript-eslint"],
"rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "off",
"object-curly-newline": "off",
"camelcase": "off",
"operator-linebreak": ["error", "after"],
"comma-dangle": [
"error",
{
"objects": "never",
"arrays": "never"
}
],
"no-shadow": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"indent": ["error", 2],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/indent": ["error", 2],
"import/extensions": "off",
"max-len": "off",
"import/prefer-default-export": "off",
"react/require-default-props": "off",
"no-alert": "off",
"no-console": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-use-before-define": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-props-no-spreading": "warn",
"import/no-unresolved": "off",
"class-methods-use-this": "off",
"linebreak-style": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"react/no-array-index-key": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"global-require": 0
},
"settings": {
"import/resolver": {
"typescript": {
"project": "packages/*/tsconfig.json"
}
}
},
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowTypedFunctionExpressions": true
}
]
}
}
]
}