0.2.1 • Published 4 years ago

eslint-config-redtn-react v0.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

RedTn's ESLint Monorepo

Build Status Greenkeeper badge

Usage

Base ESLint

yarn add eslint-config-redtn --dev

or

npm install eslint-config-redtn --save-dev

With React (extends Base ESlint)

yarn add eslint-config-redtn-react eslint-plugin-react --dev

or

npm install eslint-config-redtn-react eslint-plugin-react --save-dev

Configuration

In your .eslintrc.json

  1. add an extends rule for the config file you are using

Base

{
  "extends": [
    "eslint-config-redtn",
  ],
}

React

{
  "extends": [
    "eslint-config-redtn-react",
  ],
}
  1. Add eslint properties specific to your project
{
  "env": ...,
  "parserOptions": ...,
  "plugins": ...,
}

Developing/Updating

If you are setting up the project for the first time, you must run:

npm run lerna-bootstrap

in order to install all the dependencies and links any cross-dependencies.

Update the packages as necessary and commit with

npm run cz

Generate the CHANGELOG file by running

npm run generate-changelog

Commit this file with

npm run cz

When commits have been published to remote, run

npm run lerna-publish

And follow prompts as desired to publish packages to npm.

More details on lerna can be found at https://lernajs.io/