Skip to content

Commit

Permalink
Use prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
shirayu committed Mar 6, 2024
1 parent c5f8c5e commit 513b0d2
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 927 deletions.
8 changes: 0 additions & 8 deletions .stylelintrc.json

This file was deleted.

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"test:eslint": "find src/js -type f | xargs eslint",
"test:html": "htmlhint src",
"test:md": "npx markdownlint *.md",
"test:css": "find src/css -type f | xargs npx stylelint",
"format:html": "find src -name '*.html'| xargs -I {} bash -c 'npx html-beautify -q --end-with-newline {} | diff -q - {} '",
"format:css": "find src/css -type f | xargs -I {} bash -c 'npx css-beautify -q --end-with-newline {} | diff -q - {} '",
"test": "run-s test:eslint test:html test:md test:css format:html format:css",
"test:prettier": "npx prettier --check src",
"test": "run-s test:eslint test:html test:md test:prettier",
"style": "npx prettier -w ./src/css ./src/index.html ./src/js",
"build": "bash sync_modules.sh"
},
"repository": {
Expand All @@ -37,11 +36,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"htmlhint": "^1.1.4",
"js-beautify": "^1.15.1",
"markdownlint-cli": "^0.39.0",
"npm-run-all": "^4.1.5",
"stylelint": "^16.2.1",
"stylelint-config-recommended": "^14.0.0"
"npm-run-all": "^4.1.5"
},
"engines": {
"npm": "Use pnpm instead of npm!"
Expand Down
Loading

0 comments on commit 513b0d2

Please sign in to comment.