Skip to content

Commit

Permalink
Update linting packages in server and client projects
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed Sep 13, 2018
1 parent 0b5df4a commit 2bc122c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/bin/smee.js
Expand Up @@ -20,7 +20,7 @@ async function setup () {
source = await Client.createChannel()
}

const client = new Client({source, target})
const client = new Client({ source, target })
client.start()
}

Expand Down
2 changes: 1 addition & 1 deletion client/index.js
Expand Up @@ -3,7 +3,7 @@ const EventSource = require('eventsource')
const superagent = require('superagent')

class Client {
constructor ({source, target, logger = console}) {
constructor ({ source, target, logger = console }) {
this.source = source
this.target = target
this.logger = logger
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Expand Up @@ -29,7 +29,7 @@
"devDependencies": {
"jest": "^23.1.0",
"nock": "^9.3.3",
"standard": "^11.0.1",
"standard": "^12.0.1",
"supertest": "^3.1.0"
},
"standard": {
Expand Down
2 changes: 1 addition & 1 deletion client/test/index.test.js
Expand Up @@ -53,7 +53,7 @@ describe('client', () => {
})

test('POST /:channel forwards to target url', async (done) => {
const payload = {payload: true}
const payload = { payload: true }

// Expect request to target
const forward = nock('http://example.com').post('/foo/bar', payload).reply(200)
Expand Down
10 changes: 5 additions & 5 deletions server/package.json
Expand Up @@ -9,7 +9,7 @@
"start": "node ./index.js",
"start-dev": "concurrently \"nodemon --ignore src/ ./index.js\" \"webpack -w\"",
"build": "webpack -p",
"test": "jest --coverage && eslint **/*.js",
"test": "jest --coverage && eslint '**/*.js'",
"test:update": "jest -u",
"postinstall": "npm run build"
},
Expand Down Expand Up @@ -58,18 +58,18 @@
"concurrently": "^3.5.0",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint-config-standard": "^10.2.1",
"eslint-config-standard-react": "^5.0.0",
"eslint": "^5.5.0",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard-react": "^7.0.2",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.5.1",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest": "^21.2.1",
"nodemon": "^1.12.1",
"raf": "^3.4.0",
"react-test-renderer": "^16.2.0",
"standard": "^10.0.3",
"supertest": "^3.0.0"
},
"engines": {
Expand Down
8 changes: 4 additions & 4 deletions server/src/components/App.js
Expand Up @@ -134,10 +134,10 @@ export default class App extends Component {
<h1 className="f4">Webhook Deliveries</h1>
<div className="flex-items-right tooltipped tooltipped-w" aria-label={stateString + ' to event stream'}>
{this.state.connection
? <PulseIcon
style={{fill: '#6cc644'}} />
: <AlertIcon
style={{fill: 'yellow'}} />
? <PulseIcon
style={{ fill: '#6cc644' }} />
: <AlertIcon
style={{ fill: 'yellow' }} />
}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions server/tests/server.test.js
Expand Up @@ -83,7 +83,7 @@ describe('server', () => {

describe('events', () => {
it('emits events', async (done) => {
const payload = {payload: true}
const payload = { payload: true }

await request(server).post(channel)
.set('X-Foo', 'bar')
Expand All @@ -101,7 +101,7 @@ describe('server', () => {
})

it('POST /:channel/redeliver re-emits a payload', async (done) => {
const payload = {payload: true}
const payload = { payload: true }

await request(server).post(channel + '/redeliver')
.send(payload)
Expand Down

0 comments on commit 2bc122c

Please sign in to comment.