Add recent pattern for ESLinting in repo

Use of all: '.' in Gruntfile.js for eslint config and
eslintIgnore in package.json to ignore linting the "vendor/"
directory.

Change-Id: Ic8489351b8de6b7e31a95a55420db1f772f8d535
This commit is contained in:
Alangi Derick 2018-09-03 15:30:28 +01:00
parent dda6fa48a1
commit 6f3840db35
2 changed files with 5 additions and 6 deletions

View file

@ -9,11 +9,7 @@ module.exports = function ( grunt ) {
all: 'i18n/'
},
eslint: {
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
all: '.'
},
jsonlint: {
all: [

View file

@ -9,5 +9,8 @@
"grunt-banana-checker": "0.6.0",
"grunt-eslint": "20.0.0",
"grunt-jsonlint": "1.1.0"
}
},
"eslintIgnore": [
"vendor/**"
]
}