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:
parent
82a645f8d0
commit
9a86e3b5e6
@ -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
|
||||
|
@ -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",
|
||||
|
22
packages/svelte/.prettierignore
Normal file
22
packages/svelte/.prettierignore
Normal 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
|
@ -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": {
|
||||
|
1
playgrounds/demo/.prettierignore
Normal file
1
playgrounds/demo/.prettierignore
Normal file
@ -0,0 +1 @@
|
||||
src
|
@ -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",
|
||||
|
2
playgrounds/sandbox/.prettierignore
Normal file
2
playgrounds/sandbox/.prettierignore
Normal file
@ -0,0 +1,2 @@
|
||||
input/**.svelte
|
||||
output
|
@ -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",
|
||||
|
@ -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",
|
||||
|
7
sites/svelte.dev/.prettierignore
Normal file
7
sites/svelte.dev/.prettierignore
Normal 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
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user