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
Hi there! Thank you very much for this great package!
I managed to make it work with my Sublime Text through a Sublime Text package (ESLint-Formatter).
Leaving this information here in case someone else finds it useful, feel free to add it to the readme, or link to this comment.
Working setup for Sublime Text + eslint_d + ESLint-Formatter
eslint + any packages that you use, I installed it only locally in my project
eslint_d, also installed locally in my project
The caveats:
ESLint-Formatter seems to have some bugs and has not been updated for a while now, but I managed to get a working setup with a few tricks. Here is how my typescript project configuration looks like my-typescript-proj.sublime-project:
{
"folders": [
{
"path": ".",
"folder_exclude_patterns": [
"node_modules",
"lib"
]
}
],
"settings": {
"ESLint-Formatter": {
"format_on_save": true,
"format_on_save_extensions": [
"js",
"ts",
"jsx",
"tsx",
],
"config_path": ".eslintrc.js",
"debug": false, // print to SublimeText's Console (Show Console menu) for debugging// This should be working but the plugin is broken and this empty string at// least forces the plugin to use the `eslint_path` below"local_eslint_path": {
"windows": "",
"linux": "",
"osx": ""
},
// Because the above is broken the only way is to use the full path here"eslint_path": {
"windows": false, // edit if this is your platform"linux": false, // edit if this is your platform// Normal command// "osx": "/full/path/to/your/project/node_modules/.bin/eslint"// Server-based command, for speed, `npm install eslint_d --save-dev`"osx": "/full/path/to/your/project/node_modules/.bin/eslint_d"
},
// Required for typescript projects that include a config file"extra_args": [
"--parser-options={\"tsconfigRootDir\": \"$project_path/\"}"
]
}
}
}
Version details for reference:
macOS: 11.4
Sublime Text 4: 4126
Other Sublime Text packages in use:
It's been 2 years and a new major of eslint_d has been released with a new architecture. Closing for now. Please open a new issue if there are more recent findings.
Hi there! Thank you very much for this great package!
I managed to make it work with my Sublime Text through a Sublime Text package (ESLint-Formatter).
Leaving this information here in case someone else finds it useful, feel free to add it to the readme, or link to this comment.
Working setup for Sublime Text + eslint_d + ESLint-Formatter
Requirements:
eslint
+ any packages that you use, I installed it only locally in my projecteslint_d
, also installed locally in my projectThe caveats:
ESLint-Formatter seems to have some bugs and has not been updated for a while now, but I managed to get a working setup with a few tricks. Here is how my typescript project configuration looks like
my-typescript-proj.sublime-project
:Version details for reference:
macOS: 11.4
Sublime Text 4: 4126
Other Sublime Text packages in use:
Some of my dev dependencies in
package.json
:The text was updated successfully, but these errors were encountered: