-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
45 lines (45 loc) · 1.07 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "fsd-internal"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:vitest/recommended",
"prettier",
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
},
},
"settings": {
"react": {
"version": "detect",
},
},
"env": {
"node": true,
"browser": true,
"es6": true,
// Don't use `webextensions` because it enables the browser global.
// We want to use globalThis.browser instead:
// ref: https://github.com/mozilla/webextension-polyfill/pull/351
"webextensions": false,
},
"rules": {
"react-hooks/exhaustive-deps": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"react/no-unknown-property": "off",
"@typescript-eslint/no-explicit-any": "off",
"fsd-internal/layer-imports": [
"error",
{
"alias": "~",
},
],
},
}