1.0.3 ā€¢ Published 8 months ago

eslint-plugin-generate-test-id v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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.

NameDescriptionāš ļøšŸ”§
jsxFill empty data-test-id attributes with nanoidāœ…šŸ”§

Preset configs

Recommended config

{
  "extends": ["plugin:generate-test-id/recommended"]
}
1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago