diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000000..79312ce3c4b --- /dev/null +++ b/.eslintignore @@ -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/ diff --git a/Gruntfile.js b/Gruntfile.js index a5a1b1cf063..99b6c3d4c87 100644 --- a/Gruntfile.js +++ b/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: {