# Update to bin/lint breaks linting flow for non-bundled plugins

**URL:** https://meta.discourse.org/t/update-to-bin-lint-breaks-linting-flow-for-non-bundled-plugins/402126
**Category:** Development
**Created:** [4 במאי,‏ 2026,‏ 9:56am UTC](https://meta.discourse.org/t/update-to-bin-lint-breaks-linting-flow-for-non-bundled-plugins/402126 "2026-05-04T09:56:56Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![klappradla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/klappradla/32/531604_2.png) [@klappradla](https://meta.discourse.org/u/klappradla)
#### Post date: [4 במאי,‏ 2026,‏ 9:56am UTC](https://meta.discourse.org/t/update-to-bin-lint-breaks-linting-flow-for-non-bundled-plugins/402126/1 "2026-05-04T09:56:56Z")

</div>

A recent change on Discourse `main` branch ([https://github.com/discourse/discourse/commit/e84d7c9f26ed](https://e84d7c9f26ed)) broke our way of linting the custom plugins we’re working on.

The PR/commit subject was

> DEV: Update `bin/lint` to work correctly for non-bundled plugins

So I’m wondering if we’re doing something entirely wrong with our linting workflow (cc @david).

## How I lint

The way I was using `bin/lint` was, to run it from Discourse root and point it to my plugin inside the plugin directory:

```bash
bin/lint --fix plugins/my-custom-plugin

```

That broken with the commit mentioned above. `pnpm` errors about being run in a plugin directory and then isn’t able to find the files any more. One example from the error output:

```bash
> pnpm was run inside a plugin directory. Re-executing with --ignore-workspace...
NoFilesFoundError: No files matching the pattern "plugins/zlb-community/assets/stylesheets/common/atoms/category-button.scss, plugins/zlb-community/assets/stylesheets/common/atoms/category-icon.scss, plugins/zlb-community/assets/stylesheets/common/atoms/icon-info.scss, plugins/zlb-community/assets/stylesheets/common/atoms/user-pill.scss, plugins/zlb-community/assets/stylesheets/common/base/grid.scss, plugins/zlb-community/assets/stylesheets/common/base/normalize.scss, plugins/zlb-community/assets/stylesheets/common/base/rich-text.scss, plugins/zlb-community/assets/stylesheets/common/base/stack.scss, plugins/zlb-community/assets/stylesheets/common/index.scss, plugins/zlb-community/assets/stylesheets/common/molecules/card.scss, plugins/zlb-community/assets/stylesheets/common/molecules/expander.scss, plugins/zlb-community/assets/stylesheets/common/molecules/header.scss, plugins/zlb-community/assets/stylesheets/common/molecules/user-pill-list.scss, plugins/zlb-community/assets/stylesheets/common/organisms/category-header.scss, plugins/zlb-community/assets/stylesheets/common/templates/lobby.scss, plugins/zlb-community/assets/stylesheets/community-sidebar.scss, plugins/zlb-community/assets/stylesheets/user_home.scss, plugins/zlb-community/assets/stylesheets/common/atoms/badge.scss" were found.
    at standalone (file:///Users/max/code/bitcrowd/zlb/discourse/plugins/zlb-community/node_modules/.pnpm/stylelint@17.5.0_typescript@5.9.3/node_modules/stylelint/lib/standalone.mjs:293:43)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

```

It worked perfectly fine before. How (unless I go back to the commit before the change…) I can only lint globally with `bin/lint` in root. But that obviously takes way longer.

Should this be done differently?

---

_[View the full topic](https://meta.discourse.org/t/update-to-bin-lint-breaks-linting-flow-for-non-bundled-plugins/402126)._
