Skip to content

Commit

Permalink
switch over to typescript (#1)
Browse files Browse the repository at this point in the history
* switch over to typescript
  • Loading branch information
mrgeorgegray authored Feb 21, 2021
1 parent 8cbb8f1 commit e27636a
Show file tree
Hide file tree
Showing 35 changed files with 1,204 additions and 207 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode
.cache
lib
22 changes: 17 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@
"env": {
"node": true,
"commonjs": true,
"es6": true,
"mocha": true
"es6": true
},
"plugins": ["prettier"],
"extends": ["plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019
"ecmaVersion": 2019,
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"jest",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"prettier/prettier": "error"
}
Expand Down
21 changes: 0 additions & 21 deletions index.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"testMatch": [
"<rootDir>/tests/**/*(*.)@(spec|test).{ts,tsx}"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
}
}
Loading

0 comments on commit e27636a

Please sign in to comment.