AI Assistance
Suggestion
In #12437 (comment), we experimented with some ideas around how the exports from the eslint-plugin package work. One of the ideas violated the very important invariant that all of the following must be equal, but we noticed this didn't fail any tests:
import tseslint from 'typescript-eslint';
import eslintPlugin from '@typescript-eslint/eslint-plugin';
tseslint.plugin;
eslintPlugin;
tseslint.configs['whatever'].plugins['@typescript-eslint'];
Therefore, we attempted to write testing that would enforce this invariant, but ran into unexpected problems with vitest, so we decided to defer it; see #12437 (comment). This issue is to follow up and write working testing.
cc @StyleShit
Additional Info
No response
AI Assistance
Suggestion
In #12437 (comment), we experimented with some ideas around how the exports from the eslint-plugin package work. One of the ideas violated the very important invariant that all of the following must be equal, but we noticed this didn't fail any tests:
Therefore, we attempted to write testing that would enforce this invariant, but ran into unexpected problems with vitest, so we decided to defer it; see #12437 (comment). This issue is to follow up and write working testing.
cc @StyleShit
Additional Info
No response