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:
Anton Gunnarsson
2025-12-02 10:08:56 +00:00
parent be28982e73
commit 5da3e457cb
18 changed files with 62 additions and 30 deletions

View File

@@ -2,13 +2,11 @@ import path from "node:path"
const WEB_ROOT = path.join(process.cwd(), "apps/partner-sas/")
// 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 = {