🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

prettier-config-get-off-my-lawn

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-config-get-off-my-lawn

A highly opinionated, sharable config of Prettier rules to produce beautiful, readable code.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

prettier-config-get-off-my-lawn

A highly opinionated, sharable config of Prettier rules to produce beautiful, readable code.

prettier-config-get-off-my-lawn

As developers, we spend more time reading code than writing it. These rules aim to make reading code a priority.

That means some rules will be outside of the Prettier defaults and may feel unnecessary or "over the top" for many developers, which is fine. If you don't like it, you can get off my lawn! ... Or extend the rules and override them with the ones that bother you. Either way. 😊

Each and every single rule has been meticulously poured over and purposefully hand picked or excluded.

Install

$ yarn add prettier prettier-config-get-off-my-lawn --dev

Usage

Create a Prettier config in your package.json or .prettierrc.js file.

package.json

{
    "name": "my-awesome-project",
    "prettier": "prettier-config-get-off-my-lawn"
}

.prettierrc.js

Note: This is the only way to extend the configuration to overwrite some properties from the shared configuration.

module.exports = {
    ...require('prettier-config-get-off-my-lawn'),
    // enable additional rules, override rule options, etc.
};

License

MIT © Michael Novotny

Keywords

config

FAQs

Package last updated on 08 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts