Skip to content

Commit f115c3f

Browse files
authored
fix: add missing name property to recommended config (#336)
1 parent fb7fe2d commit f115c3f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const plugin = {
2727
rules,
2828
configs: {
2929
recommended: {
30+
name: "@eslint/css/recommended",
3031
plugins: {},
3132
rules: recommendedRules,
3233
},

tests/package/exports.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ describe("Package exports", () => {
3636
]);
3737
});
3838

39+
it("has a `configs.recommended.name` property", () => {
40+
assert.ok(exports.default.configs.recommended.name);
41+
});
42+
3943
it("has all available rules exported in the ESLint plugin", async () => {
4044
const allRules = (await fs.readdir(rulesDir))
4145
.filter(name => name.endsWith(".js"))

0 commit comments

Comments
 (0)