1.0.0 • Published 5 years ago

prettier-config-udemy v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Udemy Prettier Config

This configuration provides a basis for any ES2015 JavaScript code developed at Udemy. It is mainly used by udemy/website-django/static and udemy/website-django/e2e.

Installation

Install Prettier locally.

$ yarn add prettier --dev

Install the Udemy Prettier Config locally.

$ yarn add prettier-config-udemy --dev

Configuration

Add a require section to your .prettierrc.js and specify prettier-config-udemy a required module. You can additionally adjust rules by overriding them. E.g.:

// A .prettierrc.js

module.exports = {
    ...require("prettier-config-udemy"),
    
    // Any overwrites.
    printWidth: 140,
    tabWidth: 4
};

Contributing

See Contributing.