Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sveltekit): update sveltekit eslint tooling #10748

Merged
merged 11 commits into from May 1, 2024
35 changes: 14 additions & 21 deletions package.json
Expand Up @@ -47,11 +47,12 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-svelte": "^2.38.0",
"fake-smtp-server": "^0.8.0",
"prettier": "3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"svelte-eslint-parser": "^0.35.0",
"turbo": "^1.11.3",
"typescript": "5.3.3",
"utils": "workspace:*",
Expand Down Expand Up @@ -93,8 +94,6 @@
".next",
".nuxt",
"build",
"docs/docs/reference/core",
"docs/docs/reference/sveltekit",
"static",
"coverage",
"dist",
Expand All @@ -110,7 +109,6 @@
"firestore-debug.log",
"migrations",
"test.schema.gql",
"apps/example-sveltekit",
"apps",
"packages/**/*test*"
],
Expand Down Expand Up @@ -192,20 +190,27 @@
"files": [
"packages/frameworks-sveltekit"
],
"plugins": [
"svelte3"
"extends": [
"plugin:svelte/recommended"
],
"overrides": [
{
"files": [
"*.svelte"
],
"processor": "svelte3/svelte3"
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
"ecmaVersion": 2020,
"extraFileExtensions": [
".svelte"
]
},
"env": {
"browser": true,
Expand All @@ -226,19 +231,7 @@
"prettier": {
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"overrides": [
{
"files": [
"apps/dev/nextjs/app/api/auth/[...nextauth]/route.ts",
"packages/next-auth/src/lib/env.ts",
"apps/examples/nextjs/auth.ts"
],
"options": {
"printWidth": 150
}
}
]
"trailingComma": "es5"
},
"pnpm": {
"overrides": {
Expand Down
24 changes: 0 additions & 24 deletions packages/frameworks-sveltekit/.eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion packages/frameworks-sveltekit/package.json
Expand Up @@ -27,7 +27,7 @@
"build": "pnpm clean && pnpm providers && pnpm check && svelte-package",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"clean": "rm -rf client.* index.* package src/lib/providers",
"clean": "rm -rf dist src/lib/providers",
"dev": "pnpm providers && svelte-package -w",
"preview": "vite preview",
"providers": "node ../utils/scripts/providers.js --out src/lib",
Expand Down