Socket
Socket
Sign inDemoInstall

@vercel/style-guide

Package Overview
Dependencies
Maintainers
60
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/style-guide

Vercel's style guide and configs.


Version published
Weekly downloads
264K
decreased by-4%
Maintainers
60
Weekly downloads
 
Created
Source

style-guide

This repository is the home of our style guide, along with configs for popular linting and styling tools.

Prettier

To use the shared Prettier config, set the following in package.json.

{
  "prettier": "@vercel/style-guide/prettier"
}

ESLint

To use the shared ESLint config, set the following in .eslintrc.js.

Note that the Jest config can be scoped to include/exclude specific paths.

module.exports = {
  extends: [
    '@vercel/style-guide/eslint',
    '@vercel/style-guide/eslint/react',
    '@vercel/style-guide/eslint/typescript',
  ],
  overrides: [
    {
      files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
      extends: ['@vercel/style-guide/eslint/jest'],
    },
  ],
};

Coming soon

  • EditorConfig
  • Stylelint
  • Automatic publishing
  • More?

FAQs

Package last updated on 06 Aug 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc