Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 21s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Has been skipped
Build & Deploy KLZ Cables / 🏗️ Build & Push (push) Failing after 6s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Has been skipped
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Has been skipped
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 1s
12 lines
321 B
JavaScript
12 lines
321 B
JavaScript
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'],
|
|
'*.{json,md,css,scss}': ['prettier --write'],
|
|
};
|