@inficen/eslint-plugin-no-fc

1.0.5 • Public • Published

@inficen/eslint-plugin-no-fc · npm version

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @inficen/eslint-plugin-no-fc:

npm install @inficen/eslint-plugin-no-fc --save-dev

Usage

Add @inficen/no-fc to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@inficen/no-fc"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@inficen/no-fc/no-fc": "warn"
  }
}

If you haven't already, you will need to setup ESLint to work with typescript using typescript-eslint.

npm install --save-dev @typescript-eslint/parser

A minimal configuration would look as follows

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint", "@inficen/no-fc"],
  "rules": {
    "@inficen/no-fc/no-fc": "warn"
  }
}

Supported Rules

Package Sidebar

Install

npm i @inficen/eslint-plugin-no-fc

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

8.01 kB

Total Files

7

Last publish

Collaborators

  • justindng
  • inficen-team
  • lioneltay