Merged in chore/migrate-from-next-lint (pull request #3263)
chore: Migrate from next lint to eslint * Migrate scandic-web * Migrate partner-sas * Enable any rule in partner-sas Approved-by: Joakim Jäderberg Approved-by: Linus Flood
This commit is contained in:
@@ -2,13 +2,11 @@ import path from "node:path"
|
||||
|
||||
const WEB_ROOT = path.join(process.cwd(), "apps/scandic-web/")
|
||||
|
||||
// https://nextjs.org/docs/app/building-your-application/configuring/eslint#lint-staged
|
||||
const buildEslintCommand = (filenames) => {
|
||||
const cmd = `next lint --fix --max-warnings 0 --file ${filenames
|
||||
const files = filenames
|
||||
.map((f) => `'${path.relative(WEB_ROOT, f)}'`)
|
||||
.join(" --file ")}`
|
||||
|
||||
return cmd
|
||||
.join(" ")
|
||||
return `eslint --fix --no-warn-ignored --max-warnings 0 ${files}`
|
||||
}
|
||||
|
||||
const config = {
|
||||
|
||||
Reference in New Issue
Block a user