Skip to content

Commit

Permalink
chore(deps): update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinspecker committed Feb 24, 2016
1 parent f916d74 commit 7598feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ gulp.task('clean', () => del(destDir))
gulp.task('lint', ['clean'], () =>
gulp.src([configFiles, srcFiles, testFiles])
.pipe(eslint())
.pipe(eslint.formatEach('./node_modules/eslint-path-formatter'))
.pipe(eslint.failOnError())
)

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
"chai": "^3.0.0",
"coveralls": "^2.11.2",
"del": "^2.0.2",
"eslint-config-dustinspecker": "^0.3.1",
"eslint-path-formatter": "^0.1.1",
"eslint-config-dustinspecker": "^0.4.1",
"eslint-plugin-new-with-error": "^1.1.0",
"eslint-plugin-no-use-extend-native": "^0.3.1",
"gulp": "^3.9.0",
"gulp-babel": "^6.0.0",
"gulp-eslint": "^1.0.0",
"gulp-eslint": "^2.0.0",
"gulp-istanbul": "^0.10.0",
"gulp-mocha": "^2.1.0"
}
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ exports.start = str => {
* @return {Number} - number of spaces in a line
*/
exports.total = str => {
let match

typeCheck(str)

match = str.match(/ /g)
const match = str.match(/ /g)

if (match) {
return match.length
Expand Down

0 comments on commit 7598feb

Please sign in to comment.