0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Upgraded migration lint warnings to errors

- we have these rules in place to force the developer to think about the
  performance impact of their code
- unless they are enforced, it's easy for them to slip by and miss them
- this commit changes the warnings to errors, which will fail CI
- developers still have the ability to disable lines that flag the
  linting in case there is a valid use-case
This commit is contained in:
Daniel Lockyer 2022-05-10 08:14:05 +01:00
parent c753d61be6
commit 10390e3408
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -36,7 +36,7 @@ module.exports = {
{
files: 'core/server/data/migrations/versions/**',
rules: {
'no-restricted-syntax': ['warn', {
'no-restricted-syntax': ['error', {
selector: 'ForStatement',
message: 'For statements can perform badly in migrations'
}, {