Skip to content

Commit

Permalink
chore: update eslint to v9, related deps, config
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Jan 15, 2025
1 parent 614b641 commit a99ef94
Show file tree
Hide file tree
Showing 5 changed files with 379 additions and 306 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

35 changes: 0 additions & 35 deletions .eslintrc.cjs

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js';
import eslintPluginSvelte from 'eslint-plugin-svelte';
import * as svelteParser from 'svelte-eslint-parser';
import * as typescriptParser from '@typescript-eslint/parser';

export default [
js.configs.recommended,
...eslintPluginSvelte.configs.recommended,
{
files: ['**/*.svelte'],
languageOptions: {
parser: svelteParser,
parserOptions: {
parser: typescriptParser,
project: './tsconfig.json',
extraFileExtensions: ['.svelte']
}
}
},
{
ignores: ['.netlify', '.svelte-kit', 'static', 'build']
}
];
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"format": "prettier --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss --write ."
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@resvg/resvg-js": "^2.6.2",
"@sveltejs/adapter-netlify": "^4.4.0",
"@sveltejs/kit": "^2.15.2",
Expand All @@ -27,21 +29,22 @@
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"autoprefixer": "^10.4.20",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.39.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-svelte": "3.0.0-next.14",
"postcss": "^8.5.1",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.9",
"satori": "^0.10.13",
"satori-html": "^0.3.2",
"svelte": "^4.2.17",
"svelte": "^5.18.0",
"svelte-check": "^3.7.1",
"svelte-preprocess": "^5.1.4",
"tailwindcss": "^3.4.17",
"tslib": "^2.8.1",
"typescript": "5.7.3",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0",
"vite": "^5.2.11"
},
"type": "module",
Expand Down
Loading

0 comments on commit a99ef94

Please sign in to comment.