Détail du package

@lmc-eu/prettier-config

lmc-eu5.9kBSD-3-Clause2.0.1

LMC's ESlint configuration for Prettier

prettier, lmc, config

readme

Prettier Config Documentation

Documentation for the @lmc-eu/prettier-config module.

Usage

# Yarn:
yarn add --dev @lmc-eu/prettier-config

# npm:
npm install --save-dev @lmc-eu/prettier-config

And reference it in your .prettierrc.js file:

module.exports = require('@lmc-eu/prettier-config');

Or you can choose your preffered way of using configs:

<summary>package.json</summary> json { // ... "prettier": "@lmc-eu/prettier-config" }
<summary>.prettierrc or .prettierrc.json</summary> json "@lmc-eu/prettier-config"

Note: If you are using prettier < v1.17 check this note.

Extending

To extend the current options you will need to create a .prettierrc.js and add the following:

module.exports = {
  ...require('@lmc-eu/prettier-config'),

  // Add custom options bellow:
  useTabs: true,
};

Notes

Prettier Version

Versions of prettier before v1.17 did not feature the possibility of using a shared config via package.json. The way to do it is similar to when extending, except that you can just export the config directly:

// .prettierrc.js

module.exports = require('@lmc-eu/prettier-config');

More

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.0.1 (2024-08-07)

Styles

  • repo: Reformat markdown files base on remark-config (7594cd7), closes #12

Note: Version bump only for package @lmc-eu/prettier-config

2.0.0 (2023-10-06)

BREAKING CHANGES

  • prettier: Drop support for Node.js v14 and older (4af5a9f), closes #130

Note: Version bump only for package @lmc-eu/prettier-config

1.2.4 (2023-01-16)

Chores

  • ci: Introduce release-sync command in Makefile (029ad33)

Styles

  • repo: Rewrite documentation using Textlint ruleset (22e19bd)

Note: Version bump only for package @lmc-eu/prettier-config

1.2.3 (2022-03-08)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/prettier-config

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines and LMC GitHub preset for the list of supported change types.

1.2.2 (2022-01-18)

Documentation

  • prettier-config: Include changelog (078813b)

1.2.1 (2021-12-18)

Styles

  • eslint-config-base: Apply base ESLint rules on current codebase (d86c0d1)

1.2.0 (2021-11-25)

Features

  • prettier-config: Increase printWidth to 120 characters (1a1ef9a)

Styles

  • prettier: Apply prettier formatting to codebase (6a43307)

1.1.1 (2021-11-12)

Chores

  • Properly declare paths to repositories in package.json (a85199b)

1.1.0 (2021-11-02)

Documentation

  • Introduce lincense and add credit to strv for inspiration (a2b5a9e)

Features

  • prettier-config: Increase printWidth to 100 characters (f074cac)

1.0.3 (2021-07-28)

Features

  • browserslist-config: Introduce Browserslist config (a7b5e1e)

1.0.2 (2021-06-03)

Documentation

  • prettier-config: Extending prettier config as json (68b441c)

1.0.1 (2021-01-27)

Bug Fixes

  • prettier-config: Package name with prefix (4e5b106)

1.0.0 (2021-01-17)

Features

  • prettier-config: Introduce prettier config (387d2fd)