2.5.6 • Published 9 months ago

@html-validate/prettier-config v2.5.6

Weekly downloads
863
License
MIT
Repository
gitlab
Last release
9 months ago

@html-validate/prettier-config

HTML-Validate prettier config.

Install

npm install --save-dev @html-validate/prettier-config

Usage

npm pkg set prettier="@html-validate/prettier-config"
npm pkg set scripts.prettier:check="prettier --check ."
npm pkg set scripts.prettier:write="prettier --write ."

Or manually edit package.json:

{
  "scripts": {
    "prettier:check": "prettier --check .",
    "prettier:write": "prettier --write ."
  },
  "prettier": "@html-validate/prettier-config"
}

Prettier does not need to be installed separately, this package includes prettier and its binary.

lint-staged

To use lint-staged (included) configure the pre-commit hook to run husky with the --config flag:

#!/bin/sh

configfile=$(node -p 'require.resolve("@html-validate/prettier-config/lint-staged")')
exec npm exec lint-staged -- --config "${configfile}"

Lint-staged does not need to be installed separately, this package includes lint-staged and its binary.

2.5.0

12 months ago

2.5.2

11 months ago

2.4.14

1 year ago

2.5.1

11 months ago

2.4.13

1 year ago

2.5.4

10 months ago

2.5.3

10 months ago

2.4.15

1 year ago

2.5.6

9 months ago

2.5.5

10 months ago

2.4.12

1 year ago

2.4.11

1 year ago

2.4.10

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.5

2 years ago

2.4.4

2 years ago

2.4.7

2 years ago

2.4.6

2 years ago

2.4.9

2 years ago

2.4.8

2 years ago

2.3.11

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.9

2 years ago

2.3.10

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago