How to use OXC in VS Code with nested config files? #6333
-
Hello! New to a lot of JS toolchain stuff so apologies if this is a dumb question. I have a Laravel monorepo with 8 different apps. On our customer facing application, I want to enable OXC for linting of JS/Vue files. The documentation describes OXC as "no config" but I'm having issues making any of it work at all. I installed the extension into VS Code. I do NOT have the Eslint extension enabled. Is that also required? Do I need an extra extension to get the squigglies to appear? If I run The Here is my {
"env": {
"browser": true
},
"globals": {
"AppData": "readonly"
},
"settings": {},
"rules": {
"eqeqeq": "warn",
"import/no-cycle": "error"
}
} I tried writing the following code in a if (1 == 2) {
console.log('test');
}
const thing = (testing, unused) => {
if (testing == 1) {
console.log('hi me');
unused--;
debugger;
}
} Happy to provide more details. I saw the presentation at Vite Conf and wanted to give it a shot! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I also installed oxc extension but I cannot use it. 😭 I created a question at here. |
Beta Was this translation helpful? Give feedback.
-
Nested configuration isn’t supported yet. It is listed as a feature expected to be available before the Oxlint beta #5653. |
Beta Was this translation helpful? Give feedback.
-
I think you have a problem with your VSCode Setup. As a default the oxc plugin looks at a file named
|
Beta Was this translation helpful? Give feedback.
-
I went ahead and marked @Sysix as the answer. Idk if there were updates to the plugin since I posted this over a month ago (likely) but coming back to it, things seem to work more "out of the box" (without specifying any config, actually). I was able to specify a custom oxc config file and after a restart of VS Code, the changes for the linter were displayed directly in the editor. Looking forward to the continued development of this project and everything else from |
Beta Was this translation helpful? Give feedback.
I think you have a problem with your VSCode Setup.
As a default the oxc plugin looks at a file named
.eslintrc
. You need to override it in yoursettings.json
:{ "oxc.enable": true, "oxc.configPath": "oxlintrc.json" }