Turning off eslint rule for a specific file
You can turn off/change a particular rule for a file by putting the configurations at the top of the file. /* eslint no-use-before-define: 0 */ // –> OFF or /* eslint no-use-before-define: 2 */ // –> ON More info