eslint-plugin-rs

1.0.4 • Public • Published

eslint-plugin-rs

Contains eslint rules for tests and decorators

Installation

Run the following command to install eslint-plugin-rs:

$ npm i --save-dev eslint-plugin-rs

Usage

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

{
  plugins: ['rs'],
}

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

{
    "rules": {
      'rs/separate-line-for-decorators': 'error',
      'rs/separate-expect-expression(s)': 'error',
    }
}

Examples

expect

decorators

Useful links for creating custom rules:

Package Sidebar

Install

npm i eslint-plugin-rs

Weekly Downloads

21

Version

1.0.4

License

MIT

Unpacked Size

16.6 kB

Total Files

14

Last publish

Collaborators

  • romiros_look