Skip to content

Commit

Permalink
fix: apply @aduth's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Mar 20, 2023
1 parent db80714 commit b530fe2
Show file tree
Hide file tree
Showing 13 changed files with 334 additions and 160 deletions.
13 changes: 8 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"presets": [
[ "@babel/env", {
"modules": false
} ],
"@babel/preset-typescript"
"@babel/preset-typescript",
[
"@babel/env",
{
"modules": false
}
]
],
"env": {
"test": {
"presets": [ "@babel/env" ]
"presets": ["@babel/preset-typescript", "@babel/env"]
}
}
}
14 changes: 3 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
{
"root": true,
"extends": ["eslint:recommended", "prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": ["./tsconfig.json", "./tsconfig.eslint.json"]
},
"extends": "@aduth/eslint-config",
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"prettier/prettier": "error"
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error"
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/es/*
!/es/index.d.ts
node_modules/
*.log
dist/
3 changes: 3 additions & 0 deletions mocha-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import register from '@babel/register';

register({ extensions: ['.ts'] });
190 changes: 142 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b530fe2

Please sign in to comment.