eslint-plugin-generate-test-id

1.0.3 • Public • Published

npm-badge downloads-badge actions-badge renovate-badge codecov-badge

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-dev

Next, install eslint-plugin-generate-test-id:

npm install eslint-plugin-generate-test-id --save-dev

Usage

.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"]
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-generate-test-id

Weekly Downloads

60

Version

1.0.3

License

MIT

Unpacked Size

7.4 kB

Total Files

6

Last publish

Collaborators

  • matzkoh