We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6721f0 commit 05a2ce9Copy full SHA for 05a2ce9
tests/plugin/eslint.test.js
@@ -36,6 +36,14 @@ describe("when the plugin is used with ESLint", () => {
36
await eslint.lintText("{}", { filePath: "test.json" });
37
});
38
39
+
40
+ it("recommended config should configure recommended rules", () => {
41
+ const actualRuleIds = Object.keys(json.configs.recommended.rules);
42
+ const expectedRuleIds = Object.entries(json.rules)
43
+ .filter(([, rule]) => rule.meta.docs.recommended)
44
+ .map(([name]) => `json/${name}`);
45
+ assert.deepStrictEqual(actualRuleIds, expectedRuleIds);
46
+ });
47
48
49
describe("config comments", () => {
0 commit comments