Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit 85d57d4

Browse files
committed
build: Move eslint ignores to .eslintignore
Note that node_modules is excluded by default. Bug: T249858 Change-Id: Iaa69092b11e49ebf9cc5f2ec8a695894cda31b83
1 parent 4199c80 commit 85d57d4

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.eslintignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Upstream code
2+
/resources/lib/
3+
/resources/src/jquery.tipsy/
4+
/resources/src/mediawiki.libs.jpegmeta/
5+
# Skip function
6+
/resources/src/skip-Promise.js
7+
8+
# Build tooling
9+
/docs/
10+
/vendor/
11+
/tests/coverage/
12+
/tests/phpunit/data/registration/duplicate_keys.json
13+
14+
# Nested projects
15+
/extensions/
16+
/skins/

Gruntfile.js

+1-18
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,7 @@ module.exports = function ( grunt ) {
2222
extensions: [ '.js', '.json', '.vue' ],
2323
cache: true
2424
},
25-
all: [
26-
'**/*.{js,json,vue}',
27-
'!docs/**',
28-
'!node_modules/**',
29-
'!resources/lib/**',
30-
// Skip function
31-
'!resources/src/skip-Promise.js',
32-
'!resources/src/jquery.tipsy/**',
33-
'!resources/src/mediawiki.libs.jpegmeta/**',
34-
// Intentionally-broken JSON file
35-
'!tests/phpunit/data/registration/duplicate_keys.json',
36-
// Third-party code of PHPUnit coverage report
37-
'!tests/coverage/**',
38-
'!vendor/**',
39-
// Explicitly say "**/*.js" here in case of symlinks
40-
'!extensions/**/*.{js,json,vue}',
41-
'!skins/**/*.{js,json,vue}'
42-
]
25+
all: '.'
4326
},
4427
banana: {
4528
options: {

0 commit comments

Comments
 (0)