1.0.8 • Published 2 years ago

@angel-studios/prettier-config v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@Angel-Studios/prettier-config

Angel Studios Prettier config.

Caution

If you are importing global styles, create one file that imports all of the others in the preferred order so that the order sorting plugin doesn't put them in the incorrect order.

Usage

Install:

$ npm install -D prettier @angel-studios/prettier-config @trivago/prettier-plugin-sort-imports

or

$ yarn add --dev prettier @angel-studios/prettier-config @trivago/prettier-plugin-sort-imports

Edit package.json:

{
  // ...
  "prettier": "@angel-studios/prettier-config"
}

Configuring with eslint

$ npm install -D eslint-config-prettier eslint-plugin-prettier

or

$ yarn add --dev eslint-config-prettier eslint-plugin-prettier

Edit eslintrc.js:

{
    // ...
    "extends": [
        // ...
        'prettier'
    ],
    "plugins": [
        // ...
        'prettier': 
    ],
    "rules": [
        // ...
        'prettier/prettier': 'error'
    ]
}

Setup lint-stages / husky

Follow the steps below to setup lint-staged / husky and enable prettier running on every commit!

https://github.com/okonet/lint-staged

Edit package.json

{
  // ...
  "lint-staged": {
    "*.js": [
      "eslint --cache --fix"
    ],
    "*.{js,css,md}": "prettier --write"
  }
}
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago