Skip to content

Commit

Permalink
fix: third round of bug fixes (#320)
Browse files Browse the repository at this point in the history
* fix(prefer-screen-queries): improve error message

* chore: update package keywords

Closes #318
  • Loading branch information
Belco90 committed Apr 10, 2021
1 parent ce38144 commit 20027f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rules/prefer-screen-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export default createTestingLibraryRule<Options, MessageIds>({
meta: {
type: 'suggestion',
docs: {
description: 'Suggest using screen while using queries',
description: 'Suggest using screen while querying',
category: 'Best Practices',
recommended: 'error',
},
messages: {
preferScreenQueries:
'Use screen to query DOM elements, `screen.{{ name }}`',
'Avoid destructuring queries from `render` result, use `screen.{{ name }}` instead',
},
schema: [],
},
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"keywords": [
"eslint",
"eslintplugin",
"eslint-plugin"
"eslint-plugin",
"lint",
"testing-library",
"testing"
],
"author": {
"name": "Mario Beltrán Alarcón",
Expand Down

0 comments on commit 20027f4

Please sign in to comment.