Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prettier-config-atomic

atom-community2.3kMIT4.0.0TypeScript support: included

The Prettier configuration used in atom-community

prettier, prettier-config, prettier-preset, format, beautify

readme

prettier-config-atomic

The Prettier configuration used in atom-community.

This configuration supports all the formats including typescript, javascript, json, yaml, and markdown.

Installation

npm install --save-dev prettier-config-atomic
<summary>This package also needs `prettier`.</summary>

Either add the following to your .npmrc if using pnpm to hoist the prettier bundled with the config

public-hoist-pattern[]=*

Or install prettier yourself in your devDependencies.

If using npm, the prettier dependency is hoisted automatically.

Usage

Add the following to your package.json

"prettier": "prettier-config-atomic",
"scripts": {
  "format": "prettier --write .",
  "test.format": "prettier . --check"
}

and run npm run format to format the files. You can also use npm run test.format in the CI to test formatting of the project.

To ignore some files from formatting, create a .prettierignore file and add the files to the list. This is usually the same as gitignore.

node_modules
pnpm-lock.yaml
package-lock.json
CHANGELOG.md
dist

Notice that the built folders like dist are in the above list.

Modifying the config

Instead of adding the prettier entry to package.json, create a prettier.config.js file at the root of the project with the following content:

module.exports = {
  ...require("prettier-config-atomic"),

  // add the modifications here:

  // an example:
  // semi: true,
}

GitHub Action Lint Job:

Lint:
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
  runs-on: ubuntu-latest
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Commit lint ✨
      uses: wagoid/commitlint-github-action@v2

    - name: Install dependencies
      run: npm install

    - name: Format ✨
      run: npm run test.format

    - name: Lint ✨
      run: npm run test.lint

changelog

3.1.0 (2022-09-04)

Bug Fixes

Features

3.0.11 (2022-07-03)

Bug Fixes

3.0.10 (2022-06-22)

Bug Fixes

  • deps: update dependency prettier to v2.7.1 (2825b26)

3.0.9 (2022-04-02)

Bug Fixes

  • deps: update dependency prettier to v2.6.2 (a55d98d)

3.0.8 (2022-03-26)

Bug Fixes

  • deps: update dependency prettier to v2.6.1 (c4f041c)

3.0.7 (2022-03-17)

Bug Fixes

  • update prettier and dependencies (f03379b)

3.0.6 (2022-03-13)

Reverts

  • Revert "fix(deps): update dependency prettier to v2.5.1" (2589e78)

3.0.5 (2022-03-12)

Bug Fixes

  • deps: update dependency prettier to v2.5.1 (f6a291e)

3.0.4 (2022-03-11)

Bug Fixes

3.0.3 (2022-01-27)

Bug Fixes

3.0.2 (2022-01-27)

Bug Fixes

3.0.1 (2021-10-02)

Bug Fixes

  • inline the plugin into a function (9ed6476)

3.0.0 (2021-10-02)

Bug Fixes

  • use custom sort-package-json to put keywords in the end (acca570)

Features

  • add prettier-plugin-packagejson (047d6b2)

BREAKING CHANGES

  • package.json is now sorted

2.0.6 (2021-09-21)

Bug Fixes

2.0.5 (2021-05-12)

Bug Fixes

2.0.4 (2021-05-02)

Bug Fixes

2.0.1 (2021-04-06)

Bug Fixes

  • set jsDocParser to true (f64a3bf)

2.0.0 (2021-04-06)

Features

  • add prettier-plugin-jsdoc (dbb8edd)

BREAKING CHANGES

  • now the docs are formatted

1.0.1 (2021-03-21)

Bug Fixes

  • npm didn't include the file in the release (809aea5)

1.0.0 (2021-03-21)

Bug Fixes

Features