mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
Enables eslint on the full repo and adds a rule for no only()
tests (#3659)
* enabling eslint on the all packages and tests * enabling for all packages * TEMP: adding an only() test to verify it fails CI * using our eslint config and ignore in CI * removing the temporary .only() test * update lock file * lint: fixing new test with a no-shadow warning * chore: update lock file
This commit is contained in:
parent
79b9d783cb
commit
fedcc3cb06
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import type { PathLike } from 'node:fs';
|
||||
import * as fs from 'node:fs/promises';
|
||||
|
||||
export async function writeJson<T extends any>(path: PathLike, data: T) {
|
||||
export async function writeJson<T>(path: PathLike, data: T) {
|
||||
await fs.writeFile(path, JSON.stringify(data), { encoding: 'utf-8' });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue