Skip to content

Commit 9d5fea2

Browse files
authored
feat: Add typescript to codebase (#91)
* feature: add update query support * chore(deps): add ldflex as a dev dependency * chore: add typescript definitions * chore: update configurations for typescript * chore: add line break to .gitignore * chore: remove Update-test.js * chore: update to reflect changes in update branch * chore: add jsdoc to IEngineSettings * chore: run lint:fix * chore: rename `IEngineSettings` -> `EngineSettings` * Make private parameters @depricated for js consumers
1 parent 2234b2e commit 9d5fea2

15 files changed

+488
-96
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
ecmaVersion: 2018,
1111
sourceType: module
1212
},
13+
parser: '@typescript-eslint/parser',
14+
plugins: [
15+
'@typescript-eslint/eslint-plugin'
16+
],
1317
rules: {
1418
// Best Practices
1519
accessor-pairs: error,

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
coverage
2+
dist
23
lib
34
node_modules
5+
**.js
6+
**.d.ts

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
2+
preset: 'ts-jest',
23
clearMocks: true,
34
collectCoverage: true,
45
testMatch: [
5-
"<rootDir>/test/**/*-test.js",
6+
"<rootDir>/test/**/*-test.ts",
67
],
78
};

0 commit comments

Comments
 (0)