Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexandernanberg/eslint-plugin-fbt

FBT specific linting rules for ESLint
https://github.com/alexandernanberg/eslint-plugin-fbt

eslint eslint-plugin fbt

Last synced: 1 day ago
JSON representation

FBT specific linting rules for ESLint

Awesome Lists containing this project

README

        

# `eslint-plugin-fbt`

## Installation

```
$ npm install eslint-plugin-fbt --save-dev
```

## Configuration

Add "fbt" to the plugins section.

```json
{
"plugins": ["fbt"]
}
```

Enable the rules that you would like to use.

```json
{
"rules": {
"fbt/no-empty-strings": "error",
"fbt/no-unwrapped-strings": "warn"
}
}
```

# List of supported rules

| Rule | Description |
| :------------------------------------------------------------- | :----------------------------------------------------------- |
| [fbt/no-unwrapped-strings](docs/rules/no-unwrapped-strings.md) | Enforce strings to be wrapped with `` or `fbt()` |
| [fbt/no-empty-strings](docs/rules/no-empty-strings.md) | Prevent empty strings from being given to `` or `fbt()` |

## License

[MIT](/license)