Skip to content

Commit d73de33

Browse files
authored
Merge pull request #6 from xiCO2k/upgrade-to-typescript
2 parents eab5cea + 39ddd99 commit d73de33

13 files changed

+3852
-5373
lines changed

.babelrc

-4
This file was deleted.

.bithoundrc

-9
This file was deleted.

.eslintrc

-19
This file was deleted.

.eslintrc.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
ecmaVersion: 2018,
5+
sourceType: 'module',
6+
},
7+
extends: [
8+
'airbnb-base',
9+
'plugin:@typescript-eslint/recommended',
10+
],
11+
env: {
12+
node: true,
13+
es6: true,
14+
mocha: true,
15+
},
16+
globals: {
17+
expect: true,
18+
},
19+
rules: {
20+
'func-names': ['error', 'never'],
21+
'space-before-function-paren': ['error', 'never'],
22+
'no-underscore-dangle': 0,
23+
'no-param-reassign': 0,
24+
'arrow-parens': 0,
25+
'dot-notation': 0,
26+
'operator-linebreak': 0,
27+
'no-nested-ternary': 0,
28+
'import/no-unresolved': 0,
29+
'import/extensions': 0,
30+
'@typescript-eslint/type-annotation-spacing': ['error', { before: false, after: false }],
31+
'@typescript-eslint/member-delimiter-style': ['error', {
32+
multiline: { delimiter: 'comma' },
33+
}],
34+
'@typescript-eslint/no-explicit-any': 0,
35+
'@typescript-eslint/explicit-function-return-type': 0,
36+
},
37+
};

babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
'@babel/preset-typescript',
5+
],
6+
};

0 commit comments

Comments
 (0)