@klnjs/prettier-config v3.0.0-rc.10
@klnjs/prettier-config
Provides a collection of shareable Prettier configurations for JavaScript / TypeScript projects that can easily be reused across projects.
These configurations aim to enforce consistent code formatting, improve code readability, and streamline the development process by eliminating the need for manual configuration.
Installation
You can install the @klnjs/prettier-config
package using your preferred package manager
npm install @klnjs/prettier-config --save-dev
How to Use
You can use it by creating a config file in any of the supported formats eg. .prettierrc
, in the root of your project and extending this configuration:
'@klnjs/prettier-config/core'
You can use it by referencing it in your package.json
file:
{
"prettier": "@klnjs/prettier-config/core"
}
None of the above methods allow for extending the configuration. To overwrite specific properties, import the configuration into a prettier.config.js
file, in the root of your project, and export the modifications:
import { core } from '@klnjs/prettier-config'
export default {
...core,
semi: true
}
3 days ago
5 days ago
24 days ago
26 days ago
26 days ago
26 days ago
26 days ago
26 days ago
2 months ago
3 months ago
5 months ago
5 months ago
7 months ago
11 months ago
10 months ago
10 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago