4.1.0 • Published 8 months ago

@klnjs/prettier-config v4.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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 or use multiple configs, 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/core'
import svelte from '@klnjs/prettier-config/svelte'

export default {
	...core,
	...svelte,
	plugins: [...core.plugins, ...svelte.plugins],
	semi: true
}
4.1.0

8 months ago

4.0.5

10 months ago

4.0.4

10 months ago

4.0.6

10 months ago

4.0.1

10 months ago

4.0.3

10 months ago

4.0.2

10 months ago

3.2.2

10 months ago

4.0.0

10 months ago

3.2.1

10 months ago

3.2.0

10 months ago

3.0.4

11 months ago

3.0.0-rc.13

12 months ago

3.1.2

11 months ago

3.0.3

11 months ago

3.0.0-rc.12

12 months ago

3.0.2

11 months ago

3.1.0

11 months ago

3.0.1

11 months ago

3.0.0-rc.14

12 months ago

3.0.0

12 months ago

3.0.0-rc.11

1 year ago

3.0.0-rc.10

1 year ago

3.0.0-rc.9

1 year ago

3.0.0-rc.8

1 year ago

3.0.0-rc.2

1 year ago

3.0.0-rc.6

1 year ago

3.0.0-rc.5

1 year ago

3.0.0-rc.4

1 year ago

3.0.0-rc.3

1 year ago

2.0.0

1 year ago

2.0.0-rc.3

1 year ago

2.0.0-rc.2

2 years ago

2.0.0-rc.1

2 years ago

1.0.0

2 years ago

0.0.1-rc.10

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-rc.2

2 years ago

0.0.1-rc.9

2 years ago

0.0.1-rc.8

2 years ago

0.0.1-rc.7

2 years ago

0.0.1-rc.6

2 years ago

0.0.1-rc.5

2 years ago

0.0.1-rc.4

2 years ago

0.0.1-rc.3

2 years ago

0.0.1-rc.2

2 years ago

0.0.1-rc.1

2 years ago