eslint-plugin-reactxp

0.2.0 • Public • Published

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

Name Description
no-unreferenced-styles Disallow unused styles
incorrect-this-props Disallow use this.props in methods with the props argument

License and Copyright

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

Package Sidebar

Install

npm i eslint-plugin-reactxp

Weekly Downloads

77

Version

0.2.0

License

MIT

Unpacked Size

20.1 kB

Total Files

13

Last publish

Collaborators

  • otarasiuk