зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
2ff44d7073
Коммит
766838a5c6
|
@ -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/']
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче