Skip to content

Commit 0d2e310

Browse files
committed
Fix Niek#36 - added ESlint config with ts-standard + svelte support
1 parent eef03cd commit 0d2e310

12 files changed

+2964
-328
lines changed

.eslintrc.cjs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
extends: 'standard-with-typescript',
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: { // add these parser options
5+
project: ['./tsconfig.json']
6+
},
7+
plugins: [
8+
'svelte3',
9+
'@typescript-eslint'
10+
],
11+
overrides: [
12+
{
13+
files: [
14+
'**/*.svelte'
15+
],
16+
processor: 'svelte3/svelte3'
17+
}
18+
],
19+
settings: {
20+
'svelte3/typescript': true
21+
},
22+
ignorePatterns: ['node_modules/*', 'dist/*', 'vite-env.d.ts']
23+
}

0 commit comments

Comments
 (0)