b3014bb98a
Co-authored-by: Edd <edd@vega.xyz>
40 lines
879 B
JSON
40 lines
879 B
JSON
{
|
|
"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
|
|
}
|
|
}
|