Add recent pattern for ESLinting to repo

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

Bug: T203648
Change-Id: I65756ab3b6f413021cedeb22c7933c6cffa2cb78
This commit is contained in:
Alangi Derick
2018-09-06 12:29:32 +01:00
committed by Krinkle
parent aec177a2a6
commit 445087e5fe
2 changed files with 7 additions and 8 deletions

View File

@@ -10,13 +10,7 @@ module.exports = function ( grunt ) {
grunt.initConfig( { grunt.initConfig( {
eslint: { eslint: {
all: [ all: '.'
'**/*.js',
'!lib/**',
'!node_modules/**',
'!vendor/**',
'!resources/js/ext.uls.webfonts.repository.js'
]
}, },
stylelint: { stylelint: {
options: { options: {

View File

@@ -13,5 +13,10 @@
"grunt-svgmin": "5.0.0", "grunt-svgmin": "5.0.0",
"stylelint": "8.2.0", "stylelint": "8.2.0",
"stylelint-config-wikimedia": "0.4.2" "stylelint-config-wikimedia": "0.4.2"
} },
"eslintIgnore": [
"lib/**",
"resources/js/ext.uls.webfonts.repository.js",
"vendor/**"
]
} }