feat: Add commitlint dependencies and simplify lint-staged configuration by removing the buildEslintCommand.
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Failing after 5s
Build & Deploy / 🏗️ Build (push) Failing after 26s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 1s

This commit is contained in:
2026-02-05 01:42:40 +01:00
parent e80140f7cf
commit 5559a36de0
3 changed files with 376 additions and 8 deletions

View File

@@ -1,11 +1,4 @@
const path = require('path');
const buildEslintCommand = (filenames) =>
`next lint --fix --file ${filenames
.map((f) => path.relative(process.cwd(), f))
.join(' --file ')}`;
module.exports = {
'*.{js,jsx,ts,tsx}': [buildEslintCommand, 'prettier --write'],
'*.{js,jsx,ts,tsx}': [/* 'eslint --fix', */ 'prettier --write'],
'*.{json,md,css,scss}': ['prettier --write'],
};