forked from akash-network/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
25 lines (24 loc) · 742 Bytes
/
Copy path.eslintrc.js
File metadata and controls
25 lines (24 loc) · 742 Bytes
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
const path = require("path");
const baseConfig = require("@akashnetwork/dev-config/.eslintrc.base");
const tsConfig = require("@akashnetwork/dev-config/.eslintrc.ts");
const nextConfig = require("@akashnetwork/dev-config/.eslintrc.next");
module.exports = {
...baseConfig,
root: true,
settings: {
next: {
rootDir: "apps/*"
}
},
overrides: [
...baseConfig.overrides,
...tsConfig.overrides,
...nextConfig.overrides.map(override => ({
...override,
files: ["apps/*-web/**/*.{ts,tsx}", "apps/landing/**/*.{ts,tsx}"],
rules: {
"@next/next/no-html-link-for-pages": ["error", ["deploy-web", "landing"].map(app => path.resolve(__dirname, `apps/${app}/src/pages`))]
}
}))
]
};