Answers for "ignore node_modules eslint"

4

eslint ignore

/* eslint-disable no-alert, no-console */

alert('foo');
console.log('bar');

/* eslint-enable no-alert, no-console */
Posted by: Guest on August-17-2020
0

eslint stop compliant import from node_modules

I had to add "compilerOptions": { "moduleResolution": "node" } additionally to tsconfig.json in order to ESlint stop complaining when import from node_modules.
Posted by: Guest on April-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language