webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
6.77k stars 159 forks source link

Plugin for WebdriverIO ("wdio" / wdio.conf.js)? #464

Closed JoshuaKGoldberg closed 8 months ago

JoshuaKGoldberg commented 9 months ago

Coming over from https://github.com/eslint/eslint/pull/18005#discussion_r1458067768: it'd be great to have a built-in plugin for WebdriverIO. It's a test framework that has a wdio.conf.js file & is used by ESLint.

I'd be happy to contribute this. I don't personally use wdio but it'd be a good motivator for me to contribute to Knip. 😄

webpro commented 9 months ago

Feel free to work on this! I think it should be quite similar to the Ava, Jest and Mocha plugins.

Looks like the main objectives are the same: getting the entry files right and translate things like framework: "mocha" to @wdio/mocha-framework.

webpro commented 8 months ago

Closing in favor of https://github.com/webpro/knip/issues/483