0
Fork 0
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:
Tony Sullivan 2022-06-22 15:59:49 +00:00 committed by GitHub
parent 79b9d783cb
commit fedcc3cb06

View file

@ -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' });
}