Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

FBT specific linting rules for ESLint

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages