sbdchd / eslint-plugin-cake

:cake: Sweet rules for ESLint
MIT License
1 stars 0 forks source link
eslint eslint-plugin react typescript

eslint-plugin-cake

misc rules for eslint

Why?

Originally to have a forked version of eslint-plugin-react's jsx-no-useless-fragment that is safe. Now this repo is a collection of miscellaneous lints I couldn't find elsewhere.

Installation

You'll first need to install ESLint:

yarn add --dev eslint
# or
npm install eslint --save-dev

Next, install eslint-plugin-cake:

yarn add --dev eslint-plugin-cake
# or
npm install eslint-plugin-cake --save-dev

Usage

Add cake to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["cake"]
}

Supported Rules

see docs

Dev

yarn install

s/lint
s/test

# release new version
s/build

# optional, if you want to test locally:
yarn pack

yarn publish