Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enforce eslint rules only on new files

Is there a way to configure or customize eslint rules such that it only applies to new files being checked in? There's no autofix for the eslint rule and it's prohibitively expensive to convert older files to comply with the eslint rule.

like image 967
charleschenster Avatar asked Jan 29 '26 08:01

charleschenster


1 Answers

You can add

/* eslint-disable */

at the beginning of old files

like image 175
6502 Avatar answered Jan 31 '26 21:01

6502