Bug 1222542 - Run eslint against all of the ui/ directory

Since previously the JS files under ui/partials/ and ui/plugins/ were
omitted. We now need to also explicitly exclude the vendor directory,
which we can do using `.eslintignore`.

This also means that if people prefer to run eslint directly, they
can use `eslint ui/` rather than having to type out the multiple
directories used previously.
This commit is contained in:
Ed Morley 2015-11-02 01:16:12 +00:00
Родитель 2ff44d7073
Коммит 766838a5c6
2 изменённых файлов: 2 добавлений и 3 удалений

1
.eslintignore Normal file
Просмотреть файл

@ -0,0 +1 @@
ui/vendor/

Просмотреть файл

@ -259,9 +259,7 @@ module.exports = function(grunt) {
options: {
config: '.eslintrc'
},
target: ['ui/js/*.js',
'ui/js/**/*.js',
'ui/js/**/**/*.js']
target: ['ui/']
}
});