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

Slow performance creating new file?

Open IPWright83 opened this issue 3 years ago • 0 comments

I've started getting a significant performance degradation using this when saving an empty new file. I've gone through packages and narrowed it down to this one, enabled debug output but there's absolutely nothing to see. Unfortunately however the delay is often long enough that Sublime thinks it's crashed. It's also a lot longer than it takes to process an actual file and fix any eslint rules.

SoSlow

I'm interested to know if there's a way to identify why this is happening/how I might fix it? Here's my settings:

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

{
    "format_on_save": true,
    "debug": true,
    "format_on_save_extensions": [
        "js",
        "jsx",
        "es",
        "es6",
        "babel",
        "vue",
        "ts",
        "tsx"
    ],
    "node_path": {
        "linux": "/home/ian/.nvm/versions/node/v12.22.1/bin/node"
    },
    "local_eslint_path": {
        "linux": "/home/ian/.nvm/versions/node/v12.22.1/bin/eslint_d"
    }
}

IPWright83 avatar Mar 24 '22 10:03 IPWright83