File tree 6 files changed +31
-17
lines changed
6 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 1
1
/build /**
2
2
/coverage /**
3
- /docs /**
4
- ! /docs /.eleventy.js
3
+ /docs /*
4
+ ! /docs /* .js
5
+ ! /docs /tools /
5
6
/jsdoc /**
6
7
/templates /**
7
8
/tests /bench /**
Original file line number Diff line number Diff line change @@ -83,9 +83,10 @@ module.exports = {
83
83
} ,
84
84
overrides : [
85
85
{
86
- files : [ "tools/*.js" ] ,
86
+ files : [ "tools/*.js" , "docs/tools/*.js" ] ,
87
87
rules : {
88
- "no-console" : "off"
88
+ "no-console" : "off" ,
89
+ "n/no-process-exit" : "off"
89
90
}
90
91
} ,
91
92
{
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+
1
3
module . exports = {
2
4
plugins : [
3
- require ( ' autoprefixer' ) ,
4
- require ( ' cssnano' )
5
+ require ( " autoprefixer" ) ,
6
+ require ( " cssnano" )
5
7
] ,
6
8
map : false
7
- }
9
+ } ;
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+
1
3
const path = require ( "path" ) ;
2
4
const TapRender = require ( "@munter/tap-render" ) ;
3
5
const spot = require ( "tap-spot" ) ;
@@ -16,13 +18,19 @@ const skipPatterns = [
16
18
"/team" ,
17
19
"/donate" ,
18
20
"/docs/latest" ,
19
- ` src="null"` ,
21
+ ' src="null"'
20
22
] ;
21
23
22
- const skipFilter = ( report ) =>
23
- Object . values ( report ) . some ( ( value ) =>
24
- skipPatterns . some ( ( pattern ) => String ( value ) . includes ( pattern ) )
25
- ) ;
24
+ /**
25
+ * Filter function to mark tests as skipped.
26
+ * Tests for which this function returns `true' are not considered failed.
27
+ * @param {Object } report hyperlink's test report for a link.
28
+ * @returns {boolean } `true` if the report contains any of `skipPatterns`.
29
+ */
30
+ function skipFilter ( report ) {
31
+ return Object . values ( report ) . some ( value =>
32
+ skipPatterns . some ( pattern => String ( value ) . includes ( pattern ) ) ) ;
33
+ }
26
34
27
35
( async ( ) => {
28
36
try {
@@ -35,7 +43,7 @@ const skipFilter = (report) =>
35
43
internalOnly : true ,
36
44
pretty : true ,
37
45
concurrency : 25 ,
38
- skipFilter,
46
+ skipFilter
39
47
} ,
40
48
tapRenderInstance
41
49
) ;
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ module.exports = [
85
85
"build/**" ,
86
86
"coverage/**" ,
87
87
"docs/*" ,
88
- "!docs/.eleventy.js" ,
88
+ "!docs/*.js" ,
89
+ "!docs/tools/" ,
89
90
"jsdoc/**" ,
90
91
"templates/**" ,
91
92
"tests/bench/**" ,
@@ -119,9 +120,10 @@ module.exports = [
119
120
}
120
121
} ,
121
122
{
122
- files : [ "tools/*.js" ] ,
123
+ files : [ "tools/*.js" , "docs/tools/*.js" ] ,
123
124
rules : {
124
- "no-console" : "off"
125
+ "no-console" : "off" ,
126
+ "n/no-process-exit" : "off"
125
127
}
126
128
} ,
127
129
{
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ async function fetchLinkMeta(url) {
99
99
console . error ( "Could not fetch data for" , url ) ;
100
100
console . error ( ex . message ) ;
101
101
console . error ( ex . stack ) ;
102
- process . exit ( 1 ) ; // eslint-disable-line n/no-process-exit -- used in tools
102
+ process . exit ( 1 ) ;
103
103
}
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments