An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# eslint-plugin-td

> A shared eslint config and additional rules, to be used across Treasure Data frontend projects.

[![Build Status](https://travis-ci.org/treasure-data/eslint-plugin-td.svg?branch=master)](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)