Coder Social home page Coder Social logo

Comments (10)

BrianSipple avatar BrianSipple commented on June 4, 2024

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.

alexlafroscia avatar alexlafroscia commented on June 4, 2024

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.

Turbo87 avatar Turbo87 commented on June 4, 2024

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.

alexlafroscia avatar alexlafroscia commented on June 4, 2024

That's a great idea! Would you want one "yes/no" or a prompt for each?

from ember-cli-eslint.

Turbo87 avatar Turbo87 commented on June 4, 2024

Maybe "yes/no/ask for each" initially but it think yes/no once should be enough too

from ember-cli-eslint.

alexlafroscia avatar alexlafroscia commented on June 4, 2024

@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.

Turbo87 avatar Turbo87 commented on June 4, 2024

do you mean ember generate ember-cli-eslint?

from ember-cli-eslint.

alexlafroscia avatar alexlafroscia commented on June 4, 2024

Ahh, yup. Hadn't even thought of that, that's exactly what I needed.

from ember-cli-eslint.

ro0gr avatar ro0gr commented on June 4, 2024

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.

madeeha-khan avatar madeeha-khan commented on June 4, 2024

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_eyes

obviously 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.