0.2.0 • Published 2 years ago

eslint-plugin-reactxp v0.2.0

Weekly downloads
27
License
MIT
Repository
github
Last release
2 years ago

eslint-plugin-reactxp

ReactXP specific linting rules for ESLint

GitHub license npm version GitHub Workflow Status Coveralls github npm downloads

Installation

$ npm i eslint-plugin-reactxp @typescript-eslint/parser --save-dev

Usage

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

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["reactxp"]
}

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

{
  "rules": {
    "reactxp/no-unreferenced-styles": "error",
    "reactxp/incorrect-this-props": "error"
  }
}

Or extend recommended config

{
  "extends": "plugin:reactxp/recommended"
}

Rules

NameDescription
no-unreferenced-stylesDisallow unused styles
incorrect-this-propsDisallow use this.props in methods with the props argument

License and Copyright

This software is released under the terms of the MIT license.

0.2.0

2 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.12

3 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago