9.0.1 • Published 6 months ago

@will-stone/prettier-config v9.0.1

Weekly downloads
54
License
MIT
Repository
github
Last release
6 months ago

Prettier Config

My personal Prettier config.

Usage

Install

npm i -D prettier @will-stone/prettier-config

Use config

// prettier.config.js (or .mjs if in CJS env)
export { default } from '@will-stone/prettier-config'

Lint Staged

If you would like to apply formatting before every commit, you can add the following to your package.json:

{
  "scripts": {
    "prepare": "husky install"
  },
  "lint-staged": {
    "*.{css,json,md}": ["prettier --write"]
  }
}

and then

npm i -D husky lint-staged
npx husky install
npx husky add .husky/pre-commit "npx --no lint-staged"
9.0.1

6 months ago

9.0.0

6 months ago

8.0.1

1 year ago

7.0.4

1 year ago

8.0.0

1 year ago

7.0.3

1 year ago

7.0.0

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

6.0.1

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.4

2 years ago

6.0.0

4 years ago

5.0.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.1.2

4 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago