Skip to content

Commit

Permalink
post-merge fix: rules sorting; sort-type-union-intersection-members r…
Browse files Browse the repository at this point in the history
…emoval
  • Loading branch information
JoshuaKGoldberg committed Dec 16, 2022
1 parent 307a457 commit f1e805e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 273 deletions.

This file was deleted.

6 changes: 4 additions & 2 deletions packages/eslint-plugin/tests/rules/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import fs from 'fs';
import rules from '../../src/rules';

describe('./src/rules/index.ts', () => {
const ruleNames = Object.keys(rules).map(name => `${name}.ts`);
const ruleNames = Object.keys(rules)
.map(name => `${name}.ts`)
.sort();
const files = fs
.readdirSync('./src/rules')
.filter(file => file !== 'index.ts' && file.endsWith('.ts'));

it('imports all available rule modules', () => {
expect(ruleNames).toEqual(expect.arrayContaining(files));
expect(ruleNames).toEqual(files);
});
});

0 comments on commit f1e805e

Please sign in to comment.