forked from getlago/lago-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (42 loc) · 1.17 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
// prettier config will turn rules off according to prettier, it should always be at the end
"prettier"
],
"plugins": ["import", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-alert": "error",
"no-console": "error",
"no-debugger": "error",
"eqeqeq": "error",
"no-else-return": "warn",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"react/react-in-jsx-scope": "off",
"no-shadow": "off", // replaced by ts-eslint rule below
"@typescript-eslint/no-shadow": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"newline-after-var": ["warn"],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "unknown", "sibling", "parent", "index"],
"newlines-between": "always"
}
],
"react/display-name": "warn"
}
}