An ESLint plugin for annotating React components.
You'll first need to install ESLint:
npm i eslint --save-devNext, install @fullstory/eslint-plugin-annotate-react:
npm install @fullstory/eslint-plugin-annotate-react --save-devAdd @fullstory/eslint-plugin-annotate-react to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["@fullstory/annotate-react"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@fullstory/annotate-react/data-component": "error"
}
}...