1.2.0 • Published 6 years ago

@procore/eslint-config-procore v1.2.0

Weekly downloads
18
License
SEE LICENSE IN LI...
Repository
github
Last release
6 years ago

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/**
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

0.1.0

7 years ago