elicwhite / ESLint-Formatter

Sublime Text 3 Plugin to Autoformat with Eslint
MIT License
139 stars 20 forks source link

Slow performance creating new file? #88

Open IPWright83 opened 2 years ago

IPWright83 commented 2 years ago

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"
    }
}