Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita22b43b

Browse files
edg2smgol
authored andcommitted
Build: Append .eslintignore paths to grunt eslint paths
This allows us to turn off the `quiet` option which was suppressing warnings.We can also set `maxWarnings` to 0 now that aren't any.Closesgh-4689
1 parente7b3bc4 commita22b43b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

‎Gruntfile.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = function( grunt ) {
1515
varfs=require("fs"),
1616
gzip=require("gzip-js"),
1717
isTravis=process.env.TRAVIS,
18-
travisBrowsers=process.env.BROWSERS&&process.env.BROWSERS.split(",");
18+
travisBrowsers=process.env.BROWSERS&&process.env.BROWSERS.split(","),
19+
CLIEngine=require("eslint").CLIEngine;
1920

2021
if(!grunt.option("filename")){
2122
grunt.option("filename","jquery.js");
@@ -77,9 +78,7 @@ module.exports = function( grunt ) {
7778
},
7879
eslint:{
7980
options:{
80-
81-
// See https://github.com/sindresorhus/grunt-eslint/issues/119
82-
quiet:true
81+
maxWarnings:0
8382
},
8483

8584
// We have to explicitly declare "src" property otherwise "newer"
@@ -88,7 +87,18 @@ module.exports = function( grunt ) {
8887
src:["dist/jquery.js","dist/jquery.min.js"]
8988
},
9089
dev:{
91-
src:["src/**/*.js","Gruntfile.js","test/**/*.js","build/**/*.js"]
90+
src:[
91+
"src/**/*.js",
92+
"Gruntfile.js",
93+
"test/**/*.js",
94+
"build/**/*.js",
95+
96+
// Ignore files from .eslintignore
97+
// See https://github.com/sindresorhus/grunt-eslint/issues/119
98+
...newCLIEngine()
99+
.getConfigForFile("Gruntfile.js")
100+
.ignorePatterns.map((p)=>`!${p}`)
101+
]
92102
}
93103
},
94104
testswarm:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp