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