Skip to content

Commit

Permalink
feat: add TypeScript and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Nov 25, 2021
1 parent 1897c9a commit abc3483
Show file tree
Hide file tree
Showing 22 changed files with 21,929 additions and 3,203 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-var": "error"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ $RECYCLE.BIN/
*.lnk

# project exclusions
dist
downloads
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ matrix:
- "npm run cover"
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
script: npm run semantic-release
script:
- npm run build
- npm run semantic-release
allow_failures:
- node_js: "12"
env: COVERAGE=true
script:
- "npm run cover"
- bash <(curl -s https://codecov.io/bash)

before_script:
- npm prune
script:
- npm run lint
- npm t
- npm run build
branches:
except:
- /^v\d+\.\d+\.\d+$/
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

122 changes: 0 additions & 122 deletions lib/update.js

This file was deleted.

Loading

0 comments on commit abc3483

Please sign in to comment.