UNPKG
eslint-plugin-html-attributes
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.3
ESLint plugin to enforce required attributes on HTML elements in JSX/React.
eslint-plugin-html-attributes
/
lib
/
recommended.js
8 lines
(7 loc)
•
199 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
// Recommended config for ESLint flat config
const
recommended = {
rules
: {
'require-attribute/require-attribute'
: [
'error'
, {
htmlTag
:
'button'
}], }, };
export
default
recommended;