You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Caetas123 could you please provide me with a GitHub repository I can clone which contains a minimal setup that demos what you are seeing. This helps understanding the problem since errors like this a very version and config dependent.
Do understand what is going on I need a GitHub repository I can clone with a minimal setup that demos it. @Minori-ty could you provide something like this?
Do understand what is going on I need a GitHub repository I can clone with a minimal setup that demos it. @Minori-ty could you provide something like this?
Sorry, maybe I misunderstood. However, I encountered another problem where the ESLint version does not take effect. #1971
The error is that it does not automatically correct errors after saving the file, and when I change "explicit" to true it gives the error:
And if I close Vs Code with true it automatically goes to "explicit"
My settings.json:
{
"git.autofetch": true,
"liveServer.settings.donotShowInfoMsg": true,
"github.copilot.editor.enableAutoCompletions": false,
"files.autoSave": "afterDelay",
"git.openRepositoryInParentFolders": "always",
"diffEditor.hideUnchangedRegions.enabled": true,
"git.confirmSync": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "GitHub Dark Dimmed",
"settingsSync.ignoredSettings": [
"-php.validate.executablePath"
],
"chat.editing.alwaysSaveWithGeneratedChanges": true,
"code-runner.runInTerminal": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true // Error- incorrect type. Expected "string"
}
}
My eslint.config.mjs:
import globals from "globals";
import pluginJs from "@eslint/js";
/** @type {import('eslint').Linter.Config[]} /
export default [
{
files: ["**/.{js,mjs,cjs}"],
languageOptions: {
globals: globals.node,
ecmaVersion: "latest",
sourceType: "module"
},
rules: {
...pluginJs.configs.recommended.rules
}
}
];
The text was updated successfully, but these errors were encountered: