2015-03-03 03:05:36 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
module.exports = function (grunt) {
|
2015-06-19 02:12:42 +03:00
|
|
|
'use strict'
|
2015-03-03 03:05:36 +03:00
|
|
|
|
2015-06-19 02:12:42 +03:00
|
|
|
grunt.config('eslint', {
|
2016-09-14 07:51:51 +03:00
|
|
|
options: {
|
|
|
|
eslintrc: '.eslintrc'
|
|
|
|
},
|
|
|
|
files: [
|
|
|
|
'{,bin/,config/,grunttasks/,lib/**/,scripts/**/,test/**/}*.js'
|
|
|
|
]
|
2015-03-03 03:05:36 +03:00
|
|
|
})
|
2016-05-21 01:58:49 +03:00
|
|
|
grunt.registerTask('quicklint', 'lint the modified files', 'newer:eslint')
|
2015-03-03 03:05:36 +03:00
|
|
|
}
|