Skip to content

Commit

Permalink
Merge pull request #517 from bemusic/fix-eslint
Browse files Browse the repository at this point in the history
Fix eslint issues
  • Loading branch information
dtinth committed Dec 8, 2018
2 parents 1ef5f57 + 6cb6877 commit ae2b6f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 44 deletions.
4 changes: 4 additions & 0 deletions config/buildConfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* eslint no-global-assign: off */
/* REASON: When using TypeScript parser, sourceType:'module' is not respected.
* It thinks that CommonJS module files are global scripts. */

let name = 'Bemuse'
let version = require('../package.json')
.version.replace(/\.0$/, '')
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"build:netlify": "./bin/netlify-build",
"pre-deploy": "gulp pre-deploy",
"codecov": "codecov",
"lint": "gulp lint",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx .",
"postbootstrap": "lerna run prepare",
"pre-commit": "gulp pre-commit",
"prepare": "lerna run prepare",
Expand Down
2 changes: 1 addition & 1 deletion packages/bms/features/step_definitions/spacing_steps.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var steps = require('artstep')

module.exports = steps().Then(
/^note spacing at beat ([\-\d\.]+) is ([\-\d\.]+)$/,
/^note spacing at beat ([-\d.]+) is ([-\d.]+)$/,
function(beat, value) {
expect(this.spacing.factor(+beat)).to.equal(+value)
}
Expand Down
2 changes: 0 additions & 2 deletions src/app/ui/ChangelogPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import './ChangelogPanel.scss'
import React from 'react'
import $ from 'jquery'
import _ from 'lodash'
import Panel from 'bemuse/ui/Panel'
import Markdown from 'bemuse/ui/Markdown'

Expand Down
40 changes: 0 additions & 40 deletions tasks/lint.js

This file was deleted.

0 comments on commit ae2b6f8

Please sign in to comment.