change linter config for browser/node switching

This commit is contained in:
Todd Baur 2017-03-30 02:42:06 +09:00
parent 0774841b66
commit a6cd8b1292
2 changed files with 11 additions and 3 deletions

View File

@ -23,8 +23,14 @@ module.exports = (grunt) ->
src: ['test/**/*.js']
jshint:
all: ['bin/embark', 'lib/**/*.js', 'js/mine.js', 'js/embark.js'],
all: ['bin/embark', 'lib/**/*.js']
options: grunt.file.readJSON('package.json').jshintConfig
with_overrides:
options:
undef: false
esversion: 5
files:
src: ['js/mine.js', 'js/embark.js']
grunt.loadTasks "tasks"
require('matchdep').filterAll(['grunt-*','!grunt-cli']).forEach(grunt.loadNpmTasks)

View File

@ -67,11 +67,13 @@
"white": true,
"node": true,
"undef": true,
"unused": true,
"-W058": true,
"-W014": true,
"expr": true,
"esversion": 6,
"unused": false
"unused": false,
"globals": {
"node": true
}
}
}