1.0.0 • Published 3 years ago

@theonlydevsever/prettier v1.0.0

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

@theonlydevsever/prettier

publish tag

Prettier configuration for @theonlydevsever

Install

// using yarn
yarn add -D @theonlydevsever/prettier prettier

// using npm
npm install --save-dev @theonlydevsever/prettier prettier

Usage

This configuration can be set up using the package.json or prettier.config.js file.

package.json

{
  "name": "no-transitory",
  "version": "1.0.0",
  "author": "alexisonfire",
  "prettier": "@theonlydevsever/prettier",
  "dependencies": {
    "react": "^17.0.1"
  }
}

prettier.config.js

module.exports = {
    ...require("@theonlydevsever/prettier"),
    // The configuration can be extended when using a prettier.config.js file
    semi: false
};

Ignoring Files

If you want prettier to ignore certain files, create a .prettierignore file in your project's root firectory and add all of the files you want prettier to ignore.

Here is our recommended .prettierignore

node_modules
public
provisions
coverage
build
docs
db
*.svg
*.DS_Store
*.md
*.d.ts