Skip to content

Commit

Permalink
test: Update tests for ESLint v9.15.0 (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Nov 17, 2024
1 parent e7e6f58 commit 89af61c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"devDependencies": {
"@eslint/js": "^9.7.0",
"eslint": "^9.7.0",
"eslint": "9.14.0",
"typescript": "^5.3.3",
"typescript-eslint": "^8.10.0"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"c8": "^10.1.2",
"chai": "^5.1.1",
"dedent": "^1.5.3",
"eslint": "^9.10.0",
"eslint": "^9.15.0",
"eslint-config-eslint": "^11.0.0",
"globals": "^15.1.0",
"got": "^14.4.2",
Expand Down
17 changes: 9 additions & 8 deletions tests/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,14 +1205,15 @@ describe("FlatESLint", () => {
ecmaFeatures: {
impliedStrict: true,
},
});
assert.deepStrictEqual(config.rules["eol-last"], [0]);
assert.deepStrictEqual(config.rules["no-undef"], [0]);
assert.deepStrictEqual(config.rules["no-unused-expressions"], [0]);
assert.deepStrictEqual(config.rules["no-unused-vars"], [0]);
assert.deepStrictEqual(config.rules["padded-blocks"], [0]);
assert.deepStrictEqual(config.rules.strict, [0]);
assert.deepStrictEqual(config.rules["unicode-bom"], [0]);
sourceType: "module", // set by js language's `normalizeLanguageOptions()`
});
assert.strictEqual(config.rules["eol-last"][0], 0);
assert.strictEqual(config.rules["no-undef"][0], 0);
assert.strictEqual(config.rules["no-unused-expressions"][0], 0);
assert.strictEqual(config.rules["no-unused-vars"][0], 0);
assert.strictEqual(config.rules["padded-blocks"][0], 0);
assert.strictEqual(config.rules.strict[0], 0);
assert.strictEqual(config.rules["unicode-bom"][0], 0);
});

it("overrides configure processor to parse .md file code blocks", async () => {
Expand Down

0 comments on commit 89af61c

Please sign in to comment.