@@ -14,7 +14,7 @@ The following reusable workflows are available for consumption by downstream plu
1414| [ reusable-phpcs.yml] ( reusable-phpcs.yml ) | Run PHPCS coding standards | ` php-version ` |
1515| [ reusable-e2e.yml] ( reusable-e2e.yml ) | Run Playwright E2E tests | ` php-version ` |
1616| [ reusable-jest.yml] ( reusable-jest.yml ) | Run Jest unit tests | ` coverage ` |
17- | [ reusable-lint-js .yml] ( reusable-lint-js .yml ) | Run ESLint, Stylelint, Prettier, TSC | None |
17+ | [ reusable-js-lints .yml] ( reusable-js-lints .yml ) | Run ESLint, Stylelint, Prettier, TSC | None |
1818| [ reusable-build.yml] ( reusable-build.yml ) | Build plugin artifact | ` php-version ` , ` artifact-name ` , ` artifact-path ` |
1919| [ reusable-wp-playground-pr-preview.yml] ( reusable-wp-playground-pr-preview.yml ) | Post WP Playground preview | ` run-id ` , ` artifact-prefix ` , ` artifact-filename ` , ` artifacts-to-keep ` |
2020
@@ -92,11 +92,15 @@ Runs Jest unit tests for JavaScript.
9292- **Secrets:**
9393 - `CODECOV_TOKEN` (optional) : Token for uploading coverage to Codecov.
9494
95- # ## reusable-lint-js .yml
95+ # ## reusable-js-lints .yml
9696
9797Runs ESLint, Stylelint, Prettier, and TypeScript checks.
9898
99- - **Inputs:** None.
99+ - **Inputs:**
100+ - `eslint` (boolean, default : ` true` ): Run ESLint.
101+ - `stylelint` (boolean, default : ` true` ): Run Stylelint.
102+ - `prettier` (boolean, default : ` true` ): Run Prettier.
103+ - `tsc` (boolean, default : ` true` ): Run TypeScript
100104
101105# ## reusable-build.yml
102106
@@ -148,7 +152,10 @@ name: CI
148152on: [push, pull_request]
149153jobs:
150154 lint:
151- uses: AxeWP/plugin-infra/.github/workflows/reusable-lint-js.yml@main
155+ uses: AxeWP/plugin-infra/.github/workflows/reusable-js-lints.yml@main
156+ with:
157+ prettier: true
158+ tsc: false
152159 phpstan:
153160 uses: AxeWP/plugin-infra/.github/workflows/reusable-phpstan.yml@main
154161 with:
0 commit comments