@fuelrats/eslint-plugin

2.3.0 • Public • Published

@fuelrats/eslint-plugin

Companion rules for @fuelrats/eslint-config

Installation

We'll assume you already have ESLint installed. If not, go get started!

You should also setup babel as most of these rules only work with @babel/eslint-parser. If you haven't, go here.

If you are using @fuelrats/eslint-config, all of this setup should be done already.

Now, lets install the plugin

$ npm install --save-dev @fuelrats/eslint-plugin
# or
$ yarn add --dev @fuelrats/eslint-plugin

And thats it! See Usage below on how to activate this plugin.

Usage

With @fuelrats/eslint-config

There is an optional plugin ruleset within the config package. Add it to your extends array to activate it:

{
    "extends": [
        "@fuelrats/eslint-config",
        "@fuelrats/eslint-config/plugins/fuelrats"
    ]
}

Without @fuelrats/eslint-config

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

{
    "plugins": [
        "@fuelrats"
    ]
}

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

{
    "rules": {
        "@fuelrats/no-mixed-access-class-members": "error"
    }
}

Rules

✅ = Recommended rule
🔧 = Auto-fixable with "--fix"
💭 = provides suggestions to fix the issue

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.02latest
3.0.0-canary.10canary

Version History

VersionDownloads (Last 7 Days)Published
3.0.0-canary.10
2.4.0-canary.230
2.4.0-canary.110
2.4.0-canary.90
2.4.0-canary.80
2.4.0-canary.70
2.4.0-canary.60
2.4.0-canary.50
2.4.0-canary.40
2.4.0-canary.30
2.4.0-canary.20
2.4.0-canary.11
2.4.0-canary.00
2.3.02
2.2.00
2.2.0-rc.50
2.2.0-rc.40
2.2.0-rc.30

Package Sidebar

Install

npm i @fuelrats/eslint-plugin

Weekly Downloads

3

Version

2.3.0

License

MIT

Unpacked Size

14.6 kB

Total Files

20

Last publish

Collaborators

  • trezy
  • xlexious
  • clapton