eslint-plugin-fbt

0.6.0 • Public • Published

eslint-plugin-fbt

Installation

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

Configuration

Add "fbt" to the plugins section.

{
  "plugins": ["fbt"]
}

Enable the rules that you would like to use.

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

List of supported rules

Rule Description
fbt/no-unwrapped-strings Enforce strings to be wrapped with <fbt> or fbt()
fbt/no-empty-strings Prevent empty strings from being given to <fbt> or fbt()

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-fbt

Weekly Downloads

498

Version

0.6.0

License

MIT

Unpacked Size

9.07 kB

Total Files

7

Last publish

Collaborators

  • alexandernanberg