Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to flat config #36

Open
fregante opened this issue Jan 4, 2023 · 0 comments
Open

Move to flat config #36

fregante opened this issue Jan 4, 2023 · 0 comments

Comments

@fregante
Copy link
Contributor

fregante commented Jan 4, 2023

https://eslint.org/blog/2022/08/new-config-system-part-2/

This would let us reuse rules by just changing names (I presume) instead of manually merging them each time, like:

"no-restricted-imports": [
"error",
{
// Documentation: https://eslint.org/docs/rules/no-restricted-imports#options
patterns: [
// Extend the existing patterns
...config.rules["no-restricted-imports"][1].patterns,
{
group: ["./*"],
message:
'Use root-based imports (`import "@/something"`) instead of relative imports.',
},
],

This change would make the following change more reasonable:

eslint.org/docs/latest/use/configure/configuration-files-new

Suggested in #176 (comment)

I'm not sure if this is immediately possible due to our dependencies, but I can look into it if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants