1.0.1 • Published 10 months ago

prettier-config-landr v1.0.1

Weekly downloads
493
License
MIT
Repository
github
Last release
10 months ago

prettier-config-landr

This package exposes the Prettier configuration used for LANDR projects.

Installation

Install prettier-config-landr and prettier as a dev dependency to your project.

# Using npm
npm install prettier prettier-config-landr --save-dev
# Using yarn
yarn add prettier prettier-config-landr --dev

Then in a .prettierrc.js file, add the following:

module.exports = require('prettier-config-landr');

Overriding settings

To overwrite some of the settings provided by prettier-config-landr the .prettierrc.js file should be setup as follows:

// Example of using prettier-config-landr while changing the tab width for .scss files to 2 spaces

const defaultConfig = require('prettier-config-landr');

module.exports = {
  ...defaultConfig,
  overrides: [
    ...defaultConfig.overrides,
    {
      files: '*.scss',
      options: {
        tabWidth: 2,
      },
    },
  ],
};
1.0.1

10 months ago

1.0.0

3 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago