Skip to content

Commit fff168b

Browse files
committed
chore: fix some comments
Signed-off-by: jimmycathy <[email protected]>
1 parent 17cb958 commit fff168b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/eslint/legacy-eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function processOptions({
326326
/**
327327
* Check if a value has one or more properties and that value is not undefined.
328328
* @param {any} obj The value to check.
329-
* @returns {boolean} `true` if `obj` has one or more properties that that value is not undefined.
329+
* @returns {boolean} `true` if `obj` has one or more properties that value is not undefined.
330330
*/
331331
function hasDefinedProperty(obj) {
332332
if (typeof obj === "object" && obj !== null) {

tests/lib/linter/linter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17765,7 +17765,7 @@ var a = "test2";
1776517765
assert.strictEqual(linter.getSuppressedMessages().length, 0);
1776617766
});
1776717767

17768-
it("should correctly report problem for a a non-existent rule in disable directive", () => {
17768+
it("should correctly report problem for a non-existent rule in disable directive", () => {
1776917769
const messages = linter.verify(`${"\n".repeat(4)}${" ".repeat(7)}/* eslint-disable \n${" ".repeat(8)}test/foo */ \n`, config);
1777017770

1777117771
assert.strictEqual(messages.length, 1);

tests/lib/rules/lines-around-comment.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ruleTester.run("lines-around-comment", rule, {
5353

5454
// block comments
5555
{
56-
code: "bar()\n\n/** A Block comment with a an empty line after\n *\n */\nvar a = 1;",
56+
code: "bar()\n\n/** A Block comment with an empty line after\n *\n */\nvar a = 1;",
5757
options: [{ afterBlockComment: false, beforeBlockComment: true }]
5858
},
5959
{
@@ -71,11 +71,11 @@ ruleTester.run("lines-around-comment", rule, {
7171

7272
// inline comments (should not ever warn)
7373
{
74-
code: "foo() // An inline comment with a an empty line after\nvar a = 1;",
74+
code: "foo() // An inline comment with an empty line after\nvar a = 1;",
7575
options: [{ afterLineComment: true, beforeLineComment: true }]
7676
},
7777
{
78-
code: "foo();\nbar() /* An inline block comment with a an empty line after\n *\n */\nvar a = 1;",
78+
code: "foo();\nbar() /* An inline block comment with an empty line after\n *\n */\nvar a = 1;",
7979
options: [{ beforeBlockComment: true }]
8080
},
8181

0 commit comments

Comments
 (0)