Skip to content

Commit

Permalink
lint upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
2roy999 committed Jul 1, 2019
1 parent 7e9da5a commit ae83494
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 170 deletions.
15 changes: 3 additions & 12 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
extends:
- "@first-lego-league"
- standard-jsx

env:
mocha: true

parserOptions:
env:
browser: true

globals:
WebSocket: true
- first-lego-league
- first-lego-league/jsx
- first-lego-league/tests
4 changes: 2 additions & 2 deletions client/sound/index.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

import React, { Component } from 'react'

import { onStartEvent, onEndEvent, onStopEvent, onEndGameEvent } from '../mhub-listener'

import './index.css'

import startSound from './mp3/start.mp3'
import stopSound from './mp3/stop.mp3'
import endgameSound from './mp3/end-game.mp3'
import endSound from './mp3/end.mp3'

import { onStartEvent, onEndEvent, onStopEvent, onEndGameEvent } from '../mhub-listener'

export default class Sound extends Component {
constructor (props) {
super(props)
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "mocha ./test/**/*.test.js",
"test:coverage": "nyc --all -n={client,server}/**/*.js{,x} -e=.js -e=.jsx -r text yarpm test",
"test:ci": "nyc --all -n={client,server}/**/*.js{,x} -e=.js -e=.jsx -r lcov yarpm test && codecov",
"lint": "eslint \"./server/**/*.js\" \"./client/**/*.jsx\" \"./client/**/*.js\"",
"lint": "eslint \"./server/**/*.js\" \"./client/**/*.js?\" \"./test/**/*.js\"",
"build": "webpack --mode production --config webpack.prod.js",
"prepack": "yarpm run build"
},
Expand Down Expand Up @@ -44,7 +44,6 @@
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@first-lego-league/dev-launcher": "^0.1.1",
"@first-lego-league/eslint-config": "1.0.0",
"@first-lego-league/user-interface": "^1.2.8",
"axios": "^0.19.0",
"babel-loader": "^8.0.6",
Expand All @@ -54,12 +53,15 @@
"concurrently": "^4.1.0",
"copy-webpack-plugin": "^5.0.3",
"css-loader": "^3.0.0",
"eslint": "^5.0.0",
"eslint": "^6.0.1",
"eslint-config-first-lego-league": "^1.0.1",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard-jsx": "^6.0.2",
"eslint-plugin-chai": "^0.0.1",
"eslint-plugin-chai-expect": "^2.0.1",
"eslint-plugin-chai-friendly": "^0.4.1",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-mocha": "^5.3.0",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.10.0",
Expand Down
4 changes: 0 additions & 4 deletions test/server/events-linker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ proxyquire.noCallThru()

const { expect } = chai

function capitalize (word) {
return word.charAt(0).toUpperCase() + word.substring(1).toLowerCase()
}

const loggerMock = {}

const { linkEvents } = proxyquire('../../server/events-linker', {
Expand Down
Loading

0 comments on commit ae83494

Please sign in to comment.