build: Move eslint ignores to .eslintignore

Note that node_modules is excluded by default.

Bug: T249858
Change-Id: Iaa69092b11e49ebf9cc5f2ec8a695894cda31b83
This commit is contained in:
Timo Tijhof 2020-04-22 19:15:13 +01:00
parent 4199c80783
commit 85d57d4bbf
2 changed files with 17 additions and 18 deletions

16
.eslintignore Normal file
View file

@ -0,0 +1,16 @@
# Upstream code
/resources/lib/
/resources/src/jquery.tipsy/
/resources/src/mediawiki.libs.jpegmeta/
# Skip function
/resources/src/skip-Promise.js
# Build tooling
/docs/
/vendor/
/tests/coverage/
/tests/phpunit/data/registration/duplicate_keys.json
# Nested projects
/extensions/
/skins/

View file

@ -22,24 +22,7 @@ module.exports = function ( grunt ) {
extensions: [ '.js', '.json', '.vue' ],
cache: true
},
all: [
'**/*.{js,json,vue}',
'!docs/**',
'!node_modules/**',
'!resources/lib/**',
// Skip function
'!resources/src/skip-Promise.js',
'!resources/src/jquery.tipsy/**',
'!resources/src/mediawiki.libs.jpegmeta/**',
// Intentionally-broken JSON file
'!tests/phpunit/data/registration/duplicate_keys.json',
// Third-party code of PHPUnit coverage report
'!tests/coverage/**',
'!vendor/**',
// Explicitly say "**/*.js" here in case of symlinks
'!extensions/**/*.{js,json,vue}',
'!skins/**/*.{js,json,vue}'
]
all: '.'
},
banana: {
options: {