fix: Lock gruntify-eslint version to fix build errors (#42)

* Lock version of gruntify-eslint (and grunt-replace)

The current repository is compatible with gruntify-eslint 3.1.0.
`*` resolves to version 4.0.0., which bumps its eslint dependency
from 3.x to 4.x, which in turn causes linting errors.

To get the default check-out to pass, lock the dependencies to
known-compatible versions.

* Bump gruntify-eslint to 4.0.0 + fix lint error

Bump gruntify-eslint to 4.0.0, which depends on eslint ^4.0.0,
and fix the lint error that appeared.
This commit is contained in:
Rob Wu 2017-08-20 13:26:43 +02:00 committed by Luca Greco
parent a1fd64cab1
commit ab0b667ff3
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ module.exports = function(grunt) {
match: /\{\/\* include\("(.*?)"\) \*\/\}/, match: /\{\/\* include\("(.*?)"\) \*\/\}/,
replacement: (match, filename) => { replacement: (match, filename) => {
return grunt.file.read(filename) return grunt.file.read(filename)
.replace(/\n$/, "") .replace(/\n$/, "")
.replace(/^[^{]/gm, " $&"); .replace(/^[^{]/gm, " $&");
}, },
}, },
{ {

View File

@ -25,8 +25,8 @@
"grunt-babel": "^6.0.0", "grunt-babel": "^6.0.0",
"grunt-contrib-concat": "^1.0.1", "grunt-contrib-concat": "^1.0.1",
"grunt-coveralls": "^1.0.1", "grunt-coveralls": "^1.0.1",
"grunt-replace": "*", "grunt-replace": "^1.0.1",
"gruntify-eslint": "*", "gruntify-eslint": "^4.0.0",
"istanbul-lib-instrument": "^1.1.3", "istanbul-lib-instrument": "^1.1.3",
"jsdom": "^9.6.0", "jsdom": "^9.6.0",
"mocha": "^3.1.0", "mocha": "^3.1.0",