Skip to content

Commit

Permalink
chore(sveltekit): update sveltekit eslint tooling (#10748)
Browse files Browse the repository at this point in the history
Co-authored-by: Thang Vu <hi@thvu.dev>
  • Loading branch information
ndom91 and ThangHuuVu committed May 1, 2024
1 parent e6f90b2 commit d923192
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 71 deletions.
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

0 comments on commit d923192

Please sign in to comment.