build: Move eslint ignores to .eslintignore
Note that node_modules is excluded by default. Bug: T249858 Change-Id: Iaa69092b11e49ebf9cc5f2ec8a695894cda31b83
This commit is contained in:
parent
4199c80783
commit
85d57d4bbf
2 changed files with 17 additions and 18 deletions
16
.eslintignore
Normal file
16
.eslintignore
Normal 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/
|
||||
19
Gruntfile.js
19
Gruntfile.js
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue