0.0.0-development • Published 6 years ago
eslint-plugin-bam v0.0.0-development
eslint-plugin-bam
BAM's Eslint plugin, inspired from our learning on React and React-Native projects.
Installation
You'll first need to install ESLint:
$ yarn add eslint --devNext, install eslint-plugin-bam:
$ yarn add eslint-plugin-bam --devNote: If you installed ESLint globally (using global) then you must also install eslint-plugin-bam globally.
Usage
Add bam to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["bam"]
}Then either
- configure the rules you want to use under the rules section:
{
"rules": {
"bam/no-react-unbound": "error",
"bam/no-react-uncast-to-boolean": "error",
"bam/react-only-native-animation": "error",
"bam/no-new-date": "error"
}
}- or use the the recommended rule set:
{
"extends": ["plugin:bam/recommended"],
}Supported Rules
no-react-unboundno-react-uncast-to-booleanreact-only-native-animationno-new-date