ESLint-Formatter icon indicating copy to clipboard operation
ESLint-Formatter copied to clipboard

Prevent errors in output

Open IPWright83 opened this issue 9 months ago • 0 comments

I use this plugin a lot and on projects that have generally been configured manually with eslint it works a treat. However often little hobby projects I spin up I use a starter template (e.g. next js setup). When doing this I frequently hit problems... Currently when I save I get this:

Error: Invalid Options:
- Unknown options: extensions, useEslintrc
- 'extensions' has been removed.

Which in itself is ok, I'm not 100% sure what this error is at the moment, but equally I kinda don't care. However this content replaces my entire file on save, so I need to undo and disable the plugin (then I forget to turn it back on :().

Is this supposed to replace my file content? Basically I'd like to be able to ignore the errors and keep working.

Here's my config if it helps:

// Settings in here override those in "ESLint-Formatter/ESLint-Formatter.sublime-settings",

{
    "format_on_save": true,
    "fix_to_stdout": true,
    "config_file": "package.json",
    "extra_args": ["--cache"],
    "format_on_save_extensions": [
        "js",
        "jsx",
        "es",
        "es6",
        "babel",
        "vue",
        "ts",
        "tsx"
    ],
    "node_path": {
        "osx": "/Users/ian/.nvm/versions/node/v20.11.1/bin/node"
    },
    "local_eslint_path": {
        "osx": "/Users/ian/.nvm/versions/node/v20.11.1/lib/node_modules/eslint_d/bin/eslint_d.js"
    }
}

IPWright83 avatar Feb 14 '25 09:02 IPWright83