Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/deleted-and-deprecated-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Removed due to bugs and lack of support of the underlying library.

This rule is outdated. JavaScript modules (ESM) do not support importing a directory.

### ~no-array-for-each~

This rule was renamed to [`no-for-each`](rules/no-for-each.md).

### ~no-array-instanceof~

Replaced by [`no-instanceof-builtins`](rules/no-instanceof-builtins.md) which covers more cases.
Expand Down
5 changes: 5 additions & 0 deletions test/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ test('Every deprecated rules listed in docs/deleted-and-deprecated-rules.md', as
}
});

test('Removed rules are listed in docs/deleted-and-deprecated-rules.md', async t => {
const content = await fsAsync.readFile('docs/deleted-and-deprecated-rules.md', 'utf8');
t.true(content.includes('\n### ~no-array-for-each~\n'));
});

test('Every rule file has the appropriate contents', t => {
for (const ruleFile of ruleFiles) {
const ruleName = path.basename(ruleFile, '.js');
Expand Down
Loading