I'm working on a react app, deployed and maintained through azure devops. When I run prettier locally by command npm run format:check then all files are formatted with message as All matched files use Prettier code style!. But in azure pipeline I added npm installer, with Command and arguments as run format:check , but it shows that Code style issues found in n files. Forgot to run Prettier?
package.json
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"eslint": "^8.23.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"jest-editor-support": "^30.1.0",
"lint-staged": "^13.0.3",
"playwright": "^1.25.2",
"prettier": "^2.7.1",
"sass": "^1.54.4"
}