2.0.0 • Published 10 months ago

@kachkaev/prettier-config v2.0.0

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

@kachkaev → prettier config

Works with Prettier v2, Compatible with Yarn PnP ans well as Classic Yarn / NPM. Uses default options, except for setting { trailingComma: "all" }. Includes:

Adding to project

  1. Install the package:

    npm install -D @kachkaev/prettier-config
    ## or
    yarn add -D @kachkaev/prettier-config
  2. Create .prettierrc.js with the following contents:

    module.exports = require("@kachkaev/prettier-config");
  3. Create .prettierignore. For example,

    #######################
    ## Specific to Prettier
    #######################
    
    ## Ignore all files (but still allow sub-folder scanning)
    *
    !*/
    
    ## Allow certain file types
    !*.cjs
    !*.css
    !*.graphql
    !*.js
    !*.json
    !*.jsx
    !*.md
    !*.mjs
    !*.ts
    !*.tsx
    !*.yml
    
    ########################
    ## Same as in .gitignore
    ########################
    
    # (paste lines from .gitignore here)
  4. Optionally, configure package scripts and a pre-commit hook to make sure that all project files are always formatted. See example in njtpackage.json.

2.0.0

10 months ago

1.4.1

11 months ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago