Skip to content

Commit

Permalink
ci: add prettier for md files wd-223 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove authored Nov 28, 2023
1 parent e0c10a6 commit b40a0be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build: clean
# Prettify

prettify:
npx prettier --write "**/*.{json,yml,njk,css,js,cjs,d.ts}"
npx prettier --write "**/*.{json,md,yml,njk,css,js,cjs,d.ts}"

# Lint

Expand All @@ -23,7 +23,7 @@ lint_fs:
lint_editor:
npx editorconfig-checker
lint_prettify:
npx prettier --check "**/*.{json,yml,njk,css,js,cjs,d.ts}"
npx prettier --check "**/*.{json,md,yml,njk,css,js,cjs,d.ts}"
lint_markup:
npx node-w3c-validator -i "build/*.html" -f lint -evH
lint_html:
Expand Down
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('lint-staged').Config} */
let config = {
'*': `make lint_editor lint_fs`,
'*.{json,yml,njk,css,js,cjs,d.ts,}': `prettier --write`,
'*.{json,md,yml,njk,css,js,cjs,d.ts}': `prettier --write`,
'*.css': `make lint_css`,
'*.js': `make lint_js lint_type`,
'*.njk': `make lint_html lint_bem`,
Expand Down
18 changes: 10 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
This repository is responsible for the Vladyslav Zubko's website.

## Requirements
- Node.js ([LTS](https://nodejs.org/en/about/previous-releases))
- NPM ([LTS](https://nodejs.org/en/about/previous-releases))

- Node.js ([LTS](https://nodejs.org/en/about/previous-releases))
- NPM ([LTS](https://nodejs.org/en/about/previous-releases))

## Development
- Install dependencies: **`npm install`**
- Start client and server locally: **`make start`**
- Start client locally: **`make start_client`**
- Start server locally: **`make start_server`**
- Build for production: **`make build`**
- Lint code: **`make lint`**

- Install dependencies: **`npm install`**
- Start client and server locally: **`make start`**
- Start client locally: **`make start_client`**
- Start server locally: **`make start_server`**
- Build for production: **`make build`**
- Lint code: **`make lint`**

## License

Expand Down

0 comments on commit b40a0be

Please sign in to comment.