Skip to content

Commit

Permalink
lintFiles() should not have default param
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Dec 20, 2023
1 parent 70763c4 commit 25ff62a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/eslint/flat-eslint.js
Expand Up @@ -736,10 +736,10 @@ class FlatESLint {

/**
* Executes the current configuration on an array of file and directory names.
* @param {string|string[]} [patterns=["."]] An array of file and directory names.
* @param {string|string[]} patterns An array of file and directory names.
* @returns {Promise<LintResult[]>} The results of linting the file patterns given.
*/
async lintFiles(patterns = ["."]) {
async lintFiles(patterns) {

let normalizedPatterns = patterns;
const {
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/eslint/flat-eslint.js
Expand Up @@ -965,8 +965,8 @@ describe("FlatESLint", () => {
[
["a string with a single space", " "],
["an array with one empty string", [""]],
["an array with two empty strings", ["", ""]]

["an array with two empty strings", ["", ""]],
["undefined", void 0]
].forEach(([name, value]) => {

it(`should throw an error when passed ${name}`, async () => {
Expand Down

0 comments on commit 25ff62a

Please sign in to comment.