Last active
March 4, 2022 09:11
-
-
Save nottyo/0b02c15e3f5e23b32901978fa83418de to your computer and use it in GitHub Desktop.
ESLint Test Selectors - Custom Attribute Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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