Skip to content

Commit

Permalink
chore: willboosterify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBooster-bot committed Oct 11, 2024
1 parent 492b596 commit d4597b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};

0 comments on commit d4597b5

Please sign in to comment.