Skip to content

Commit

Permalink
Enable TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiokot committed Dec 1, 2023
1 parent 09f9abe commit bc68e94
Show file tree
Hide file tree
Showing 12 changed files with 552 additions and 50 deletions.
19 changes: 17 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
Expand All @@ -10,5 +16,14 @@ module.exports = {
browser: true,
es2017: true,
node: true
}
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
Loading

0 comments on commit bc68e94

Please sign in to comment.