vega-frontend-monorepo/apps/trading/.eslintrc.json

40 lines
852 B
JSON
Raw Normal View History

{
"extends": [
"plugin:@nx/react-typescript",
"../../.eslintrc.json",
"next",
"next/core-web-vitals"
],
"ignorePatterns": ["!**/*", "__generated__"],
"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
}
}