1.3.2 • Published 3 years ago

@waldronmatt/prettier-config v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Prettier Config

My personal shareable prettier configuration.

Install

yarn add -D prettier @waldronmatt/prettier-config

Usage

.prettierrc.js

module.exports = '@waldronmatt/prettier-config';

Extending

.prettierrc.js

module.exports = {
  ...require('@waldronmatt/prettier-config'),
  semi: false,
};

Add an NPM Script

Running this command:

npm set-script lint:prettier "prettier --write ."

Will create:

package.json

"scripts": {
  "lint:prettier": "prettier --write ."
},

Add a Pre-commit Hook

lint-staged.config.js

module.exports = {
  '**/*': ['prettier --cache --write --ignore-unknown'],
};

License

MIT

1.3.2

3 years ago

1.3.1

3 years ago

1.2.6

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.7

3 years ago

1.2.5

3 years ago

1.1.6

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.5

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago