mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
style(client): format the ratchet scripts with Prettier
The checker scripts were written without semicolons, against the semi: true in .prettierrc, so every one of them failed the formatting rule lint:format enforces on src/ and tests/. This is prettier --write over the scripts this branch added or rewrote, nothing else.
This commit is contained in:
@@ -18,9 +18,11 @@
|
||||
* To format a file: npx prettier --write <file>. The comparison lives in
|
||||
* scripts/lib/format.mjs.
|
||||
*/
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { check } from './lib/format.mjs'
|
||||
import { runCli } from './lib/ratchet.mjs'
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { check } from './lib/format.mjs';
|
||||
import { runCli } from './lib/ratchet.mjs';
|
||||
|
||||
const root = fileURLToPath(new URL('..', import.meta.url))
|
||||
await runCli('lint:format', (args) => check({ root, update: args.includes('--update'), list: args.includes('--list') }))
|
||||
const root = fileURLToPath(new URL('..', import.meta.url));
|
||||
await runCli('lint:format', (args) =>
|
||||
check({ root, update: args.includes('--update'), list: args.includes('--list') })
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user