Skip to content

Commit 7ec3022

Browse files
authored
test(eslint-plugin): include disable-type-checked.ts config in configs tests (typescript-eslint#8044)
* test(eslint-plugin): include `disable-type-checked.ts` config in configs tests * chore: trigger ci
1 parent 3175843 commit 7ec3022

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/eslint-plugin/tests/configs.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ describe('all.ts', () => {
9393
itHasBaseRulesOverriden(unfilteredConfigRules);
9494
});
9595

96+
describe('disable-type-checked.ts', () => {
97+
const unfilteredConfigRules: Record<string, string> =
98+
plugin.configs['disable-type-checked'].rules;
99+
100+
it('disables all type checked rules', () => {
101+
const configRules = filterRules(unfilteredConfigRules);
102+
103+
const ruleConfigs: [string, string][] = Object.entries(rules)
104+
.filter(([, rule]) => rule.meta.docs?.requiresTypeChecking)
105+
.map(([name]) => [`${RULE_NAME_PREFIX}${name}`, 'off']);
106+
107+
expect(entriesToObject(ruleConfigs)).toEqual(entriesToObject(configRules));
108+
});
109+
});
110+
96111
describe('recommended.ts', () => {
97112
const unfilteredConfigRules: Record<string, string> =
98113
plugin.configs.recommended.rules;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy