Comments (5)
You should check the plugin config and see if all the paths in there are correct. You should enable debug: true
in the config and check the console for error messages.
from eslint-formatter.
Sorry for the very late reaction.
I tried to see whether I could figure out the issue again and this time(how did I not notice this last time) I noticed that my username folder was cut in half.
The thrown error says that module 'C:\Users\A' cannot be found but my name is 'A B' so perhaps the space is causing the issue?
from eslint-formatter.
The thrown error says that module 'C:\Users\A' cannot be found but my name is 'A B' so perhaps the space is causing the issue?
This seems likely. It'd be worth checking if running subprocess.Popen('C:\Users\A B\...\path\to\eslint')
works as expected.
from eslint-formatter.
I was getting module_not_found issues, in my case I think it's because I'm mounting a remote filesystem via SFTP using GVFS on Linux. I think there's some issue with following symlinks, but never confirmed that.
I fixed it by copying the eslint file into my home directory and ensuring I only ever use local eslint stuff in Sublime:
{
"local_eslint_path": {
"linux": ""
},
"eslint_path": {
"linux": "/home/username/node_modules/.bin/eslint",
"config_path": "/home/username/.eslintrc.custom.json"
},
"extra_args": ["--no-eslintrc"]
}
That got rid of the error, but I noticed it's not actually fixing any kind of formatting now... but hopefully this helps someone get further.
from eslint-formatter.
Silly me, this is at least partly because config_path is not part of eslint_path, it's a top-level option. This allows it to format:
{
"local_eslint_path": {
"linux": ""
},
"eslint_path": {
"linux": "/home/username/node_modules/.bin/eslint"
},
"config_path": "/home/username/.eslintrc.custom.json",
"extra_args": ["--no-eslintrc"]
}
It's not formatting everything I would expect, but I haven't touched that eslint file in a while, and it did change at least one thing. So I think it's working this way.
from eslint-formatter.
Related Issues (20)
- Programmatically find Node and ESLint directory HOT 2
- Default eslint_path for Windows 10 Pro 64bit on Sublime Text 3 does not seem to work when there is a "whitespace" (aka a "space") inside profile user name. HOT 2
- Feature request - Exclude folders from formatting
- Files with starting dot in the name are ignored
- Support package.json eslintConfig
- Vue SFC doesn't format missing commas HOT 1
- reload on fix HOT 1
- Jumps to top of file randomly HOT 1
- eslint command-line options support HOT 2
- How to set NODE_ENV or BABEL_ENV in formatter config
- Global name 'data' is not defined HOT 5
- Error panel popping on save HOT 4
- Vue SFC Error HOT 1
- Performance HOT 4
- How to selectively run Eslint-Formatter ("On save" mode) on particular files HOT 1
- Babel 7 upgrade HOT 1
- Slow performance creating new file?
- `eslint_d` instance per Sublime Window causing performance issues
- spawn node ENOENT HOT 1
- Error: Failed to load plugin 'import'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-formatter.