eslint-plugin-hyperdom
v1.0.0
Published
This is really just a selection of rules from [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) that are useful in hyperdom JSX.
Downloads
853
Readme
eslint plugin for hyperdom
This is really just a selection of rules from eslint-plugin-react that are useful in hyperdom JSX.
install
npm install eslint-plugin-hyperdom --save-dev
.estlintrc
{
"plugins": [
"hyperdom"
],
"extends": [
"plugin:hyperdom/recommended"
]
}
Rules
- hyperdom/jsx-uses-hyperdom: Prevent hyperdom to be incorrectly marked as unused
- hyperdom/hyperdom-in-jsx-scope: Prevent missing
hyperdom
when using JSX - hyperdom/jsx-uses-vars: Prevent variables used in JSX to be incorrectly marked as unused
- hyperdom/jsx-no-duplicate-props: Prevent duplicate props in JSX
- hyperdom/jsx-no-undef: Disallow undeclared variables in JSX