1.0.3 ⢠Published 2 years ago
eslint-plugin-generate-test-id v1.0.3
eslint-plugin-generate-test-id
Fill empty data-test-id attributes with nanoid.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-generate-test-id:
npm install eslint-plugin-generate-test-id --save-devUsage
.eslintrc.json
{
"extends": ["plugin:generate-test-id/recommended"]
}eslint.config.js (requires eslint>=v8.23.0)
const generateTestIdJsx = require("eslint-plugin-eslint-plugin/configs/recommended");
module.exports = [generateTestIdJsx];Rules
ā ļø Configurations set to warn in.\
ā
Set in the recommended configuration.\
š§ Automatically fixable by the --fix CLI option.
| Name | Description | ā ļø | š§ |
|---|---|---|---|
| jsx | Fill empty data-test-id attributes with nanoid | ā | š§ |
Preset configs
Recommended config
{
"extends": ["plugin:generate-test-id/recommended"]
}