Skip to content

Commit 22ca9e6

Browse files
authored
Add non-experimental support for functional message secondary option (#8595)
1 parent 0e83b05 commit 22ca9e6

File tree

166 files changed

+125
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+125
-272
lines changed

.changeset/huge-ravens-leave.md

Lines changed: 5 additions & 0 deletions

docs/user-guide/configure.md

Lines changed: 2 additions & 2 deletions

lib/rules/__tests__/index.test.mjs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@ describe('deprecated rules', () => {
6060
});
6161
});
6262

63-
describe('custom message option', () => {
64-
test.each(ruleNames)(
65-
'"%s" should describe a custom message option in the document',
66-
async (name) => {
67-
const jsCode = await readFile(new URL(`../${name}/index.mjs`, import.meta.url), 'utf8');
68-
69-
// NOTE: If all rules support a custom message option, we should remove this `if` statement.
70-
if (!jsCode.includes('\tmessageArgs: [')) return;
71-
72-
const doc = await readFile(new URL(`../${name}/README.md`, import.meta.url), 'utf8');
73-
74-
expect(doc).toContain('`message` secondary option');
75-
},
76-
);
77-
});
78-
7963
describe('invalid options', () => {
8064
test.each(ruleNames)('"%s" should handle invalid options', async (name) => {
8165
const rule = await rules[name];

lib/rules/alpha-value-notation/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/annotation-no-unknown/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/at-rule-allowed-list/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/at-rule-descriptor-no-unknown/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/at-rule-descriptor-value-no-unknown/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/at-rule-disallowed-list/README.md

Lines changed: 0 additions & 2 deletions

lib/rules/at-rule-empty-line-before/index.cjs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)