Skip to content

Commit 9878990

Browse files
committed
style: Fix lint
Signed-off-by: Richie Bendall <[email protected]>
1 parent fabd8d2 commit 9878990

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.travis.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
language: node_js
22

3-
node_js: lts/*
4-
53
cache:
64
- npm
75
- yarn
86

9-
before_install: npm i -g yarn
10-
11-
install: yarn install --non-interactive
7+
node_js:
8+
- "lts/*"
9+
- "node"
1210

13-
script:
14-
- yarn lint
15-
- yarn test
11+
after_success:
1612
- yarn build
17-
- if [ -n "$TRAVIS_TAG" ]; then npm version $TRAVIS_TAG; fi
13+
- if [ -n "$TRAVIS_TAG" ]; then yarn version $TRAVIS_TAG; fi
1814

1915
deploy:
2016
- provider: npm
@@ -28,8 +24,8 @@ deploy:
2824
skip_cleanup: true
2925
github_commit: "chore: Published documentation [skip ci]"
3026
github_token: $github_token
31-
name: "ROS Bot"
32-
27+
committer_from_gh: true
28+
keep_history: true
3329
local_dir: docs
3430
on:
3531
tags: true

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
"author": "Richie Bendall <[email protected]>",
1919
"license": "MIT",
2020
"scripts": {
21-
"dev": "yarn js --watch",
22-
"build": "yarn js && yarn docs",
23-
"js": "tsc",
2421
"docs": "typedoc",
22+
"build": "tsc && yarn docs",
23+
"dev": "yarn build --watch",
2524
"lint": "xo",
26-
"test": "ava"
25+
"test": "yarn lint && ava"
2726
},
2827
"dependencies": {
2928
"cheerio": "^1.0.0-rc.3",

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import test from "ava"
22
import { Headers } from "node-fetch"
3-
import convertBody from "./src"
43
import { encode } from "iconv-lite"
54
import _ from "lodash"
5+
import convertBody from "./src"
66

77
test("should support encoding decode, xml dtd detect", (t) => {
88
const text = "<?xml version=\"1.0\" encoding=\"EUC-JP\"?><title>日本語</title>"

0 commit comments

Comments
 (0)