Skip to content

Commit

Permalink
Convert to typescript (#9)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: raise required minimum node to v8
  • Loading branch information
plasticrake authored May 15, 2020
1 parent 079315a commit c8723a5
Show file tree
Hide file tree
Showing 13 changed files with 415 additions and 245 deletions.
18 changes: 14 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2015,
project: ['./tsconfig.json', './tsconfig.eslint.json'],
},
plugins: ['@typescript-eslint'],
env: {
browser: false,
commonjs: true,
node: true,
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2015,
},
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
reportUnusedDisableDirectives: true,
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
lib

# Logs
logs
*.log
Expand All @@ -13,6 +15,8 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
coverage.lcov
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extension": ["ts"],
"recursive": true,
"require": ["ts-node/register", "source-map-support/register"]
}
3 changes: 2 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"temp-dir": "./coverage/.nyc_output"
"extends": "@istanbuljs/nyc-config-typescript",
"all": true
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
75 changes: 0 additions & 75 deletions lib/index.js

This file was deleted.

Loading

0 comments on commit c8723a5

Please sign in to comment.