Skip to content

Commit

Permalink
[v2] Fix eslint (#3633)
Browse files Browse the repository at this point in the history
* upgrade babel-eslint per eslint/eslint#9767

* fix linting error
  • Loading branch information
flipactual authored and KyleAMathews committed Jan 21, 2018
1 parent 03ed8bc commit 14c886e
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 141 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-eslint": "^8.2.1",
"babel-jest": "^20.0.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-lodash": "^3.2.11",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby/src/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ module.exports = async (program: any) => {

function printDeprecationWarnings() {
const files = glob
.sync("{,!(node_modules|public)/**/}*.js")
.filter(file => fs.readFileSync(file).indexOf("boundActionCreators") !== -1)
.sync(`{,!(node_modules|public)/**/}*.js`)
.filter(file => fs.readFileSync(file).indexOf(`boundActionCreators`) !== -1)

if (files.length) {
console.log(`${chalk.cyan(`boundActionCreators`)} ${chalk.yellow(`is deprecated but was found in the following files:`)}`)
Expand Down
Loading

0 comments on commit 14c886e

Please sign in to comment.