Skip to content

Commit

Permalink
Use TypeScript for IntelliSense
Browse files Browse the repository at this point in the history
  • Loading branch information
leoj3n committed Mar 14, 2024
1 parent d5e2ce9 commit 2c06682
Show file tree
Hide file tree
Showing 13 changed files with 505 additions and 83 deletions.
19 changes: 18 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
Expand All @@ -11,5 +19,14 @@ module.exports = {
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
rules: { 'no-tabs': 'error', 'no-unexpected-multiline': 'error' }
}
Loading

0 comments on commit 2c06682

Please sign in to comment.