eslint-plugin-td
v2.1.1
Published
A shared eslint config and additional rules, to be used across Treasure Data frontend projects
Downloads
35
Readme
eslint-plugin-td
A shared eslint config and additional rules, to be used across Treasure Data frontend projects.
Install
$ npm install --save-dev eslint eslint-plugin-td eslint-plugin-react-hooks
Usage
Configure eslint to use it in package.json
:
{
"eslintConfig": {
"extends": "plugin:td/recommended",
"plugins": ["td"]
}
}
For more information on configuring eslint, see the docs.
Rules
- no-ducks - Prevents the use of "duck modules".
- modal-usage - Ensure modals with a simple structure use
<SimpleModal></SimpleModal>
Licence
Apache 2.0 © Treasure Data