mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
ci(client): lint:format covers the Playwright specs and the client scripts
The check only looked at src/ and tests/, so a new spec under e2e/ or a new script under scripts/ could land unformatted, and the ratchet scripts themselves did (fixed in the previous commit). It now walks e2e/ and scripts/ too and takes .mjs alongside .ts, .tsx and .css. The 58 files there that were unformatted before this branch (the e2e specs and help guides, the older build and lint scripts) join the baseline, which keeps only shrinking; JSON baselines stay out of scope.
This commit is contained in:
@@ -16,9 +16,10 @@ import {
|
||||
writeBaseline,
|
||||
} from './ratchet.mjs';
|
||||
|
||||
export const DIRS = ['src', 'tests'];
|
||||
/** The app, its tests, the Playwright specs and the client's own tooling. */
|
||||
export const DIRS = ['src', 'tests', 'e2e', 'scripts'];
|
||||
|
||||
export const accepts = (key) => /\.(?:tsx?|css)$/.test(key);
|
||||
export const accepts = (key) => /\.(?:tsx?|mjs|css)$/.test(key);
|
||||
|
||||
/**
|
||||
* Whether Prettier leaves the file as it is, with the config that applies to
|
||||
|
||||
Reference in New Issue
Block a user