1.3.2 • Published 2 years ago

@waldronmatt/prettier-config v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.3.1

2 years ago

1.2.6

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.7

2 years ago

1.2.5

2 years ago

1.1.6

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.5

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago