Skip to content

Instantly share code, notes, and snippets.

@nottyo
Last active March 4, 2022 09:11
Show Gist options
  • Save nottyo/0b02c15e3f5e23b32901978fa83418de to your computer and use it in GitHub Desktop.
Save nottyo/0b02c15e3f5e23b32901978fa83418de to your computer and use it in GitHub Desktop.
ESLint Test Selectors - Custom Attribute Name
{
"plugins": [
"test-selectors"
],
"extends": [
"react-app",
"react-app/jest",
"plugin:test-selectors/recommendedWithErrors"
],
"rules": {
"test-selectors/button": [
"error",
"always",
{
"testAttribute": "data-atid"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment