Skip to content

Commit 67abbc0

Browse files
committed
Configure Prettier
1 parent c811d78 commit 67abbc0

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

.prettierrc

-15
This file was deleted.

package.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@
1111
},
1212
"homepage": "https://github.com/hugomods/____",
1313
"devDependencies": {
14+
"@hugomods/prettier-config": "^0.0.2",
1415
"@tsconfig/recommended": "^1.0.2",
15-
"prettier": "^3.0.0",
16-
"prettier-plugin-go-template": "^0.0.15",
1716
"stylelint": "^16.0.0",
1817
"stylelint-config-standard-scss": "^13.0.0",
1918
"stylelint-scss": "^6.0.0",
2019
"ts-standard": "^12.0.2"
2120
},
2221
"scripts": {
23-
"lint": "npm run eslint && npm run stylelint",
24-
"eslint": "ts-standard",
25-
"stylelint": "npx stylelint \"**/*.scss\""
26-
}
22+
"lint": "npm run lint:prettier && npm run lint:style && npm run lint:standard",
23+
"lint:prettier": "prettier **/*.html i18n/* data/* **/*.md --check",
24+
"lint:prettier:fix": "prettier **/*.html i18n/* data/* **/*.md -w",
25+
"lint:standard": "ts-standard .",
26+
"lint:standard:fix": "ts-standard --fix .",
27+
"lint:style": "stylelint \"**/*.scss\"",
28+
"lint:style:fix": "stylelint \"**/*.scss\" --fix"
29+
},
30+
"prettier": "@hugomods/prettier-config"
2731
}

0 commit comments

Comments
 (0)