diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index cc56863..0000000 --- a/.prettierrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "plugins": ["prettier-plugin-go-template"], - "bracketSameLine": true, - "goTemplateBracketSpacing": true, - "overrides": [ - { - "files": [ - "*.html" - ], - "options": { - "parser": "go-template" - } - } - ] -} diff --git a/package.json b/package.json index 284b05b..35dcaeb 100644 --- a/package.json +++ b/package.json @@ -11,17 +11,21 @@ }, "homepage": "https://github.com/hugomods/____", "devDependencies": { + "@hugomods/prettier-config": "^0.0.2", "@tsconfig/recommended": "^1.0.2", - "prettier": "^3.0.0", - "prettier-plugin-go-template": "^0.0.15", "stylelint": "^16.0.0", "stylelint-config-standard-scss": "^13.0.0", "stylelint-scss": "^6.0.0", "ts-standard": "^12.0.2" }, "scripts": { - "lint": "npm run eslint && npm run stylelint", - "eslint": "ts-standard", - "stylelint": "npx stylelint \"**/*.scss\"" - } + "lint": "npm run lint:prettier && npm run lint:style && npm run lint:standard", + "lint:prettier": "prettier **/*.html i18n/* data/* **/*.md --check", + "lint:prettier:fix": "prettier **/*.html i18n/* data/* **/*.md -w", + "lint:standard": "ts-standard .", + "lint:standard:fix": "ts-standard --fix .", + "lint:style": "stylelint \"**/*.scss\"", + "lint:style:fix": "stylelint \"**/*.scss\" --fix" + }, + "prettier": "@hugomods/prettier-config" }