Skip to content

Commit 3933a43

Browse files
committed
Add standard-with-typescript linting
1 parent 8309c9a commit 3933a43

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
module.exports = {
22
parserOptions: {
33
ecmaVersion: 2018,
4-
sourceType: 'module'
4+
sourceType: 'module',
5+
project: './tsconfig.json'
56
},
67
env: {
78
es6: true,
89
browser: true,
910
node: true
1011
},
1112
extends: [
12-
'standard'
13+
'standard-with-typescript'
1314
],
1415
plugins: [
1516
'svelte3',

tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"strictNullChecks": true
4+
},
5+
"files": [
6+
"src/index.d.ts"
7+
]
8+
}

0 commit comments

Comments
 (0)