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:
parent
c753d61be6
commit
10390e3408
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
}, {
|
||||
|
|
Loading…
Reference in a new issue