eslint-community / eslint-plugin-eslint-comments

Additional ESLint rules for directive comments of ESLint.
https://eslint-community.github.io/eslint-plugin-eslint-comments
MIT License
44 stars 6 forks source link

feat: support flat config #200

Closed JoshuaKGoldberg closed 2 months ago

JoshuaKGoldberg commented 3 months ago

Fixes #182.

Adds a new configs.js file with the new shape of objects. The file is made available in both CJS and ESM with a package.json subpath export. Its data is made to work more easily in both by providing the object both under module.exports (CJS) and module.exports.default (ESM).

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.87%. Comparing base (e0f326f) to head (69ef4b2). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #200 +/- ## ======================================= Coverage 97.87% 97.87% ======================================= Files 17 17 Lines 282 282 ======================================= Hits 276 276 Misses 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Tbhesswebber commented 3 months ago

I just started working on migrating my personal set of ESLint quick-start configurations to flat configs and would be more than happy to test and provide feedback if there's desire to release this as an alpha or some other dist-tag once it gets merged.

github-actions[bot] commented 2 months ago

:tada: This PR is included in version 4.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: