🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@procore/eslint-config-procore

Package Overview
Dependencies
Maintainers
25
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@procore/eslint-config-procore

ESLint configuration used at Procore

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
25
Created
Source

eslint-config

A (hopefully) shared eslint config for Procore

Installation

This package relies on peer dependencies that you can add with this command

yarn add \
  @procore/eslint-config-procore \
  prettier \
  eslint \
  eslint-config-airbnb \
  eslint-config-prettier \
  eslint-plugin-jsx-a11y \
  eslint-plugin-prettier \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-import \
  -DE

Then extend from the config package in your .eslintrc

/* .eslintrc */
{
  "extends": ["@procore/eslint-config-procore"]
}

In your package.json, you can add to the "scripts" so that you can do yarn lint:

"scripts": {
  "lint": "eslint '*/**/*.{js,jsx,ts,tsx}'",
},

If you need to, add a .eslintignore:

/node_modules/**
/coverage/**
/build/**

FAQs

Package last updated on 18 Oct 2019

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