Socket
Book a DemoInstallSign in
Socket

@g123jp/prettier-config-recommended

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@g123jp/prettier-config-recommended

recommended prettier config for frontend projects

1.2.2
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
4
Weekly downloads
 
Created
Source

recommended prettier config for frontend projects

1. install

yarn add -D @g123jp/prettier-config-recommended

If you are using this config with @g123jp/eslint-config-react already, your all set.

If you are using other eslint configs, you may want to add eslint-config-prettier as well, please follow their docs for the further configuration.

  • prettier
  • eslint-config-prettier
yarn add -D prettier eslint-config-prettier

2. usage

  • package.json
{
  "prettier": "@g123jp/prettier-config-recommended"
}

3. ref

{
  "editor.tabSize": 2,
  "files.insertFinalNewline": true,
  "typescript.tsdk": "node_modules/typescript/lib",
  "prettier.requireConfig": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ],
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features",
    "editor.formatOnSave": true,
  }
}

Keywords

prettier

FAQs

Package last updated on 08 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.