Skip to content

Commit

Permalink
Fix typescript linting
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Jan 22, 2024
1 parent 8fdb7ff commit 761898b
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ module.exports = {
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: {
// Specify a parser for each lang.
ts: '@typescript-eslint/parser',
js: 'espree',
typescript: '@typescript-eslint/parser'
}
}
}
],
env: {
browser: true,
es2017: true,
Expand Down
205 changes: 202 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.27.6",
"@tailwindcss/typography": "^0.5.9",
"@typescript-eslint/parser": "^6.19.0",
"autoprefixer": "^10.4.15",
"daisyui": "^3.5.1",
"eslint": "^8.28.0",
Expand Down

0 comments on commit 761898b

Please sign in to comment.