Skip to content

Commit

Permalink
Migrate to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
darlal committed Jan 1, 2021
1 parent 2cfff85 commit 4901e65
Show file tree
Hide file tree
Showing 25 changed files with 1,358 additions and 2,031 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
env: {
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint', // needs to be last in the list
],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
},
};
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 90,
tabWidth: 2,
};
Loading

0 comments on commit 4901e65

Please sign in to comment.