Comments (10)
There would definitely be a way to do that.
I really like the idea of removing ember-cli-jshint
-- that would just be removePackageFromProject
inside the afterInstall
hook -- but I'd be a bit concerned about the extra step of zapping user files. Those can be precious! Perhaps only doing the uninstall and them keeping the instructions in the README about tending to your JSHint files would be the best compromise.
from ember-cli-eslint.
Makes sense to me! I just know that my first step with a new Ember app these days is to remove the JSHint addon and config, since my editor will automatically run JSHint if it can find the config file. You're totally right about not wanting to delete their files without permission though; I wonder if you could make it optional, the way installation of addons sometimes prompts the user if they want to override a file?
I'll put a PR together 😄
from ember-cli-eslint.
but I'd be a bit concerned about the extra step of zapping user files
there are several options for that:
- do nothing about it 😞
- delete every files that looks remotely like
.jshintrc
😞 - tell the user he should manually delete all remaining
.jshintrc
files 😐 - show a list of found
.jshintrc
files to the user and ask him if the addon should remove them for him 😍
obviously all of that should only happen if .jshintrc
files were found
from ember-cli-eslint.
That's a great idea! Would you want one "yes/no" or a prompt for each?
from ember-cli-eslint.
Maybe "yes/no/ask for each" initially but it think yes/no once should be enough too
from ember-cli-eslint.
@Turbo87 @rwjblue do you know how to test that these hooks (like the post-install one) work correctly? Would it run if I do
$ npm install alexlafroscia/ember-cli-eslint#whatever
Or better yet, it there a way to trigger these hooks with an addon that you have installed locally and are using npm link
on?
from ember-cli-eslint.
do you mean ember generate ember-cli-eslint
?
from ember-cli-eslint.
Ahh, yup. Hadn't even thought of that, that's exactly what I needed.
from ember-cli-eslint.
Looks like I'm too late to the party.
Shouldn't it be a responsibility of ember-cli-jshint
addon to destroy its stuff?
Though I'm not sure if it's technically possible to call blueprint destroy
from another blueprint's postInstall
hook.
from ember-cli-eslint.
but I'd be a bit concerned about the extra step of zapping user files
there are several options for that:
- do nothing about it disappointed
- delete every files that looks remotely like
.jshintrc
disappointed- tell the user he should manually delete all remaining
.jshintrc
files neutral_face- show a list of found
.jshintrc
files to the user and ask him if the addon should remove them for him heart_eyesobviously all of that should only happen if
.jshintrc
files were found
If you have installed using some package like npm, you can uninstall it by executing npm remove -g jshint
from ember-cli-eslint.
Related Issues (20)
- Unable to install - npm registry 404 HOT 2
- Uint8Array (and other typed array) support question... HOT 1
- New Linter Rule - set() must return a value HOT 6
- is it possible to include into ESLint generated files mirage folder of the app? HOT 2
- `eslint-plugin-prettier` is failing with a wrong path HOT 21
- Virus in eslint-scope? HOT 3
- Expose broccoli-lint-eslint's format property HOT 1
- An in-range update of es6-promise is breaking the build 🚨 HOT 1
- An in-range update of rsvp is breaking the build 🚨 HOT 1
- An in-range update of ember-cli-htmlbars-inline-precompile is breaking the build 🚨 HOT 2
- An in-range update of testdouble is breaking the build 🚨
- Should work without a `tests` folder? HOT 4
- An in-range update of ember-cli-qunit is breaking the build 🚨 HOT 1
- Action required: Greenkeeper could not be activated 🚨
- Need resolver for eslint-plugin-import HOT 2
- Remove dependency on [email protected] HOT 4
- disable automatic execution during ember test and ember serve HOT 2
- GitHub releases do not match npm releases (specifically v5.1.0) HOT 8
- Linting typescript for in-repo-addons does not work
- Support eslint 6 HOT 6
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 ember-cli-eslint.