eslint-plugin-cake

ESLint plugin with misc rules.


Keywords
eslint, eslintplugin, eslint-plugin, typescript, react
License
MIT
Install
npm install eslint-plugin-cake@0.1.0

Documentation

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