|
10 | 10 | "template-oss-release-manager": "bin/release-manager.js" |
11 | 11 | }, |
12 | 12 | "scripts": { |
13 | | - "lint": "npm run eslint", |
14 | | - "lintfix": "npm run eslint -- --fix", |
| 13 | + "lint": "npm run eslint && npm run prettier -- --check", |
| 14 | + "lintfix": "npm run eslint -- --fix && npm run prettier -- --write", |
15 | 15 | "posttest": "npm run lint", |
16 | 16 | "snap": "tap", |
17 | 17 | "test": "tap", |
18 | 18 | "template-oss-apply": "template-oss-apply --force", |
19 | 19 | "postlint": "template-oss-check", |
20 | 20 | "postinstall": "template-oss-apply", |
21 | 21 | "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", |
| 22 | + "prettier": "prettier \"**/*.{js,cjs,ts,mjs,jsx,tsx,json}\"", |
22 | 23 | "test-all": "npm run test -ws -iwr --if-present", |
23 | 24 | "lint-all": "npm run lint -ws -iwr --if-present" |
24 | 25 | }, |
|
66 | 67 | "lib/" |
67 | 68 | ], |
68 | 69 | "devDependencies": { |
| 70 | + "@github/prettier-config": "0.0.6", |
69 | 71 | "@npmcli/eslint-config": "^4.0.0", |
70 | 72 | "@npmcli/template-oss": "file:./", |
| 73 | + "eslint-config-prettier": "^9.1.0", |
71 | 74 | "nock": "^13.3.8", |
| 75 | + "prettier": "^3.2.5", |
72 | 76 | "tap": "^16.0.0" |
73 | 77 | }, |
74 | 78 | "tap": { |
|
86 | 90 | }, |
87 | 91 | "templateOSS": { |
88 | 92 | "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", |
89 | | - "publish": true |
| 93 | + "publish": true, |
| 94 | + "prettier": true |
90 | 95 | }, |
91 | 96 | "engines": { |
92 | 97 | "node": "^18.17.0 || >=20.5.0" |
|
0 commit comments