Open sergi opened 4 months ago
I think this is known. Couldn't find it in the docs but I remembered reading it here.
I'm in the process of setting up json schema, it will solve the discoverability issue.
As for supporting extends
, I think it's valuable so I'll keep this feature request open.
@Boshen I can implement the extends
resolution; Last night I actually did some work on it; But it seems like we are changing the ESLintConfig
load process which would conflict with my changes.
I was planning to create an ESLintConfigBuilder
that would resolve the stuff after deserialization and build an ESLintConfig
.
I don't know the scope of changes in #3355; So let me know whether I should wait for you to merge those changes, start stacking on top of it; Or ignore it and let you merge with it.
Of course, I can also put a pin in it if you don't find it necessary at the moment.
@Boshen I can implement the
extends
resolution; Last night I actually did some work on it; But it seems like we are changing theESLintConfig
load process which would conflict with my changes.I was planning to create an
ESLintConfigBuilder
that would resolve the stuff after deserialization and build anESLintConfig
.I don't know the scope of changes in #3355; So let me know whether I should wait for you to merge those changes, start stacking on top of it; Or ignore it and let you merge with it.
Of course, I can also put a pin in it if you don't find it necessary at the moment.
I'm currently working on json schema support using the schematic
crate, there is a automatic extends support https://moonrepo.github.io/schematic/config/struct/extend.html I wanna try.
I'll let you know once it's done.
@Boshen I can implement the
extends
resolution; Last night I actually did some work on it; But it seems like we are changing theESLintConfig
load process which would conflict with my changes. I was planning to create anESLintConfigBuilder
that would resolve the stuff after deserialization and build anESLintConfig
. I don't know the scope of changes in #3355; So let me know whether I should wait for you to merge those changes, start stacking on top of it; Or ignore it and let you merge with it. Of course, I can also put a pin in it if you don't find it necessary at the moment.I'm currently working on json schema support using the
schematic
crate, there is a automatic extends support https://moonrepo.github.io/schematic/config/struct/extend.html I wanna try.I'll let you know once it's done.
It seems nice, especially if we somehow get to pass the eslintrc path to resolve relative extends. That's the main reason I've tried it with a builder, When we deserialize string directly (for example for test runners) we don't get to resolve relative extends.
What's the status of this issue? were you able to take advantage of extends
support in schematic
?
Given a
.eslint.json
file like this:Oxlint will only check for these two rules, ignoring all the parent rules from
../.eslintrc.json
.Running oxlint with the following command: