prettier-eslintをvscodeのターミナルから行おうと思ったのですが特に何も行いません
packge.json
json
1{ 2 "name": "facesbox", 3 "version": "1.0.0", 4 "description": "", 5 "main": "index.js", 6 "directories": { 7 "example": "example", 8 "lib": "lib" 9 }, 10 "scripts": { 11 "test": "echo \"Error: no test specified\" && exit 1", 12 "build": "webpack", 13 "format": "prettier-eslint --write %INIT_CWD%/**/*.{js,json,md,html,php,css,scss}" 14 }, 15 "author": "", 16 "license": "ISC", 17 "devDependencies": { 18 "eslint": "^7.20.0", 19 "eslint-config-google": "^0.14.0", 20 "eslint-plugin-prettier": "^3.3.1", 21 "prettier": "2.2.1", 22 "prettier-eslint": "^12.0.0", 23 "prettier-eslint-cli": "^5.0.0", 24 "webpack": "^5.21.2", 25 "webpack-cli": "^4.5.0" 26 }, 27 "dependencies": { 28 "gsap": "^3.6.0", 29 "jquery": "^3.5.1", 30 "scrollmagic": "^2.0.8", 31 "scrollmagic-plugin-gsap": "^1.0.4" 32 } 33} 34
以前はターミナルから
npm run format
で実行してくれたのですが
$ npm run format
facesbox@1.0.0 format
prettier-eslint --write %INIT_CWD%/**/*.{js,json,md,html,php,css,scss}
実行結果がこれで特に何も起こらないです。
windowsで使用しています。
$ npm --version
7.5.6
あなたの回答
tips
プレビュー