Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexandernanberg/eslint-plugin-fbt
- Owner: alexandernanberg
- License: mit
- Created: 2022-01-18T09:59:40.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T18:48:50.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T23:54:39.223Z (7 months ago)
- Topics: eslint, eslint-plugin, fbt
- Language: JavaScript
- Homepage:
- Size: 170 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
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)