Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spot-meetings/code-style

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spot-meetings/code-style

Spot's Code Style configs (ESLint, Prettier)

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@spot-meetings/eslint-config

Spot's Code Style configs (ESLint, Prettier).

Supports Node.js, TypeScript and React.

Installation

npm i -D @spot-meetings/code-style

yarn add -D @spot-meetings/code-style

Configuration

For JavaScript

/.eslintrc

{
  "extends": "@spot-meetings/code-style/javascript"
}

/.prettierrc.js

module.exports = require('@spot-meetings/code-style/prettier')

For TypeScript

/.eslintrc

{
  "extends": "@spot-meetings/code-style/typescript"
}

/.prettierrc.js

module.exports = require('@spot-meetings/code-style/prettier')

Project Setup

After installation, you can run the setup script with:

$(yarn bin)/spot-setup-code-style

$(npm bin)/spot-setup-code-style

With TypeScript, you may have to update the project configuration to the parser options section of the ESLint config to point to the correct ./tsconfig.json file:

{
  "extends": "@spot-meetings/code-style/typescript",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

VSCode

Add the ESLint and Prettier extensions and configure your formatter to use Prettier as default.

Keywords

FAQs

Package last updated on 03 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