mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
chore: reduce severity
This commit is contained in:
parent
8d0ab54b0a
commit
d15d1831e1
4 changed files with 5 additions and 2 deletions
|
@ -34,8 +34,8 @@
|
|||
"test:e2e:match": "cd packages/astro && pnpm playwright install chromium firefox && pnpm run test:e2e:match",
|
||||
"test:e2e:hosts": "turbo run test:hosted",
|
||||
"benchmark": "astro-benchmark",
|
||||
"lint": "biome lint && eslint . --report-unused-disable-directives",
|
||||
"lint:ci": "biome ci --formatter-enabled=false --organize-imports-enabled=false --reporter=github && eslint . --report-unused-disable-directives",
|
||||
"lint": "biome lint && eslint . --report-unused-disable-directives-severity=warn",
|
||||
"lint:ci": "biome ci --formatter-enabled=false --organize-imports-enabled=false --reporter=github && eslint . --report-unused-disable-directives-severity=warn",
|
||||
"lint:fix": "biome lint --write --unsafe",
|
||||
"publint": "pnpm -r --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --no-bail exec publint",
|
||||
"version": "changeset version && node ./scripts/deps/update-example-versions.js && pnpm install --no-frozen-lockfile && pnpm run format",
|
||||
|
|
|
@ -9,6 +9,7 @@ const getPlatformSpecificCommand = (): [string] | [string, string[]] => {
|
|||
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
|
||||
const platform = isGitPod ? 'gitpod' : process.platform;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||
switch (platform) {
|
||||
case 'android':
|
||||
case 'linux':
|
||||
|
|
|
@ -143,6 +143,7 @@ function getGlobalPreferenceDir() {
|
|||
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
||||
return path.join(XDG_CONFIG_HOME, name);
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||
switch (process.platform) {
|
||||
case 'darwin':
|
||||
return macos();
|
||||
|
|
|
@ -21,6 +21,7 @@ function getConfigDir(name: string) {
|
|||
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
|
||||
return path.join(XDG_CONFIG_HOME, name);
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
||||
switch (process.platform) {
|
||||
case 'darwin':
|
||||
return macos();
|
||||
|
|
Loading…
Add table
Reference in a new issue