0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-21 19:38:58 +01:00

chore: linting and formatting on a per-package basis (#11834)

This commit is contained in:
Ben McCann 2024-05-30 06:37:17 -07:00 committed by GitHub
parent 82a645f8d0
commit 9a86e3b5e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 49 additions and 49 deletions

View File

@ -1,46 +1,3 @@
packages/**/dist/*.js
packages/**/build/*.js
packages/**/npm/**/*
packages/**/config/*.js
packages/svelte/messages/**/*.md
packages/svelte/src/compiler/errors.js
packages/svelte/src/compiler/warnings.js
packages/svelte/src/internal/client/errors.js
packages/svelte/src/internal/client/warnings.js
packages/svelte/src/internal/shared/errors.js
packages/svelte/src/internal/shared/warnings.js
packages/svelte/src/internal/server/errors.js
packages/svelte/tests/**/*.svelte
packages/svelte/tests/**/_expected*
packages/svelte/tests/**/_actual*
packages/svelte/tests/**/expected*
packages/svelte/tests/**/_output
packages/svelte/tests/**/shards/*.test.js
packages/svelte/tests/hydration/samples/*/_expected.html
packages/svelte/tests/hydration/samples/*/_override.html
packages/svelte/types
packages/svelte/compiler/index.js
playgrounds/demo/src
playgrounds/sandbox/input/**.svelte
playgrounds/sandbox/output
sites/svelte.dev/static/svelte-app.json
sites/svelte.dev/scripts/svelte-app/
sites/svelte.dev/src/routes/_components/Supporters/contributors.jpg
sites/svelte.dev/src/routes/_components/Supporters/contributors.js
sites/svelte.dev/src/routes/_components/Supporters/donors.jpg
sites/svelte.dev/src/routes/_components/Supporters/donors.js
sites/svelte.dev/src/lib/generated
**/node_modules
**/.svelte-kit
**/.vercel
.github/CODEOWNERS
.prettierignore
.changeset
pnpm-lock.yaml
pnpm-workspace.yaml
# Temporarily ignore this file to avoid merge conflicts.
# see: https://github.com/sveltejs/svelte/pull/9609
documentation/docs/05-misc/03-typescript.md

View File

@ -17,8 +17,8 @@
"build:sites": "pnpm -r --filter=./sites/* build",
"preview-site": "npm run build --prefix sites/svelte-5-preview",
"check": "cd packages/svelte && pnpm build && cd ../../ && pnpm -r check",
"format": "prettier --write .",
"lint": "prettier --check . && eslint",
"lint": "pnpm -r lint && prettier --check documentation",
"format": "pnpm -r format && prettier --check --write documentation",
"test": "vitest run",
"test-output": "vitest run --coverage --reporter=json --outputFile=sites/svelte-5-preview/src/routes/status/results.json",
"changeset:version": "changeset version && pnpm -r generate:version && git add --all",

View File

@ -0,0 +1,22 @@
dist/*.js
build/*.js
npm/**/*
config/*.js
messages/**/*.md
src/compiler/errors.js
src/compiler/warnings.js
src/internal/client/errors.js
src/internal/client/warnings.js
src/internal/shared/errors.js
src/internal/shared/warnings.js
src/internal/server/errors.js
tests/**/*.svelte
tests/**/_expected*
tests/**/_actual*
tests/**/expected*
tests/**/_output
tests/**/shards/*.test.js
tests/hydration/samples/*/_expected.html
tests/hydration/samples/*/_override.html
types
compiler/index.js

View File

@ -106,6 +106,8 @@
"generate:version": "node ./scripts/generate-version.js",
"generate:types": "node ./scripts/generate-types.js && tsc -p tsconfig.generated.json",
"prepublishOnly": "pnpm build",
"format": "prettier --check --write .",
"lint": "prettier --check . && eslint",
"knip": "knip"
},
"devDependencies": {

View File

@ -0,0 +1 @@
src

View File

@ -9,7 +9,9 @@
"ssr": "node ./server.js",
"build": "vite build --outDir dist/client && vite build --outDir dist/server --ssr src/entry-server.ts",
"prod": "npm run build && node dist",
"preview": "vite preview"
"preview": "vite preview",
"format": "prettier --check --write .",
"lint": "prettier --check . && eslint"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0",

View File

@ -0,0 +1,2 @@
input/**.svelte
output

View File

@ -4,6 +4,10 @@
"type": "module",
"license": "MIT",
"version": "0.0.1",
"scripts": {
"format": "prettier --check --write .",
"lint": "prettier --check . && eslint"
},
"dependencies": {
"@types/minimist": "^1.2.5",
"minimist": "^1.2.8",

View File

@ -9,7 +9,9 @@
"build": "vite build",
"preview": "vite preview",
"check-disable-tmp": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"format": "prettier --check --write .",
"lint": "prettier --check ."
},
"devDependencies": {
"@fontsource/fira-mono": "^5.0.8",

View File

@ -0,0 +1,7 @@
static/svelte-app.json
scripts/svelte-app/
src/routes/_components/Supporters/contributors.jpg
src/routes/_components/Supporters/contributors.js
src/routes/_components/Supporters/donors.jpg
src/routes/_components/Supporters/donors.js
src/lib/generated

View File

@ -13,8 +13,9 @@
"start": "node build",
"check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check",
"check:watch": "svelte-kit sync && svelte-check --watch",
"format": "prettier --check . --write",
"check:format": "prettier --check ."
"check:format": "prettier --check .",
"format": "prettier --check --write .",
"lint": "prettier --check ."
},
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15",