Skip to content

v1.11.0

Choose a tag to compare

@stevensacks stevensacks released this 21 Jul 16:16
· 40 commits to main since this release
8c6f945

Minor Changes

  • #40 1ed4f1b Thanks @stevensacks! - Stop ignoring .playwright and .storybook by default, so the playwright and storybook blocks actually run.

    Both directories were bare entries in the ignores defaults. A config object carrying only ignores is a GLOBAL ignore in flat config, and a global ignore beats any later block's files, so the two blocks that scope themselves to those directories were shadowed by the defaults they shipped alongside. playwright scopes itself to .playwright/**/*.ts?(x) and never matched a file; storybook kept its *.stories.* rules (those live outside the directory) but its .storybook/main.* rules never ran. The composed config read as though the directories were covered, and pnpm lint reported zero problems for code nothing had checked.

    The defaults now name only generated output, non-source assets, and tool-owned script directories. A new ignores suite asks ESLint which paths survive the defaults, so a future directory-level entry that shadows a scoped block fails a test instead of shipping.

    playwright/no-skipped-test now runs with allowConditional: true. A bare test.skip() is a test switched off at author time and stays flagged; test.skip(condition, reason) is Playwright's own API for a test that does not apply to the environment it just found, and flagging it would fail lint on the conditional-skip pattern the recommended set never got to see while the block was inert.

    Consumers will see new lint errors on upgrade, in e2e specs and their helpers, in Storybook config and decorators, and in anything else living under those two directories. Most are auto-fixable with --fix. Real findings surface too: playwright/expect-expect and playwright/no-conditional-in-test have been configured but inert. To keep a directory exempt, pass it back explicitly:

    ...lint.ignores({extra: ['.playwright', '.storybook']}),