File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ target.lintDocsJS = function([fix = false] = []) {
548548 let errors = 0 ;
549549
550550 echo ( "Validating JavaScript files in the docs directory" ) ;
551- const lastReturn = exec ( `${ ESLINT } ${ fix ? "--fix" : "" } docs/.eleventy.js ` ) ;
551+ const lastReturn = exec ( `${ ESLINT } ${ fix ? "--fix" : "" } docs` ) ;
552552
553553 if ( lastReturn . code !== 0 ) {
554554 errors ++ ;
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ module.exports = [
8282 ignores : [
8383 "build/**" ,
8484 "coverage/**" ,
85- "docs/** " ,
85+ "docs/*" ,
8686 "!docs/.eleventy.js" ,
8787 "jsdoc/**" ,
8888 "templates/**" ,
@@ -91,8 +91,7 @@ module.exports = [
9191 "tests/performance/**" ,
9292 "tmp/**" ,
9393 "tools/internal-rules/node_modules/**" ,
94- "**/test.js" ,
95- "!.eslintrc.js"
94+ "**/test.js"
9695 ]
9796 } ,
9897 {
Original file line number Diff line number Diff line change @@ -4571,13 +4571,13 @@ describe("FlatESLint", () => {
45714571 beforeEach ( prepare ) ;
45724572 afterEach ( cleanup ) ;
45734573
4574- it ( "'isPathIgnored()' should return 'true ' for 'node_modules/foo/index.js'." , async ( ) => {
4574+ it ( "'isPathIgnored()' should return 'false ' for 'node_modules/foo/index.js'." , async ( ) => {
45754575 const engine = new FlatESLint ( { cwd : getPath ( ) } ) ;
45764576
45774577 assert . strictEqual ( await engine . isPathIgnored ( "node_modules/foo/index.js" ) , false ) ;
45784578 } ) ;
45794579
4580- it ( "'isPathIgnored()' should return 'true ' for 'node_modules/foo/.dot.js'." , async ( ) => {
4580+ it ( "'isPathIgnored()' should return 'false ' for 'node_modules/foo/.dot.js'." , async ( ) => {
45814581 const engine = new FlatESLint ( { cwd : getPath ( ) } ) ;
45824582
45834583 assert . strictEqual ( await engine . isPathIgnored ( "node_modules/foo/.dot.js" ) , false ) ;
You can’t perform that action at this time.
0 commit comments