@crision-olt/oxlint-plugin-testid-attr
v1.0.2
Published
Oxlint JS plugin that enforces the exact data-testid attribute spelling.
Maintainers
Readme
oxlint-plugin-testid-attr
Oxlint JS plugin that enforces only the exact data-testid attribute spelling across JSX and other markup patterns in Oxlint-supported files.
The plugin reports misspellings such as:
data-testIddata-test-iddataTestIddata-TestId
It also supports autofix and rewrites these to data-testid when you run Oxlint with --fix.
Install
npm install @crision-olt/oxlint-plugin-testid-attrUsage
Configure Oxlint with jsPlugins and enable the rule:
{
"jsPlugins": [
{
"name": "testid-attr",
"specifier": "@crision-olt/oxlint-plugin-testid-attr"
}
],
"rules": {
"testid-attr/valid-testid-attribute": "error"
}
}Rule
testid-attr/valid-testid-attribute
