Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to TypeScript #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 26 additions & 6 deletions package.json
Expand Up @@ -11,10 +11,10 @@
"dist"
],
"scripts": {
"test": "npm run lint && jest",
"test": "npm run build && npm run lint && jest",
"prepublishOnly": "npm run build",
"lint": "xo",
"build": "bili"
"build": "bili src/index.ts"
},
"author": "egoist <0x142857@gmail.com>",
"license": "MIT",
Expand All @@ -27,16 +27,25 @@
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@types/fs-extra": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^22.4.3",
"bili": "^3.3.0",
"buble": "^0.15.2",
"eslint-config-rem": "^3.0.0",
"eslint-config-xo-typescript": "^0.15.0",
"jest-cli": "^22.4.3",
"xo": "^0.18.0"
"rollup-plugin-typescript2": "^0.21.2",
"typescript": "^3.5.2",
"xo": "^0.24.0"
},
"xo": {
"extends": "rem",
"extends": [
"rem",
"xo-typescript"
],
"envs": [
"jest"
],
Expand All @@ -46,8 +55,19 @@
"examples/**"
],
"rules": {
"guard-for-in": 0
}
"guard-for-in": 0,
"@typescript-eslint/member-naming": 0,
"@typescript-eslint/promise-function-async": 0,
"@typescript-eslint/require-array-sort-compare": 0,
"indent": "off",
"@typescript-eslint/indent": [
"error",
2
]
},
"extensions": [
"ts"
]
},
"dependencies": {
"fast-glob": "^2.2.3",
Expand Down
216 changes: 0 additions & 216 deletions src/index.js

This file was deleted.