forked from vegaprotocol/frontend-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
39 lines (39 loc) · 879 Bytes
/
.eslintrc.json
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
{
"extends": [
"plugin:@nx/react-typescript",
"../../.eslintrc.json",
"next",
"next/core-web-vitals"
],
"ignorePatterns": ["!**/*", "__generated__", ".next", "setup-tests.ts"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": ["error", "apps/trading/pages"],
"no-restricted-imports": [
"error",
{
"name": "next/link",
"message": "Please Link from react-router-dom instead"
},
{
"name": "next/router",
"message": "Please use routing hooks from react-router-dom instead"
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"env": {
"jest": true
}
}