diff --git a/.all-contributorsrc b/.all-contributorsrc index bfa60228..d431e558 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1,696 +1,487 @@ { - "projectName": "eslint-plugin-testing-library", - "projectOwner": "testing-library", - "repoType": "github", - "repoHost": "https://github.com", - "files": [ - "README.md" - ], - "imageSize": 100, - "commit": true, - "commitConvention": "angular", - "contributors": [ - { - "login": "Belco90", - "name": "Mario Beltrán Alarcón", - "avatar_url": "https://avatars1.githubusercontent.com/u/2677072?v=4", - "profile": "https://mario.dev", - "contributions": [ - "code", - "doc", - "review", - "test", - "infra", - "bug", - "maintenance" - ] - }, - { - "login": "thomlom", - "name": "Thomas Lombart", - "avatar_url": "https://avatars3.githubusercontent.com/u/16003285?v=4", - "profile": "http://thomlom.dev", - "contributions": [ - "code", - "doc", - "review", - "test", - "infra" - ] - }, - { - "login": "benmonro", - "name": "Ben Monro", - "avatar_url": "https://avatars3.githubusercontent.com/u/399236?v=4", - "profile": "https://github.com/benmonro", - "contributions": [ - "code", - "doc", - "test" - ] - }, - { - "login": "emmenko", - "name": "Nicola Molinari", - "avatar_url": "https://avatars2.githubusercontent.com/u/1110551?v=4", - "profile": "https://emmenko.org/", - "contributions": [ - "code", - "test", - "doc", - "review" - ] - }, - { - "login": "aarongarciah", - "name": "Aarón García Hervás", - "avatar_url": "https://avatars0.githubusercontent.com/u/7225802?v=4", - "profile": "https://aarongarciah.com", - "contributions": [ - "doc" - ] - }, - { - "login": "Meemaw", - "name": "Matej Šnuderl", - "avatar_url": "https://avatars3.githubusercontent.com/u/8524109?v=4", - "profile": "https://www.matej.snuderl.si/", - "contributions": [ - "ideas", - "doc" - ] - }, - { - "login": "afontcu", - "name": "Adrià Fontcuberta", - "avatar_url": "https://avatars0.githubusercontent.com/u/9197791?v=4", - "profile": "https://afontcu.dev", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "jonaldinger", - "name": "Jon Aldinger", - "avatar_url": "https://avatars1.githubusercontent.com/u/663362?v=4", - "profile": "https://github.com/jonaldinger", - "contributions": [ - "doc" - ] - }, - { - "login": "tknickman", - "name": "Thomas Knickman", - "avatar_url": "https://avatars1.githubusercontent.com/u/2933988?v=4", - "profile": "http://www.thomasknickman.com", - "contributions": [ - "code", - "doc", - "test" - ] - }, - { - "login": "wolverineks", - "name": "Kevin Sullivan", - "avatar_url": "https://avatars2.githubusercontent.com/u/8462274?v=4", - "profile": "http://exercism.io/profiles/wolverineks/619ce225090a43cb891d2edcbbf50401", - "contributions": [ - "doc" - ] - }, - { - "login": "KubaJastrz", - "name": "Jakub Jastrzębski", - "avatar_url": "https://avatars0.githubusercontent.com/u/6443113?v=4", - "profile": "https://kubajastrz.com", - "contributions": [ - "code", - "doc", - "test" - ] - }, - { - "login": "arvigeus", - "name": "Nikolay Stoynov", - "avatar_url": "https://avatars2.githubusercontent.com/u/4872470?v=4", - "profile": "http://arvigeus.github.com", - "contributions": [ - "doc" - ] - }, - { - "login": "marudor", - "name": "marudor", - "avatar_url": "https://avatars0.githubusercontent.com/u/1881725?v=4", - "profile": "https://marudor.de", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "timdeschryver", - "name": "Tim Deschryver", - "avatar_url": "https://avatars1.githubusercontent.com/u/28659384?v=4", - "profile": "http://timdeschryver.dev", - "contributions": [ - "code", - "doc", - "ideas", - "review", - "test", - "bug", - "infra", - "platform" - ] - }, - { - "login": "tdeekens", - "name": "Tobias Deekens", - "avatar_url": "https://avatars3.githubusercontent.com/u/1877073?v=4", - "profile": "http://tdeekens.name", - "contributions": [ - "bug" - ] - }, - { - "login": "victorandcode", - "name": "Victor Cordova", - "avatar_url": "https://avatars0.githubusercontent.com/u/18427801?v=4", - "profile": "https://github.com/victorandcode", - "contributions": [ - "code", - "test", - "bug" - ] - }, - { - "login": "dmitry-lobanov", - "name": "Dmitry Lobanov", - "avatar_url": "https://avatars0.githubusercontent.com/u/7376755?v=4", - "profile": "https://github.com/dmitry-lobanov", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "kentcdodds", - "name": "Kent C. Dodds", - "avatar_url": "https://avatars0.githubusercontent.com/u/1500684?v=4", - "profile": "https://kentcdodds.com", - "contributions": [ - "bug" - ] - }, - { - "login": "gndelia", - "name": "Gonzalo D'Elia", - "avatar_url": "https://avatars1.githubusercontent.com/u/352474?v=4", - "profile": "https://github.com/gndelia", - "contributions": [ - "code", - "test", - "doc", - "review" - ] - }, - { - "login": "jmcriffey", - "name": "Jeff Rifwald", - "avatar_url": "https://avatars0.githubusercontent.com/u/2831294?v=4", - "profile": "https://github.com/jmcriffey", - "contributions": [ - "doc" - ] - }, - { - "login": "lourenci", - "name": "Leandro Lourenci", - "avatar_url": "https://avatars3.githubusercontent.com/u/2339362?v=4", - "profile": "https://blog.lourenci.com/", - "contributions": [ - "bug", - "code", - "test" - ] - }, - { - "login": "miguelerja", - "name": "Miguel Erja González", - "avatar_url": "https://avatars2.githubusercontent.com/u/42043025?v=4", - "profile": "https://xxxl.digital/", - "contributions": [ - "bug" - ] - }, - { - "login": "pustovalov", - "name": "Pavel Pustovalov", - "avatar_url": "https://avatars2.githubusercontent.com/u/1568885?v=4", - "profile": "http://pustovalov.dev", - "contributions": [ - "bug" - ] - }, - { - "login": "jrparish", - "name": "Jacob Parish", - "avatar_url": "https://avatars3.githubusercontent.com/u/5173987?v=4", - "profile": "https://github.com/jrparish", - "contributions": [ - "bug", - "code", - "test" - ] - }, - { - "login": "nickmccurdy", - "name": "Nick McCurdy", - "avatar_url": "https://avatars0.githubusercontent.com/u/927220?v=4", - "profile": "https://nickmccurdy.com/", - "contributions": [ - "ideas", - "code", - "review" - ] - }, - { - "login": "stefcameron", - "name": "Stefan Cameron", - "avatar_url": "https://avatars3.githubusercontent.com/u/2855350?v=4", - "profile": "https://stefancameron.com/", - "contributions": [ - "bug" - ] - }, - { - "login": "thebinaryfelix", - "name": "Mateus Felix", - "avatar_url": "https://avatars2.githubusercontent.com/u/4968788?v=4", - "profile": "https://www.linkedin.com/in/mateusfelix/", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "renatoagds", - "name": "Renato Augusto Gama dos Santos", - "avatar_url": "https://avatars2.githubusercontent.com/u/1663717?v=4", - "profile": "https://github.com/renatoagds", - "contributions": [ - "ideas", - "code", - "doc", - "test" - ] - }, - { - "login": "codecog", - "name": "Josh Kelly", - "avatar_url": "https://avatars0.githubusercontent.com/u/5106076?v=4", - "profile": "https://github.com/codecog", - "contributions": [ - "code" - ] - }, - { - "login": "alessbell", - "name": "Alessia Bellisario", - "avatar_url": "https://avatars0.githubusercontent.com/u/5139846?v=4", - "profile": "http://aless.co", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "skovy", - "name": "Spencer Miskoviak", - "avatar_url": "https://avatars1.githubusercontent.com/u/5247455?v=4", - "profile": "https://skovy.dev", - "contributions": [ - "code", - "test", - "doc", - "ideas" - ] - }, - { - "login": "Gpx", - "name": "Giorgio Polvara", - "avatar_url": "https://avatars0.githubusercontent.com/u/767959?v=4", - "profile": "https://twitter.com/Gpx", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "jdanil", - "name": "Josh David", - "avatar_url": "https://avatars0.githubusercontent.com/u/8342105?v=4", - "profile": "https://github.com/jdanil", - "contributions": [ - "doc" - ] - }, - { - "login": "MichaelDeBoey", - "name": "Michaël De Boey", - "avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4", - "profile": "https://michaeldeboey.be", - "contributions": [ - "code", - "platform", - "maintenance", - "infra", - "review" - ] - }, - { - "login": "J-Huang", - "name": "Jian Huang", - "avatar_url": "https://avatars0.githubusercontent.com/u/4263459?v=4", - "profile": "https://github.com/J-Huang", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "ph-fritsche", - "name": "Philipp Fritsche", - "avatar_url": "https://avatars.githubusercontent.com/u/39068198?v=4", - "profile": "https://github.com/ph-fritsche", - "contributions": [ - "code" - ] - }, - { - "login": "zaicevas", - "name": "Tomas Zaicevas", - "avatar_url": "https://avatars.githubusercontent.com/u/34719980?v=4", - "profile": "http://zaicevas.me", - "contributions": [ - "bug", - "code", - "test", - "doc" - ] - }, - { - "login": "G-Rath", - "name": "Gareth Jones", - "avatar_url": "https://avatars.githubusercontent.com/u/3151613?v=4", - "profile": "https://github.com/G-Rath", - "contributions": [ - "code", - "doc", - "test" - ] - }, - { - "login": "HonkingGoose", - "name": "HonkingGoose", - "avatar_url": "https://avatars.githubusercontent.com/u/34918129?v=4", - "profile": "https://github.com/HonkingGoose", - "contributions": [ - "doc", - "maintenance" - ] - }, - { - "login": "julienw", - "name": "Julien Wajsberg", - "avatar_url": "https://avatars.githubusercontent.com/u/454175?v=4", - "profile": "http://everlong.org/", - "contributions": [ - "bug", - "code", - "test" - ] - }, - { - "login": "dyatko", - "name": "Marat Dyatko", - "avatar_url": "https://avatars.githubusercontent.com/u/31615495?v=4", - "profile": "https://www.linkedin.com/in/maratdyatko/", - "contributions": [ - "bug", - "code" - ] - }, - { - "login": "DaJoTo", - "name": "David Tolman", - "avatar_url": "https://avatars.githubusercontent.com/u/28302401?v=4", - "profile": "https://github.com/DaJoTo", - "contributions": [ - "bug" - ] - }, - { - "login": "AriPerkkio", - "name": "Ari Perkkiö", - "avatar_url": "https://avatars.githubusercontent.com/u/14806298?v=4", - "profile": "https://codepen.io/ariperkkio/", - "contributions": [ - "test" - ] - }, - { - "login": "diegocasmo", - "name": "Diego Castillo", - "avatar_url": "https://avatars.githubusercontent.com/u/4553097?v=4", - "profile": "https://diegocasmo.github.io/", - "contributions": [ - "code" - ] - }, - { - "login": "bpinto", - "name": "Bruno Pinto", - "avatar_url": "https://avatars.githubusercontent.com/u/526122?v=4", - "profile": "http://bpinto.github.com", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "themagickoala", - "name": "themagickoala", - "avatar_url": "https://avatars.githubusercontent.com/u/48416253?v=4", - "profile": "https://github.com/themagickoala", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "PrashantAshok", - "name": "Prashant Ashok", - "avatar_url": "https://avatars.githubusercontent.com/u/5200733?v=4", - "profile": "https://github.com/PrashantAshok", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "IvanAprea", - "name": "Ivan Aprea", - "avatar_url": "https://avatars.githubusercontent.com/u/54630721?v=4", - "profile": "https://github.com/IvanAprea", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "Semigradsky", - "name": "Dmitry Semigradsky", - "avatar_url": "https://avatars.githubusercontent.com/u/1198848?v=4", - "profile": "https://semigradsky.dev/", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "sjarva", - "name": "Senja", - "avatar_url": "https://avatars.githubusercontent.com/u/1133238?v=4", - "profile": "https://github.com/sjarva", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "brenocota-hotmart", - "name": "Breno Cota", - "avatar_url": "https://avatars.githubusercontent.com/u/106157862?v=4", - "profile": "https://dbrno.vercel.app", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "NickBolles", - "name": "Nick Bolles", - "avatar_url": "https://avatars.githubusercontent.com/u/7891759?v=4", - "profile": "https://nickbolles.com", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "bmish", - "name": "Bryan Mishkin", - "avatar_url": "https://avatars.githubusercontent.com/u/698306?v=4", - "profile": "http://www.linkedin.com/in/bmish", - "contributions": [ - "doc", - "tool" - ] - }, - { - "login": "theredspoon", - "name": "Nim G", - "avatar_url": "https://avatars.githubusercontent.com/u/20975696?v=4", - "profile": "https://github.com/theredspoon", - "contributions": [ - "doc" - ] - }, - { - "login": "patriscus", - "name": "Patrick Ahmetovic", - "avatar_url": "https://avatars.githubusercontent.com/u/23729362?v=4", - "profile": "https://github.com/patriscus", - "contributions": [ - "ideas", - "code", - "test" - ] - }, - { - "login": "CodingItWrong", - "name": "Josh Justice", - "avatar_url": "https://avatars.githubusercontent.com/u/15832198?v=4", - "profile": "https://codingitwrong.com", - "contributions": [ - "code", - "test", - "doc", - "ideas" - ] - }, - { - "login": "obsoke", - "name": "Dale Karp", - "avatar_url": "https://avatars.githubusercontent.com/u/389851?v=4", - "profile": "https://dale.io", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "nathanmmiller", - "name": "Nathan", - "avatar_url": "https://avatars.githubusercontent.com/u/37555055?v=4", - "profile": "https://github.com/nathanmmiller", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "justintoman", - "name": "justintoman", - "avatar_url": "https://avatars.githubusercontent.com/u/11649507?v=4", - "profile": "https://github.com/justintoman", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "adevick", - "name": "Anthony Devick", - "avatar_url": "https://avatars.githubusercontent.com/u/106642175?v=4", - "profile": "https://github.com/adevick", - "contributions": [ - "code", - "test", - "doc" - ] - }, - { - "login": "maisano", - "name": "Richard Maisano", - "avatar_url": "https://avatars.githubusercontent.com/u/689081?v=4", - "profile": "https://github.com/maisano", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "doochik", - "name": "Aleksei Androsov", - "avatar_url": "https://avatars.githubusercontent.com/u/31961?v=4", - "profile": "https://github.com/doochik", - "contributions": [ - "code", - "test" - ] - }, - { - "login": "NicolasBonduel", - "name": "Nicolas Bonduel", - "avatar_url": "https://avatars.githubusercontent.com/u/6507454?v=4", - "profile": "https://github.com/NicolasBonduel", - "contributions": [ - "doc" - ] - }, - { - "login": "lesha1201", - "name": "Alexey Ryabov", - "avatar_url": "https://avatars.githubusercontent.com/u/10157660?v=4", - "profile": "https://aryabov.com", - "contributions": [ - "maintenance" - ] - }, - { - "login": "Chamion", - "name": "Jemi Salo", - "avatar_url": "https://avatars.githubusercontent.com/u/22522302?v=4", - "profile": "https://github.com/Chamion", - "contributions": [ - "code", - "test" - ] - } - ], - "contributorsPerLine": 7, - "skipCi": false, - "commitType": "docs" + "projectName": "eslint-plugin-testing-library", + "projectOwner": "testing-library", + "repoType": "github", + "repoHost": "https://github.com", + "files": ["README.md"], + "imageSize": 100, + "commit": true, + "commitConvention": "angular", + "contributors": [ + { + "login": "Belco90", + "name": "Mario Beltrán Alarcón", + "avatar_url": "https://avatars1.githubusercontent.com/u/2677072?v=4", + "profile": "https://mario.dev", + "contributions": [ + "code", + "doc", + "review", + "test", + "infra", + "bug", + "maintenance" + ] + }, + { + "login": "thomlom", + "name": "Thomas Lombart", + "avatar_url": "https://avatars3.githubusercontent.com/u/16003285?v=4", + "profile": "http://thomlom.dev", + "contributions": ["code", "doc", "review", "test", "infra"] + }, + { + "login": "benmonro", + "name": "Ben Monro", + "avatar_url": "https://avatars3.githubusercontent.com/u/399236?v=4", + "profile": "https://github.com/benmonro", + "contributions": ["code", "doc", "test"] + }, + { + "login": "emmenko", + "name": "Nicola Molinari", + "avatar_url": "https://avatars2.githubusercontent.com/u/1110551?v=4", + "profile": "https://emmenko.org/", + "contributions": ["code", "test", "doc", "review"] + }, + { + "login": "aarongarciah", + "name": "Aarón García Hervás", + "avatar_url": "https://avatars0.githubusercontent.com/u/7225802?v=4", + "profile": "https://aarongarciah.com", + "contributions": ["doc"] + }, + { + "login": "Meemaw", + "name": "Matej Šnuderl", + "avatar_url": "https://avatars3.githubusercontent.com/u/8524109?v=4", + "profile": "https://www.matej.snuderl.si/", + "contributions": ["ideas", "doc"] + }, + { + "login": "afontcu", + "name": "Adrià Fontcuberta", + "avatar_url": "https://avatars0.githubusercontent.com/u/9197791?v=4", + "profile": "https://afontcu.dev", + "contributions": ["code", "test"] + }, + { + "login": "jonaldinger", + "name": "Jon Aldinger", + "avatar_url": "https://avatars1.githubusercontent.com/u/663362?v=4", + "profile": "https://github.com/jonaldinger", + "contributions": ["doc"] + }, + { + "login": "tknickman", + "name": "Thomas Knickman", + "avatar_url": "https://avatars1.githubusercontent.com/u/2933988?v=4", + "profile": "http://www.thomasknickman.com", + "contributions": ["code", "doc", "test"] + }, + { + "login": "wolverineks", + "name": "Kevin Sullivan", + "avatar_url": "https://avatars2.githubusercontent.com/u/8462274?v=4", + "profile": "http://exercism.io/profiles/wolverineks/619ce225090a43cb891d2edcbbf50401", + "contributions": ["doc"] + }, + { + "login": "KubaJastrz", + "name": "Jakub Jastrzębski", + "avatar_url": "https://avatars0.githubusercontent.com/u/6443113?v=4", + "profile": "https://kubajastrz.com", + "contributions": ["code", "doc", "test"] + }, + { + "login": "arvigeus", + "name": "Nikolay Stoynov", + "avatar_url": "https://avatars2.githubusercontent.com/u/4872470?v=4", + "profile": "http://arvigeus.github.com", + "contributions": ["doc"] + }, + { + "login": "marudor", + "name": "marudor", + "avatar_url": "https://avatars0.githubusercontent.com/u/1881725?v=4", + "profile": "https://marudor.de", + "contributions": ["code", "test"] + }, + { + "login": "timdeschryver", + "name": "Tim Deschryver", + "avatar_url": "https://avatars1.githubusercontent.com/u/28659384?v=4", + "profile": "http://timdeschryver.dev", + "contributions": [ + "code", + "doc", + "ideas", + "review", + "test", + "bug", + "infra", + "platform" + ] + }, + { + "login": "tdeekens", + "name": "Tobias Deekens", + "avatar_url": "https://avatars3.githubusercontent.com/u/1877073?v=4", + "profile": "http://tdeekens.name", + "contributions": ["bug"] + }, + { + "login": "victorandcode", + "name": "Victor Cordova", + "avatar_url": "https://avatars0.githubusercontent.com/u/18427801?v=4", + "profile": "https://github.com/victorandcode", + "contributions": ["code", "test", "bug"] + }, + { + "login": "dmitry-lobanov", + "name": "Dmitry Lobanov", + "avatar_url": "https://avatars0.githubusercontent.com/u/7376755?v=4", + "profile": "https://github.com/dmitry-lobanov", + "contributions": ["code", "test"] + }, + { + "login": "kentcdodds", + "name": "Kent C. Dodds", + "avatar_url": "https://avatars0.githubusercontent.com/u/1500684?v=4", + "profile": "https://kentcdodds.com", + "contributions": ["bug"] + }, + { + "login": "gndelia", + "name": "Gonzalo D'Elia", + "avatar_url": "https://avatars1.githubusercontent.com/u/352474?v=4", + "profile": "https://github.com/gndelia", + "contributions": ["code", "test", "doc", "review"] + }, + { + "login": "jmcriffey", + "name": "Jeff Rifwald", + "avatar_url": "https://avatars0.githubusercontent.com/u/2831294?v=4", + "profile": "https://github.com/jmcriffey", + "contributions": ["doc"] + }, + { + "login": "lourenci", + "name": "Leandro Lourenci", + "avatar_url": "https://avatars3.githubusercontent.com/u/2339362?v=4", + "profile": "https://blog.lourenci.com/", + "contributions": ["bug", "code", "test"] + }, + { + "login": "miguelerja", + "name": "Miguel Erja González", + "avatar_url": "https://avatars2.githubusercontent.com/u/42043025?v=4", + "profile": "https://xxxl.digital/", + "contributions": ["bug"] + }, + { + "login": "pustovalov", + "name": "Pavel Pustovalov", + "avatar_url": "https://avatars2.githubusercontent.com/u/1568885?v=4", + "profile": "http://pustovalov.dev", + "contributions": ["bug"] + }, + { + "login": "jrparish", + "name": "Jacob Parish", + "avatar_url": "https://avatars3.githubusercontent.com/u/5173987?v=4", + "profile": "https://github.com/jrparish", + "contributions": ["bug", "code", "test"] + }, + { + "login": "nickmccurdy", + "name": "Nick McCurdy", + "avatar_url": "https://avatars0.githubusercontent.com/u/927220?v=4", + "profile": "https://nickmccurdy.com/", + "contributions": ["ideas", "code", "review"] + }, + { + "login": "stefcameron", + "name": "Stefan Cameron", + "avatar_url": "https://avatars3.githubusercontent.com/u/2855350?v=4", + "profile": "https://stefancameron.com/", + "contributions": ["bug"] + }, + { + "login": "thebinaryfelix", + "name": "Mateus Felix", + "avatar_url": "https://avatars2.githubusercontent.com/u/4968788?v=4", + "profile": "https://www.linkedin.com/in/mateusfelix/", + "contributions": ["code", "test", "doc"] + }, + { + "login": "renatoagds", + "name": "Renato Augusto Gama dos Santos", + "avatar_url": "https://avatars2.githubusercontent.com/u/1663717?v=4", + "profile": "https://github.com/renatoagds", + "contributions": ["ideas", "code", "doc", "test"] + }, + { + "login": "codecog", + "name": "Josh Kelly", + "avatar_url": "https://avatars0.githubusercontent.com/u/5106076?v=4", + "profile": "https://github.com/codecog", + "contributions": ["code"] + }, + { + "login": "alessbell", + "name": "Alessia Bellisario", + "avatar_url": "https://avatars0.githubusercontent.com/u/5139846?v=4", + "profile": "http://aless.co", + "contributions": ["code", "test", "doc"] + }, + { + "login": "skovy", + "name": "Spencer Miskoviak", + "avatar_url": "https://avatars1.githubusercontent.com/u/5247455?v=4", + "profile": "https://skovy.dev", + "contributions": ["code", "test", "doc", "ideas"] + }, + { + "login": "Gpx", + "name": "Giorgio Polvara", + "avatar_url": "https://avatars0.githubusercontent.com/u/767959?v=4", + "profile": "https://twitter.com/Gpx", + "contributions": ["code", "test", "doc"] + }, + { + "login": "jdanil", + "name": "Josh David", + "avatar_url": "https://avatars0.githubusercontent.com/u/8342105?v=4", + "profile": "https://github.com/jdanil", + "contributions": ["doc"] + }, + { + "login": "MichaelDeBoey", + "name": "Michaël De Boey", + "avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4", + "profile": "https://michaeldeboey.be", + "contributions": ["code", "platform", "maintenance", "infra", "review"] + }, + { + "login": "J-Huang", + "name": "Jian Huang", + "avatar_url": "https://avatars0.githubusercontent.com/u/4263459?v=4", + "profile": "https://github.com/J-Huang", + "contributions": ["code", "test", "doc"] + }, + { + "login": "ph-fritsche", + "name": "Philipp Fritsche", + "avatar_url": "https://avatars.githubusercontent.com/u/39068198?v=4", + "profile": "https://github.com/ph-fritsche", + "contributions": ["code"] + }, + { + "login": "zaicevas", + "name": "Tomas Zaicevas", + "avatar_url": "https://avatars.githubusercontent.com/u/34719980?v=4", + "profile": "http://zaicevas.me", + "contributions": ["bug", "code", "test", "doc"] + }, + { + "login": "G-Rath", + "name": "Gareth Jones", + "avatar_url": "https://avatars.githubusercontent.com/u/3151613?v=4", + "profile": "https://github.com/G-Rath", + "contributions": ["code", "doc", "test"] + }, + { + "login": "HonkingGoose", + "name": "HonkingGoose", + "avatar_url": "https://avatars.githubusercontent.com/u/34918129?v=4", + "profile": "https://github.com/HonkingGoose", + "contributions": ["doc", "maintenance"] + }, + { + "login": "julienw", + "name": "Julien Wajsberg", + "avatar_url": "https://avatars.githubusercontent.com/u/454175?v=4", + "profile": "http://everlong.org/", + "contributions": ["bug", "code", "test"] + }, + { + "login": "dyatko", + "name": "Marat Dyatko", + "avatar_url": "https://avatars.githubusercontent.com/u/31615495?v=4", + "profile": "https://www.linkedin.com/in/maratdyatko/", + "contributions": ["bug", "code"] + }, + { + "login": "DaJoTo", + "name": "David Tolman", + "avatar_url": "https://avatars.githubusercontent.com/u/28302401?v=4", + "profile": "https://github.com/DaJoTo", + "contributions": ["bug"] + }, + { + "login": "AriPerkkio", + "name": "Ari Perkkiö", + "avatar_url": "https://avatars.githubusercontent.com/u/14806298?v=4", + "profile": "https://codepen.io/ariperkkio/", + "contributions": ["test"] + }, + { + "login": "diegocasmo", + "name": "Diego Castillo", + "avatar_url": "https://avatars.githubusercontent.com/u/4553097?v=4", + "profile": "https://diegocasmo.github.io/", + "contributions": ["code"] + }, + { + "login": "bpinto", + "name": "Bruno Pinto", + "avatar_url": "https://avatars.githubusercontent.com/u/526122?v=4", + "profile": "http://bpinto.github.com", + "contributions": ["code", "test"] + }, + { + "login": "themagickoala", + "name": "themagickoala", + "avatar_url": "https://avatars.githubusercontent.com/u/48416253?v=4", + "profile": "https://github.com/themagickoala", + "contributions": ["code", "test"] + }, + { + "login": "PrashantAshok", + "name": "Prashant Ashok", + "avatar_url": "https://avatars.githubusercontent.com/u/5200733?v=4", + "profile": "https://github.com/PrashantAshok", + "contributions": ["code", "test"] + }, + { + "login": "IvanAprea", + "name": "Ivan Aprea", + "avatar_url": "https://avatars.githubusercontent.com/u/54630721?v=4", + "profile": "https://github.com/IvanAprea", + "contributions": ["code", "test"] + }, + { + "login": "Semigradsky", + "name": "Dmitry Semigradsky", + "avatar_url": "https://avatars.githubusercontent.com/u/1198848?v=4", + "profile": "https://semigradsky.dev/", + "contributions": ["code", "test", "doc"] + }, + { + "login": "sjarva", + "name": "Senja", + "avatar_url": "https://avatars.githubusercontent.com/u/1133238?v=4", + "profile": "https://github.com/sjarva", + "contributions": ["code", "test", "doc"] + }, + { + "login": "brenocota-hotmart", + "name": "Breno Cota", + "avatar_url": "https://avatars.githubusercontent.com/u/106157862?v=4", + "profile": "https://dbrno.vercel.app", + "contributions": ["code", "test"] + }, + { + "login": "NickBolles", + "name": "Nick Bolles", + "avatar_url": "https://avatars.githubusercontent.com/u/7891759?v=4", + "profile": "https://nickbolles.com", + "contributions": ["code", "test", "doc"] + }, + { + "login": "bmish", + "name": "Bryan Mishkin", + "avatar_url": "https://avatars.githubusercontent.com/u/698306?v=4", + "profile": "http://www.linkedin.com/in/bmish", + "contributions": ["doc", "tool"] + }, + { + "login": "theredspoon", + "name": "Nim G", + "avatar_url": "https://avatars.githubusercontent.com/u/20975696?v=4", + "profile": "https://github.com/theredspoon", + "contributions": ["doc"] + }, + { + "login": "patriscus", + "name": "Patrick Ahmetovic", + "avatar_url": "https://avatars.githubusercontent.com/u/23729362?v=4", + "profile": "https://github.com/patriscus", + "contributions": ["ideas", "code", "test"] + }, + { + "login": "CodingItWrong", + "name": "Josh Justice", + "avatar_url": "https://avatars.githubusercontent.com/u/15832198?v=4", + "profile": "https://codingitwrong.com", + "contributions": ["code", "test", "doc", "ideas"] + }, + { + "login": "obsoke", + "name": "Dale Karp", + "avatar_url": "https://avatars.githubusercontent.com/u/389851?v=4", + "profile": "https://dale.io", + "contributions": ["code", "test", "doc"] + }, + { + "login": "nathanmmiller", + "name": "Nathan", + "avatar_url": "https://avatars.githubusercontent.com/u/37555055?v=4", + "profile": "https://github.com/nathanmmiller", + "contributions": ["code", "test"] + }, + { + "login": "justintoman", + "name": "justintoman", + "avatar_url": "https://avatars.githubusercontent.com/u/11649507?v=4", + "profile": "https://github.com/justintoman", + "contributions": ["code", "test"] + }, + { + "login": "adevick", + "name": "Anthony Devick", + "avatar_url": "https://avatars.githubusercontent.com/u/106642175?v=4", + "profile": "https://github.com/adevick", + "contributions": ["code", "test", "doc"] + }, + { + "login": "maisano", + "name": "Richard Maisano", + "avatar_url": "https://avatars.githubusercontent.com/u/689081?v=4", + "profile": "https://github.com/maisano", + "contributions": ["code", "test"] + }, + { + "login": "doochik", + "name": "Aleksei Androsov", + "avatar_url": "https://avatars.githubusercontent.com/u/31961?v=4", + "profile": "https://github.com/doochik", + "contributions": ["code", "test"] + }, + { + "login": "NicolasBonduel", + "name": "Nicolas Bonduel", + "avatar_url": "https://avatars.githubusercontent.com/u/6507454?v=4", + "profile": "https://github.com/NicolasBonduel", + "contributions": ["doc"] + }, + { + "login": "lesha1201", + "name": "Alexey Ryabov", + "avatar_url": "https://avatars.githubusercontent.com/u/10157660?v=4", + "profile": "https://aryabov.com", + "contributions": ["maintenance"] + }, + { + "login": "Chamion", + "name": "Jemi Salo", + "avatar_url": "https://avatars.githubusercontent.com/u/22522302?v=4", + "profile": "https://github.com/Chamion", + "contributions": ["code", "test"] + } + ], + "contributorsPerLine": 7, + "skipCi": false, + "commitType": "docs" } diff --git a/lib/create-testing-library-rule/detect-testing-library-utils.ts b/lib/create-testing-library-rule/detect-testing-library-utils.ts index 9393a88b..af263a9d 100644 --- a/lib/create-testing-library-rule/detect-testing-library-utils.ts +++ b/lib/create-testing-library-rule/detect-testing-library-utils.ts @@ -35,7 +35,7 @@ export type TestingLibrarySettings = { export type TestingLibraryContext< TOptions extends readonly unknown[], - TMessageIds extends string + TMessageIds extends string, > = Readonly< TSESLint.RuleContext & { settings: TestingLibrarySettings; @@ -45,7 +45,7 @@ export type TestingLibraryContext< export type EnhancedRuleCreate< TOptions extends readonly unknown[], TMessageIds extends string, - TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener + TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener, > = ( context: TestingLibraryContext, optionsWithDefault: Readonly, @@ -156,7 +156,7 @@ export type DetectionOptions = { export function detectTestingLibraryUtils< TOptions extends readonly unknown[], TMessageIds extends string, - TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener + TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener, >( ruleCreate: EnhancedRuleCreate, { skipRuleReportingCheck = false }: Partial = {} diff --git a/lib/create-testing-library-rule/index.ts b/lib/create-testing-library-rule/index.ts index 7a919447..c87f6415 100644 --- a/lib/create-testing-library-rule/index.ts +++ b/lib/create-testing-library-rule/index.ts @@ -11,7 +11,7 @@ import { export function createTestingLibraryRule< TOptions extends readonly unknown[], TMessageIds extends string, - TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener + TRuleListener extends TSESLint.RuleListener = TSESLint.RuleListener, >({ create, detectionOptions = {}, diff --git a/lib/rules/await-async-events.ts b/lib/rules/await-async-events.ts index 06a80d78..219c45bf 100644 --- a/lib/rules/await-async-events.ts +++ b/lib/rules/await-async-events.ts @@ -21,7 +21,7 @@ type EventModules = (typeof EVENTS_SIMULATORS)[number]; export type Options = [ { eventModule: EventModules | EventModules[]; - } + }, ]; export default createTestingLibraryRule({ diff --git a/lib/rules/consistent-data-testid.ts b/lib/rules/consistent-data-testid.ts index 7760776c..2536706e 100644 --- a/lib/rules/consistent-data-testid.ts +++ b/lib/rules/consistent-data-testid.ts @@ -10,7 +10,7 @@ export type Options = [ testIdAttribute?: string[] | string; testIdPattern: string; customMessage?: string; - } + }, ]; const FILENAME_PLACEHOLDER = '{fileName}'; diff --git a/lib/rules/no-render-in-lifecycle.ts b/lib/rules/no-render-in-lifecycle.ts index 4496522c..2e5e52c1 100644 --- a/lib/rules/no-render-in-lifecycle.ts +++ b/lib/rules/no-render-in-lifecycle.ts @@ -14,7 +14,7 @@ export type MessageIds = 'noRenderInSetup'; type Options = [ { allowTestingFrameworkSetupHook?: string; - } + }, ]; export function findClosestBeforeHook( diff --git a/lib/rules/prefer-explicit-assert.ts b/lib/rules/prefer-explicit-assert.ts index 7a80e059..4b0d57ea 100644 --- a/lib/rules/prefer-explicit-assert.ts +++ b/lib/rules/prefer-explicit-assert.ts @@ -16,7 +16,7 @@ type Options = [ { assertion?: string; includeFindQueries?: boolean; - } + }, ]; const isAtTopLevel = (node: TSESTree.Node) => diff --git a/lib/rules/prefer-presence-queries.ts b/lib/rules/prefer-presence-queries.ts index dd816408..b654dd6a 100644 --- a/lib/rules/prefer-presence-queries.ts +++ b/lib/rules/prefer-presence-queries.ts @@ -9,7 +9,7 @@ export type Options = [ { presence?: boolean; absence?: boolean; - } + }, ]; export default createTestingLibraryRule({ diff --git a/lib/rules/prefer-query-matchers.ts b/lib/rules/prefer-query-matchers.ts index 3f94a8e9..80e819e9 100644 --- a/lib/rules/prefer-query-matchers.ts +++ b/lib/rules/prefer-query-matchers.ts @@ -11,7 +11,7 @@ export type Options = [ query: 'get' | 'query'; matcher: string; }[]; - } + }, ]; export default createTestingLibraryRule({ diff --git a/lib/utils/types.ts b/lib/utils/types.ts index 4a5a7283..1dd6d9d3 100644 --- a/lib/utils/types.ts +++ b/lib/utils/types.ts @@ -20,7 +20,7 @@ export type TestingLibraryRuleMetaDocs = }; export type TestingLibraryRuleMeta< TMessageIds extends string, - TOptions extends readonly unknown[] + TOptions extends readonly unknown[], > = Omit, 'docs'> & { docs: TestingLibraryRuleMetaDocs; }; diff --git a/tests/create-testing-library-rule.test.ts b/tests/create-testing-library-rule.test.ts index 43b74f70..b302a6de 100644 --- a/tests/create-testing-library-rule.test.ts +++ b/tests/create-testing-library-rule.test.ts @@ -460,7 +460,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'renderError', }, ], - } as const) + }) as const ), { code: ` diff --git a/tests/lib/rules/await-async-events.test.ts b/tests/lib/rules/await-async-events.test.ts index 505e1972..82a9c347 100644 --- a/tests/lib/rules/await-async-events.test.ts +++ b/tests/lib/rules/await-async-events.test.ts @@ -427,7 +427,7 @@ ruleTester.run(RULE_NAME, rule, { await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -452,7 +452,7 @@ ruleTester.run(RULE_NAME, rule, { fireEvent.${eventMethod}(getByLabelText('username')) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -485,7 +485,7 @@ ruleTester.run(RULE_NAME, rule, { test('should handle external function', run) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -512,7 +512,7 @@ ruleTester.run(RULE_NAME, rule, { await testingLibraryFireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -539,7 +539,7 @@ ruleTester.run(RULE_NAME, rule, { await testingLibrary.fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -573,7 +573,7 @@ ruleTester.run(RULE_NAME, rule, { await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -602,7 +602,7 @@ ruleTester.run(RULE_NAME, rule, { await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -635,7 +635,7 @@ ruleTester.run(RULE_NAME, rule, { await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -668,7 +668,7 @@ ruleTester.run(RULE_NAME, rule, { await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( @@ -699,7 +699,7 @@ ruleTester.run(RULE_NAME, rule, { const promise = await fireEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -735,7 +735,7 @@ ruleTester.run(RULE_NAME, rule, { await triggerEvent() }) `, - } as const) + }) as const ), ...FIRE_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -769,7 +769,7 @@ ruleTester.run(RULE_NAME, rule, { triggerEvent() `, - } as const) + }) as const ), ]), ...USER_EVENT_ASYNC_FRAMEWORKS.flatMap((testingFramework) => [ @@ -798,7 +798,7 @@ ruleTester.run(RULE_NAME, rule, { await userEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -823,7 +823,7 @@ ruleTester.run(RULE_NAME, rule, { userEvent.${eventMethod}(getByLabelText('username')) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -850,7 +850,7 @@ ruleTester.run(RULE_NAME, rule, { await testingLibraryUserEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -884,7 +884,7 @@ ruleTester.run(RULE_NAME, rule, { await userEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -914,7 +914,7 @@ ruleTester.run(RULE_NAME, rule, { const promise = await userEvent.${eventMethod}(getByLabelText('username')) }) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -950,7 +950,7 @@ ruleTester.run(RULE_NAME, rule, { await triggerEvent() }) `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -984,7 +984,7 @@ ruleTester.run(RULE_NAME, rule, { triggerEvent() `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -1010,7 +1010,7 @@ ruleTester.run(RULE_NAME, rule, { condition ? null : (null, true && await userEvent.${eventMethod}(getByLabelText('username'))); }); `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -1036,7 +1036,7 @@ ruleTester.run(RULE_NAME, rule, { await (await userEvent.${eventMethod}(getByLabelText('username')) && userEvent.${eventMethod}(getByLabelText('username'))); }); `, - } as const) + }) as const ), ...USER_EVENT_ASYNC_FUNCTIONS.map( (eventMethod) => @@ -1070,7 +1070,7 @@ ruleTester.run(RULE_NAME, rule, { await (await userEvent.${eventMethod}(getByLabelText('username')), null); }); `, - } as const) + }) as const ), ]), { diff --git a/tests/lib/rules/await-async-queries.test.ts b/tests/lib/rules/await-async-queries.test.ts index 799e5e70..efab2cbd 100644 --- a/tests/lib/rules/await-async-queries.test.ts +++ b/tests/lib/rules/await-async-queries.test.ts @@ -64,11 +64,11 @@ function createTestCase( ? { code: createTestCode({ code: test, isAsync, testingFramework }), errors: [], - } + } : { code: createTestCode({ code: test.code, isAsync, testingFramework }), errors: test.errors, - }; + }; }); } @@ -361,7 +361,7 @@ ruleTester.run(RULE_NAME, rule, { }); `, errors: [{ messageId: 'awaitAsyncQuery', line: 6, column: 21 }], - } as const) + }) as const ) ), ...ALL_ASYNC_COMBINATIONS_TO_TEST.map( @@ -382,7 +382,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: query }, }, ], - } as const) + }) as const ), ...ALL_ASYNC_COMBINATIONS_TO_TEST.map( (query) => @@ -403,7 +403,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: query }, }, ], - } as const) + }) as const ), ...ALL_ASYNC_COMBINATIONS_TO_TEST.map( (query) => @@ -425,7 +425,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: query }, }, ], - } as const) + }) as const ), // unresolved async queries are not valid (aggressive reporting) @@ -440,7 +440,7 @@ ruleTester.run(RULE_NAME, rule, { }) `, errors: [{ messageId: 'awaitAsyncQuery', line: 5, column: 27 }], - } as const) + }) as const ), // unhandled promise from async query function wrapper is invalid @@ -463,7 +463,7 @@ ruleTester.run(RULE_NAME, rule, { }) `, errors: [{ messageId: 'asyncQueryWrapper', line: 9, column: 27 }], - } as const) + }) as const ), // unhandled promise from async query arrow function wrapper is invalid ...ALL_ASYNC_COMBINATIONS_TO_TEST.map( @@ -485,7 +485,7 @@ ruleTester.run(RULE_NAME, rule, { }) `, errors: [{ messageId: 'asyncQueryWrapper', line: 9, column: 27 }], - } as const) + }) as const ), // unhandled promise implicitly returned from async query arrow function wrapper is invalid ...ALL_ASYNC_COMBINATIONS_TO_TEST.map( @@ -503,7 +503,7 @@ ruleTester.run(RULE_NAME, rule, { }) `, errors: [{ messageId: 'asyncQueryWrapper', line: 5, column: 27 }], - } as const) + }) as const ), // unhandled promise from custom query matching custom-queries setting is invalid diff --git a/tests/lib/rules/await-async-utils.test.ts b/tests/lib/rules/await-async-utils.test.ts index e91517b3..1a5490c9 100644 --- a/tests/lib/rules/await-async-utils.test.ts +++ b/tests/lib/rules/await-async-utils.test.ts @@ -346,7 +346,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -366,7 +366,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -386,7 +386,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -406,7 +406,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -433,7 +433,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -460,7 +460,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -485,7 +485,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'waitForSomethingAsync' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -507,7 +507,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -532,7 +532,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'waitForSomethingAsync' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( @@ -555,7 +555,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: asyncUtil }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -584,7 +584,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'waitForAsyncUtil' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -614,7 +614,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'myAlias' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -643,7 +643,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'waitForAsyncUtil' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -672,7 +672,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'myAlias' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -700,7 +700,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'waitForAsyncUtil' }, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -729,7 +729,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: 'myAlias' }, }, ], - } as const) + }) as const ), ]), }); diff --git a/tests/lib/rules/no-await-sync-events.test.ts b/tests/lib/rules/no-await-sync-events.test.ts index 93ff235c..a796633e 100644 --- a/tests/lib/rules/no-await-sync-events.test.ts +++ b/tests/lib/rules/no-await-sync-events.test.ts @@ -264,7 +264,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: `fireEvent.${func}` }, }, ], - } as const) + }) as const ) ), // sync userEvent sync methods with await operator are not valid @@ -286,7 +286,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: `userEvent.${func}` }, }, ], - } as const) + }) as const ), // sync fireEvent methods with await operator are not valid @@ -309,7 +309,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: `fireEvent.${func}` }, }, ], - } as const) + }) as const ) ), @@ -331,7 +331,7 @@ ruleTester.run(RULE_NAME, rule, { data: { name: `userEvent.${func}` }, }, ], - } as const) + }) as const ), { diff --git a/tests/lib/rules/no-await-sync-queries.test.ts b/tests/lib/rules/no-await-sync-queries.test.ts index 3b088ad0..0896f817 100644 --- a/tests/lib/rules/no-await-sync-queries.test.ts +++ b/tests/lib/rules/no-await-sync-queries.test.ts @@ -142,7 +142,7 @@ ruleTester.run(RULE_NAME, rule, { column: 31, }, ], - } as const) + }) as const ), // custom sync queries with await operator are not valid { @@ -192,7 +192,7 @@ ruleTester.run(RULE_NAME, rule, { column: 22, }, ], - } as const) + }) as const ), // sync queries in screen with await operator are not valid @@ -210,7 +210,7 @@ ruleTester.run(RULE_NAME, rule, { column: 38, }, ], - } as const) + }) as const ), // sync queries in screen with await operator inside assert are not valid @@ -228,7 +228,7 @@ ruleTester.run(RULE_NAME, rule, { column: 29, }, ], - } as const) + }) as const ), // sync query awaited and related to testing library module @@ -244,7 +244,7 @@ ruleTester.run(RULE_NAME, rule, { } `, errors: [{ messageId: 'noAwaitSyncQuery', line: 4, column: 38 }], - } as const) + }) as const ), // sync query awaited and related to custom module is not valid { diff --git a/tests/lib/rules/no-container.test.ts b/tests/lib/rules/no-container.test.ts index 6967de9e..5f3596a6 100644 --- a/tests/lib/rules/no-container.test.ts +++ b/tests/lib/rules/no-container.test.ts @@ -65,7 +65,7 @@ ruleTester.run(RULE_NAME, rule, { const { container } = render(); const button = container.querySelector('.btn-primary'); `, - } as const) + }) as const ), { settings: { @@ -123,7 +123,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noContainer', }, ], - } as const) + }) as const ), ...SUPPORTED_TESTING_FRAMEWORKS.map( (testingFramework) => @@ -144,7 +144,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noContainer', }, ], - } as const) + }) as const ), { code: ` @@ -214,7 +214,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noContainer', }, ], - } as const) + }) as const ), { settings: { diff --git a/tests/lib/rules/no-debugging-utils.test.ts b/tests/lib/rules/no-debugging-utils.test.ts index b31861a7..4af07e73 100644 --- a/tests/lib/rules/no-debugging-utils.test.ts +++ b/tests/lib/rules/no-debugging-utils.test.ts @@ -602,7 +602,7 @@ ruleTester.run(RULE_NAME, rule, { debug() `, errors: [{ line: 7, column: 7, messageId: 'noDebug' }], - } as const) + }) as const ), { settings: { 'testing-library/utils-module': 'test-utils' }, @@ -629,7 +629,7 @@ ruleTester.run(RULE_NAME, rule, { utils.debug() `, errors: [{ line: 7, column: 13, messageId: 'noDebug' }], - } as const) + }) as const ), { settings: { @@ -665,7 +665,7 @@ ruleTester.run(RULE_NAME, rule, { renamedDestructuredDebug('foo') `, errors: [{ line: 12, column: 13, messageId: 'noDebug' }], - } as const) + }) as const ), ], }); diff --git a/tests/lib/rules/no-dom-import.test.ts b/tests/lib/rules/no-dom-import.test.ts index fd493ad6..e515eb5c 100644 --- a/tests/lib/rules/no-dom-import.test.ts +++ b/tests/lib/rules/no-dom-import.test.ts @@ -192,7 +192,7 @@ ruleTester.run(RULE_NAME, rule, { isOldImport ? oldName : newName }") `, - } as const) + }) as const ) ), { diff --git a/tests/lib/rules/no-manual-cleanup.test.ts b/tests/lib/rules/no-manual-cleanup.test.ts index 61208801..3cdf2c8c 100644 --- a/tests/lib/rules/no-manual-cleanup.test.ts +++ b/tests/lib/rules/no-manual-cleanup.test.ts @@ -67,7 +67,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), ...ALL_TESTING_LIBRARIES_WITH_CLEANUP.map( (lib) => @@ -84,7 +84,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), { settings: { @@ -106,7 +106,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), { settings: { @@ -128,7 +128,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), { settings: { @@ -153,7 +153,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), { settings: { @@ -179,7 +179,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), ...ALL_TESTING_LIBRARIES_WITH_CLEANUP.map( (lib) => @@ -192,7 +192,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), { settings: { @@ -217,7 +217,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), ...ALL_TESTING_LIBRARIES_WITH_CLEANUP.map( (lib) => @@ -233,7 +233,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), ...ALL_TESTING_LIBRARIES_WITH_CLEANUP.map( (lib) => @@ -250,7 +250,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noManualCleanup', }, ], - } as const) + }) as const ), ], }); diff --git a/tests/lib/rules/no-render-in-lifecycle.test.ts b/tests/lib/rules/no-render-in-lifecycle.test.ts index 9665afcc..1561b394 100644 --- a/tests/lib/rules/no-render-in-lifecycle.test.ts +++ b/tests/lib/rules/no-render-in-lifecycle.test.ts @@ -121,7 +121,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ...TESTING_FRAMEWORK_SETUP_HOOKS.map( (setupHook) => @@ -139,7 +139,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ]), // custom render function @@ -164,7 +164,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ...SUPPORTED_TESTING_FRAMEWORKS.flatMap((testingFramework) => [ ...TESTING_FRAMEWORK_SETUP_HOOKS.map( @@ -186,7 +186,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ...TESTING_FRAMEWORK_SETUP_HOOKS.map((allowedSetupHook) => { const [disallowedHook] = TESTING_FRAMEWORK_SETUP_HOOKS.filter( @@ -229,7 +229,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ]), ...TESTING_FRAMEWORK_SETUP_HOOKS.map( @@ -253,7 +253,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ), ...SUPPORTED_TESTING_FRAMEWORKS.flatMap((testingFramework) => TESTING_FRAMEWORK_SETUP_HOOKS.map( @@ -273,7 +273,7 @@ ruleTester.run(RULE_NAME, rule, { messageId: 'noRenderInSetup', }, ], - } as const) + }) as const ) ), ], diff --git a/tests/lib/rules/no-unnecessary-act.test.ts b/tests/lib/rules/no-unnecessary-act.test.ts index 2f1bce65..3dcac3d8 100644 --- a/tests/lib/rules/no-unnecessary-act.test.ts +++ b/tests/lib/rules/no-unnecessary-act.test.ts @@ -330,7 +330,7 @@ const invalidTestCases: InvalidTestCase[] = [ column: 9, }, ], - } as const) + }) as const ), { settings: { diff --git a/tests/lib/rules/no-wait-for-multiple-assertions.test.ts b/tests/lib/rules/no-wait-for-multiple-assertions.test.ts index 8c3a3fec..46f30b7e 100644 --- a/tests/lib/rules/no-wait-for-multiple-assertions.test.ts +++ b/tests/lib/rules/no-wait-for-multiple-assertions.test.ts @@ -125,7 +125,7 @@ ruleTester.run(RULE_NAME, rule, { errors: [ { line: 5, column: 11, messageId: 'noWaitForMultipleAssertion' }, ], - } as const) + }) as const ), { settings: { 'testing-library/utils-module': 'test-utils' }, diff --git a/tests/lib/rules/no-wait-for-side-effects.test.ts b/tests/lib/rules/no-wait-for-side-effects.test.ts index 869dfb2b..ba4392ed 100644 --- a/tests/lib/rules/no-wait-for-side-effects.test.ts +++ b/tests/lib/rules/no-wait-for-side-effects.test.ts @@ -554,7 +554,7 @@ ruleTester.run(RULE_NAME, rule, { await waitFor(() => fireEvent.keyDown(input, {key: 'ArrowDown'})) `, errors: [{ line: 3, column: 29, messageId: 'noSideEffectsWaitFor' }], - } as const) + }) as const ), { settings: { 'testing-library/utils-module': '~/test-utils' }, diff --git a/tests/lib/rules/no-wait-for-snapshot.test.ts b/tests/lib/rules/no-wait-for-snapshot.test.ts index 02eefece..03eff8f4 100644 --- a/tests/lib/rules/no-wait-for-snapshot.test.ts +++ b/tests/lib/rules/no-wait-for-snapshot.test.ts @@ -179,7 +179,7 @@ ruleTester.run(RULE_NAME, rule, { column: 36 + asyncUtil.length, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -200,7 +200,7 @@ ruleTester.run(RULE_NAME, rule, { column: 27, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -219,7 +219,7 @@ ruleTester.run(RULE_NAME, rule, { column: 47 + asyncUtil.length, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -240,7 +240,7 @@ ruleTester.run(RULE_NAME, rule, { column: 27, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -259,7 +259,7 @@ ruleTester.run(RULE_NAME, rule, { column: 36 + asyncUtil.length, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -280,7 +280,7 @@ ruleTester.run(RULE_NAME, rule, { column: 27, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -299,7 +299,7 @@ ruleTester.run(RULE_NAME, rule, { column: 47 + asyncUtil.length, }, ], - } as const) + }) as const ), ...ASYNC_UTILS.map( (asyncUtil) => @@ -320,7 +320,7 @@ ruleTester.run(RULE_NAME, rule, { column: 27, }, ], - } as const) + }) as const ), ]), }); diff --git a/tests/lib/rules/prefer-explicit-assert.test.ts b/tests/lib/rules/prefer-explicit-assert.test.ts index 952f770d..0c0e3a33 100644 --- a/tests/lib/rules/prefer-explicit-assert.test.ts +++ b/tests/lib/rules/prefer-explicit-assert.test.ts @@ -187,7 +187,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -199,7 +199,7 @@ ruleTester.run(RULE_NAME, rule, { data: { queryType: 'findBy*' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -211,7 +211,7 @@ ruleTester.run(RULE_NAME, rule, { data: { queryType: 'findBy*' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -227,7 +227,7 @@ ruleTester.run(RULE_NAME, rule, { data: { queryType: 'findBy*' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -243,7 +243,7 @@ ruleTester.run(RULE_NAME, rule, { data: { queryType: 'findBy*' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -262,7 +262,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -278,7 +278,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -308,7 +308,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -328,7 +328,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), { code: `getByIcon('foo')`, // custom `getBy` query extended through options @@ -353,7 +353,7 @@ ruleTester.run(RULE_NAME, rule, { data: { assertion: 'toBeInTheDocument' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -370,7 +370,7 @@ ruleTester.run(RULE_NAME, rule, { data: { assertion: 'toBeInTheDocument' }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -387,7 +387,7 @@ ruleTester.run(RULE_NAME, rule, { data: { assertion: 'toBeInTheDocument' }, }, ], - } as const) + }) as const ), ], }); diff --git a/tests/lib/rules/prefer-find-by.test.ts b/tests/lib/rules/prefer-find-by.test.ts index 22a2eb4e..3bf6bed7 100644 --- a/tests/lib/rules/prefer-find-by.test.ts +++ b/tests/lib/rules/prefer-find-by.test.ts @@ -28,7 +28,7 @@ function buildFindByMethod(queryMethod: string) { function createScenario< T extends | TSESLint.InvalidTestCase - | TSESLint.ValidTestCase<[]> + | TSESLint.ValidTestCase<[]>, >(callback: (waitMethod: string, queryMethod: string) => T) { return SYNC_QUERIES_COMBINATIONS.map((queryMethod) => callback('waitFor', queryMethod) diff --git a/tests/lib/rules/prefer-implicit-assert.test.ts b/tests/lib/rules/prefer-implicit-assert.test.ts index 973c45be..c73ac0c7 100644 --- a/tests/lib/rules/prefer-implicit-assert.test.ts +++ b/tests/lib/rules/prefer-implicit-assert.test.ts @@ -62,7 +62,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -78,7 +78,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -94,7 +94,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -110,7 +110,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -126,7 +126,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -142,7 +142,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -158,7 +158,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -174,7 +174,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -190,7 +190,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -206,7 +206,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -224,7 +224,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -242,7 +242,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -260,7 +260,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -278,7 +278,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -296,7 +296,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -312,7 +312,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -328,7 +328,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -344,7 +344,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -360,7 +360,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -376,7 +376,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -392,7 +392,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -408,7 +408,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -424,7 +424,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -440,7 +440,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -456,7 +456,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -474,7 +474,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -492,7 +492,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -510,7 +510,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -528,7 +528,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...COMBINED_QUERIES_METHODS.map( (queryMethod) => @@ -546,7 +546,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ], }); diff --git a/tests/lib/rules/prefer-screen-queries.test.ts b/tests/lib/rules/prefer-screen-queries.test.ts index 7c3b4a93..ab457c31 100644 --- a/tests/lib/rules/prefer-screen-queries.test.ts +++ b/tests/lib/rules/prefer-screen-queries.test.ts @@ -211,7 +211,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -231,7 +231,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( @@ -254,7 +254,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...SUPPORTED_TESTING_FRAMEWORKS.flatMap((testingFramework) => ALL_QUERIES_COMBINATIONS.map( @@ -275,7 +275,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ) ), ...ALL_QUERIES_COMBINATIONS.map( @@ -296,7 +296,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -310,7 +310,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -324,7 +324,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -338,7 +338,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -355,7 +355,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -372,7 +372,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -389,7 +389,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -406,7 +406,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...ALL_QUERIES_COMBINATIONS.map( (queryMethod) => @@ -423,7 +423,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...SUPPORTED_TESTING_FRAMEWORKS.flatMap((testingFramework) => [ { diff --git a/tests/lib/rules/prefer-user-event.test.ts b/tests/lib/rules/prefer-user-event.test.ts index 61892761..aae52d9b 100644 --- a/tests/lib/rules/prefer-user-event.test.ts +++ b/tests/lib/rules/prefer-user-event.test.ts @@ -13,7 +13,7 @@ import { createRuleTester } from '../test-utils'; function createScenarioWithImport< T extends | TSESLint.InvalidTestCase - | TSESLint.ValidTestCase + | TSESLint.ValidTestCase, >(callback: (libraryModule: string, fireEventMethod: string) => T) { return LIBRARY_MODULES.reduce( (acc: Array, libraryModule) => @@ -372,7 +372,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...Object.keys(MAPPING_TO_USER_EVENT).map( (fireEventMethod: string) => @@ -396,7 +396,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...Object.keys(MAPPING_TO_USER_EVENT).map( (fireEventMethod: string) => @@ -419,7 +419,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), ...Object.keys(MAPPING_TO_USER_EVENT).map( (fireEventMethod: string) => @@ -443,7 +443,7 @@ ruleTester.run(RULE_NAME, rule, { }, }, ], - } as const) + }) as const ), { code: ` // simple test to check error in detail diff --git a/tools/generate-configs/index.ts b/tools/generate-configs/index.ts index 157226dc..ac439674 100644 --- a/tools/generate-configs/index.ts +++ b/tools/generate-configs/index.ts @@ -11,7 +11,7 @@ import { LinterConfig, writeConfig } from './utils'; const RULE_NAME_PREFIX = 'testing-library/'; const getRecommendedRulesForTestingFramework = ( - framework: SupportedTestingFramework, + framework: SupportedTestingFramework ): Record => Object.entries(rules) .filter( @@ -20,7 +20,7 @@ const getRecommendedRulesForTestingFramework = ( { meta: { docs }, }, - ]) => Boolean(docs.recommendedConfig[framework]), + ]) => Boolean(docs.recommendedConfig[framework]) ) .reduce((allRules, [ruleName, { meta }]) => { const name = `${RULE_NAME_PREFIX}${ruleName}`; diff --git a/tools/generate-configs/utils.ts b/tools/generate-configs/utils.ts index c0ba493e..9e979151 100644 --- a/tools/generate-configs/utils.ts +++ b/tools/generate-configs/utils.ts @@ -22,7 +22,7 @@ const addAutoGeneratedComment = (code: string) => */ export const writeConfig = async ( config: LinterConfig, - configName: string, + configName: string ): Promise => { // note: we use `export =` because ESLint will import these configs via a commonjs import const code = `export = ${JSON.stringify(config)};`;