-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support named exports in ESM/TS (#449)
* feat: support named exports in ESM/TS This adds support for named exports in ESM (whether it be TS or not). For example: ```ts export const rule: RuleModule = { create: () => { ... }; }; ``` Also, exported symbols: ```ts const rule = { ... }; export {rule}; ``` While ESLint plugins are still usually CJS at time of writing this, many are written as ESM sources, and an increasing number are using named exports. * chore: document node types & add cjs tests
- Loading branch information
Showing
2 changed files
with
122 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters