Skip to content

ZoranJambor/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

An example prettier-config that can be extended

This project is used in Mastering Linting course, to demonstrate how can the same Prettier config be used in different projects, and how can some options from that config can be extended when Prettier config in JavaScript format (.prettierrc.js) is used.

Installation & usage

Install via NPM and add to your development dependencies:

npm install @cssweekly/prettier-config --save-dev

Use the config in package.json:

{
    "prettier": "@cssweekly/prettier-config" ``
}

Use the config in .prettierrc.js:

module.exports = {
    ...require("@cssweekly/prettier-config")
    // ...
    // Prettier options you want to override
    // ...
}

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published