https://github.com/treasure-data/eslint-plugin-td
Stores td-console config so that it can be reused
https://github.com/treasure-data/eslint-plugin-td
Last synced: about 1 year ago
JSON representation
Stores td-console config so that it can be reused
- Host: GitHub
- URL: https://github.com/treasure-data/eslint-plugin-td
- Owner: treasure-data
- Created: 2018-01-03T19:55:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T09:03:41.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T04:20:35.610Z (over 1 year ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 3
- Watchers: 76
- Forks: 3
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing/adding-new-rules.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# eslint-plugin-td
> A shared eslint config and additional rules, to be used across Treasure Data frontend projects.
[](https://travis-ci.org/treasure-data/eslint-plugin-td)
## Install
```
$ npm install --save-dev eslint eslint-plugin-td eslint-plugin-react-hooks
```
## Usage
Configure eslint to use it in `package.json`:
```json
{
"eslintConfig": {
"extends": "plugin:td/recommended",
"plugins": ["td"]
}
}
```
For more information on configuring eslint, see the [docs](https://eslint.org/docs/user-guide/configuring).
## Rules
- [**no-ducks**](/docs/rules/no-ducks.md) - Prevents the use of ["duck modules"](https://github.com/erikras/ducks-modular-redux).
- [**modal-usage**](/docs/rules/modal-usage.md) - Ensure modals with a simple structure use ``
## Licence
Apache 2.0 © [Treasure Data](https://treasuredata.com)