Skip to content

Commit

Permalink
refactor: switch to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
abumalick committed Apr 19, 2022
1 parent 44d974c commit 127a67a
Show file tree
Hide file tree
Showing 28 changed files with 885 additions and 250 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],

extends: [
'eslint:recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],

env: {
Expand All @@ -18,6 +18,7 @@ module.exports = {
},

rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
complexity: ['warn', 10],
'max-lines': ['warn', 300],
'max-params': ['warn', 5],
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
collectCoverage: true,

// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',

// An array of file extensions your modules use
Expand Down
Loading

0 comments on commit 127a67a

Please sign in to comment.