mirror of
https://github.com/ivuorinen/base-configs-prettier.git
synced 2026-03-07 23:57:01 +00:00
5c135f50dd489f70b90b090e016662a80de5b3a4
* ci: migrate codeql to composable workflow
* fix: correct codeql workflow permissions, cron, and action ref
- Set root-level permissions to {}
- Add job-level permissions (actions, contents, packages, security-events)
- Pin action ref to commit hash with version comment
- Fix mangled cron schedule
- Clean up workflow structure
* fix: correct codeql workflow language, queries, permissions, and action ref
- Use 'javascript' instead of 'javascript-typescript' for CodeQL language
- Add queries: security-and-quality parameter
- Set root-level permissions to {}
- Add job-level permissions (actions, contents, packages, security-events)
- Pin action ref to commit hash with version comment
- Fix mangled cron schedule
@ivuorinen/prettier-config
ivuorinen's shareable configuration for
Prettier.
Table of Contents
Installation
Install this config as a devDependencies:
# npm
npm install @ivuorinen/prettier-config --save-dev
# Yarn
yarn add @ivuorinen/prettier-config --dev
After installing it, a .prettierrc.json file will be created automatically in the project's root folder with the following configuration:
"@ivuorinen/prettier-config"
Note: This method does not offer a way to extend the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a
.prettierrc.jsfile and export the modifications, e.g:module.exports = { ...require("@ivuorinen/prettier-config"), // Add custom options below: semi: true, };
Documentations
Read the Prettier docs for more information.
Contributing
If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.
Changelog
See CHANGELOG for a human-readable history of changes.
License
Distributed under the MIT License. See LICENSE for more information.
Description
Languages
JavaScript
100%