-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] download eslint package from npm and place it into default extensions #11121
Comments
I think Atom added a new field in their package.json, packageDependencies, and use it to install their extensions. I think I prefer their approach. |
|
I didn't look at Atom implementation, but I think the usage is similar to the node dependencies. "packageDependencies": {
"atom-dark-syntax": "0.28.0",
"atom-dark-ui": "0.53.0",
"...": "..."
} We could have something like: "dependencies": {
"chokidar": "1.6.0",
"...": "..."
},
"devDependencies": {
"grunt": "0.4.5",
"...": "..."
},
"packageDependencies": {
"brackets-eslint": "1.0.0",
"...": "..."
} and use npm to install them. |
|
I only skimmed the changes. From what I understood ESLint will installed in the default extensions so users will not able to remove this extension. Is it right? |
I don't think that's an issue (same way they can't remove JSLint now nobody really uses), but also a good point, I could make a PR to display default extensions in extension manager and delete them. |
Another option is to list default extensions in extension manager (possibly in a new tab) and allow them to be disabled/re-enabled. Note that Brackets has not been tested without the default extensions so different combinations should be tested. |
If some extensions are critical for Brackets to run, we could hard-code that they can't be disabled, but I think most of them won't cause this sort of problems. |
Very Cool. I don't think any of the default extensions were intended to be critical -- they just haven't been tested to verify it. |
ref: adobe/brackets#13136 |
default extensions can be now disabled in the UI, so this can take another look guys |
I was wondering if instead of downloading from npm wouldn't it be better to use brackets registry? |
|
|
|
I have modified the registration and fetching logic of registered providers a bit based on the following idiom.
|
I can no longer review this PR, but definitely work on the PR 😄 |
I have written most of the code so not much to review. |
The priority field is for future use. As of now it will default to 0 in the priority check and collision resolution will happen on load order. |
|
Not sure about the single linter, on my projects I use both TypeScript (with TSLint) and ESLint to lint my files. I wouldn't want to have only one. |
|
|
|
Update - Library versions are intact now. |
Friday Feb 17, 2017 at 01:16 GMT
Originally opened as adobe/brackets#13108
Related to adobe/brackets#11984
As a part of this PR I'd like to make a change, that when
brackets-eslint
is found inextensions/user
directory, it won't be loaded fromextensions/default
directory - I'd like your thoughts on that.zaggino included the following code: https://github.com/adobe/brackets/pull/13108/commits
The text was updated successfully, but these errors were encountered: