eslint --fix not working when running by npm

Viewed 5685

eslint --fix option is not working when i run it through npm. Here is my package.json scripts

"scripts":            
{
    "start": "nodemon ./server.js --exec babel-node",          
    "lint": "eslint ./data/* --format html  --output-file ./finalresult.html --fix ; exit 0"
}

when I run it using command npm run lint report is generating but without fixing. But if I am running the same command

eslint ./data/* --format html --output-file ./finalresult.html --fix

from console it is generating report after fix.Why is it so? Am I doing anything wrong? Can Anyone please help me

1 Answers
Related