UNPKG

eslint-plugin-html-attributes

Version:

ESLint plugin to enforce required attributes on HTML elements in JSX/React.

8 lines (7 loc) 199 B
// Recommended config for ESLint flat config const recommended = { rules: { 'require-attribute/require-attribute': ['error', { htmlTag: 'button' }], }, }; export default recommended;