Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
Run eslint on wercker
Browse files Browse the repository at this point in the history
  • Loading branch information
ks888 committed Mar 20, 2017
1 parent 7df6318 commit 9dbfde7
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"rules": {
"semi" : [2, "never"],
"max-len": [2, 120, 2],
"max-len": [2, { "code": 120, "tabWidth": 2, "ignoreTemplateLiterals": true }],
"generator-star-spacing": 0,
"babel/generator-star-spacing": 1,
"jsx-quotes": [2, "prefer-single"]
Expand Down
6 changes: 2 additions & 4 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@
},
"scripts": {
"clean": "rimraf dist",
"lint": "eslint src",
"build": "better-npm-run build",
"build:dev": "better-npm-run build:dev",
"lint": "eslint src tests server",
"lint:fix": "npm run lint -- --fix",
"start": "npm run start:admin",
"start:admin": "better-npm-run start admin",
"start:status": "better-npm-run start status",
"test": "better-npm-run test",
"test:dev": "npm run test -- --watch",
"deploy": "better-npm-run deploy",
"release": "better-npm-run release",
"release:force": "npm run release -- --force",
"codecov": "cat coverage/*/lcov.info | codecov"
"release:force": "npm run release -- --force"
},
"betterScripts": {
"build": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { PropTypes } from 'react'
import classnames from 'classnames'
import DropdownList from 'components/DropdownList'
import classes from './CloudWatchMetricsSelector.scss'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ class ComponentDialog extends React.Component {
<div className='mdl-dialog__content'>
<ErrorMessage message={this.state.message} />
<TextField label='Name' text={this.state.name} rows={1} onChange={this.handleChangeName} />
<TextField label='Description (optional)' text={this.state.description} rows={2} onChange={this.handleChangeDescription} />
<TextField label='Description (optional)' text={this.state.description} rows={2}
onChange={this.handleChangeDescription} />
</div>
<div className='mdl-dialog__actions'>
<Button onClick={clickHandler} name={actionName}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Header extends React.Component {
<div>
<button id='header-user-menu'
className={classnames('mdl-button', 'mdl-js-button', classes.nav_item)}>
{this.props.username}
{this.props.username}
<i className='material-icons'>keyboard_arrow_down</i>
</button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class IncidentDialog extends React.Component {
const statusDOMs = incidentStatuses.map((status) => {
let checked = status === this.state.incidentStatus
return (
<RadioButton key={status} onChange={this.handleChangeIncidentStatus} label={status} checked={checked} groupName='status' />
<RadioButton key={status} onChange={this.handleChangeIncidentStatus} label={status}
checked={checked} groupName='status' />
)
})
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"rules": {
"semi" : [2, "never"],
"max-len": [2, 120, 2],
"max-len": [2, { "code": 120, "tabWidth": 2, "ignoreTemplateLiterals": true }],
"generator-star-spacing": 0,
"babel/generator-star-spacing": 1,
"jsx-quotes": [2, "prefer-single"]
Expand Down
18 changes: 14 additions & 4 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ build:
- npm-install:
cwd: packages/frontend
- script:
name: test lambda package
cwd: packages/lambda
code: |
npm run test
name: lint lambda package
cwd: packages/lambda
code: |
npm run lint
- script:
name: lint frontend package
cwd: packages/frontend
code: |
npm run lint
- script:
name: test lambda package
cwd: packages/lambda
code: |
npm run test
- script:
name: test frontend package
cwd: packages/frontend
Expand Down

0 comments on commit 9dbfde7

Please sign in to comment.