From bfa255903abd3479363dab79224f936e16165173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n=20Alarc=C3=B3n?= Date: Sat, 10 Apr 2021 12:42:36 +0200 Subject: [PATCH 1/2] fix(prefer-screen-queries): improve error message --- lib/rules/prefer-screen-queries.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/prefer-screen-queries.ts b/lib/rules/prefer-screen-queries.ts index 38a5e23a..650e5986 100644 --- a/lib/rules/prefer-screen-queries.ts +++ b/lib/rules/prefer-screen-queries.ts @@ -35,13 +35,13 @@ export default createTestingLibraryRule({ 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: [], }, From 435901afee93b94aa7b7121f9de0b07fa08409e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n=20Alarc=C3=B3n?= Date: Sat, 10 Apr 2021 12:49:14 +0200 Subject: [PATCH 2/2] chore: update package keywords --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ea028b21..ae6893cd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "keywords": [ "eslint", "eslintplugin", - "eslint-plugin" + "eslint-plugin", + "lint", + "testing-library", + "testing" ], "author": { "name": "Mario Beltrán Alarcón",