Skip to content

Commit acae402

Browse files
author
Phil Varner
authored
Merge pull request #348 from stac-utils/pv/enable-typescript-take-two
Enable typescript support
2 parents a54a9cc + 8592546 commit acae402

File tree

13 files changed

+1256
-1766
lines changed

13 files changed

+1256
-1766
lines changed

.eslintrc.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"root": true,
3-
"extends": "airbnb",
3+
"extends": [
4+
"airbnb",
5+
"plugin:@typescript-eslint/recommended"
6+
],
7+
"parser": "@typescript-eslint/parser",
48
"plugins": [
5-
"eslint-plugin-jsdoc"
9+
"eslint-plugin-jsdoc",
10+
"@typescript-eslint"
611
],
712
"env": {
813
"node": true,
@@ -14,6 +19,7 @@
1419
}
1520
},
1621
"rules": {
22+
"@typescript-eslint/ban-ts-comment": "off",
1723
"dot-notation": "off",
1824
"implicit-arrow-linebreak": "off",
1925
"no-restricted-syntax": [
@@ -143,6 +149,14 @@
143149
}
144150
]
145151
}
152+
},
153+
{
154+
"files": [
155+
"*.js"
156+
],
157+
"rules": {
158+
"@typescript-eslint/no-var-requires": 0
159+
}
146160
}
147161
]
148162
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ _book
1616
.serverless-offline
1717
serverless*.yml
1818
!serverless.example.yml
19+
tsconfig.tsbuildinfo

0 commit comments

Comments
 (0)