Skip to content

Commit

Permalink
Merge pull request #6 from xiCO2k/upgrade-to-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k authored Sep 18, 2021
2 parents eab5cea + 39ddd99 commit d73de33
Show file tree
Hide file tree
Showing 13 changed files with 3,852 additions and 5,373 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions .bithoundrc

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

37 changes: 37 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
es6: true,
mocha: true,
},
globals: {
expect: true,
},
rules: {
'func-names': ['error', 'never'],
'space-before-function-paren': ['error', 'never'],
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'arrow-parens': 0,
'dot-notation': 0,
'operator-linebreak': 0,
'no-nested-ternary': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'@typescript-eslint/type-annotation-spacing': ['error', { before: false, after: false }],
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: { delimiter: 'comma' },
}],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
},
};
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
Loading

0 comments on commit d73de33

Please sign in to comment.