0.0.3 ā€¢ Published 1 year ago

@deskpro/eslint-plugin-deskpro-product v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

eslint-plugin-deskpro

Deskpro specific eslint rules

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @deskpro/eslint-plugin-deskpro-product:

npm install @deskpro/eslint-plugin-deskpro-product --save-dev

Usage (locally)

Add @deskpro/eslint-plugin-deskpro-product to your dev dependencies. Use the link:../../../ format if you're running it locally - you'll need to re-install it on every change.

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

{
  "plugins": ["@deskpro/deskpro-product"]
}

Then configure the rules you want to use under the rules section in .eslintrc.js

{
  "rules": {
    "@deskpro/deskpro-product/no-concatenated-formatMessage-id": "error",
    "@deskpro/deskpro-product/no-concatenated-translate-id": "error"
  }
}

Rules

šŸ”§ Automatically fixable by the --fix CLI option.

NameDescriptionšŸ”§
no-concatenated-formatMessage-idDisallow concatenation of formatMessage id
no-concatenated-translate-idDisallow concatenation of Translate id
styled-tspan-must-have-as-attributeStyled TSpan element attributes must contain 'as'.šŸ”§
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago