Author Archives: BISH Jaishi

How to disable the ‘Unexpected console statement.’ (no-console) in Eslint?

To disable the ‘Unexpected console statement.’ (no-console) error in Eslint, you require to add a rule in the .eslintrc.json file. In the rules section of the .eslintrc.json file add the following line: “no-console”:0 This will disable the error. You could do instead: “no-console”: “offThis would do the same thing, which is turn off any

Aqra iktar

How to fix the Node JSSyntaxError: Unexpected token importwhen using JavaScript modules

Sabiex node biex moduli esportazzjoni għandek tassenja kull funzjoni, oġġett jew varjabbli, li teħtieġ li jiġu esportati, bħala proprjetajiet tas-modules.exports joġġezzjonaw.   Exporting In this example the module file is robot.js. Each function, object or variable we would like to make available to other files we make them properties

Aqra iktar