From e22eef0047eaaf6430e31215c2b856c482d33d3e Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 21 Apr 2018 15:26:26 +0200 Subject: [PATCH] Move information from .eslintignore into Gruntfile.js Use grunt also to filter for .js file extension instead of providing all files to eslint and filter there Bug: T179195 Change-Id: I3cda3ab51ae246de48e63d8ef9f4080669c93068 --- .eslintignore | 2 -- Gruntfile.js | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 1380bd8..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -/vendor -/resources/libraries diff --git a/Gruntfile.js b/Gruntfile.js index 6f13f1b..ef0c09a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -7,7 +7,12 @@ module.exports = function ( grunt ) { grunt.initConfig( { eslint: { - all: '.' + all: [ + '**/*.js', + '!resources/libraries/**', + '!node_modules/**', + '!vendor/**' + ] }, banana: { all: 'i18n/'