Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Lin Dong
    @ldong
    and in the lib/cli.js
    Josh Perez
    @goatslacker
    var version = require('../package.json').version
    Lin Dong
    @ldong
    That would work too
    Josh Perez
    @goatslacker
    just checkout the repo
    and then locally run bin/fixmyjs
    you can also use npm link
    which will install the package from your clone
    so you can then do fixmyjs and it'll point to your code
    Lin Dong
    @ldong
    what about the name? I already installed the official fixmyjs, the working(the clone) copy will have the same name
    Josh Perez
    @goatslacker
    yeah, you don't have to npm link
    it'll overwrite it
    you can just run bin/fixmyjs though
    Lin Dong
    @ldong
    Let me try that
    Lin Dong
    @ldong
    Ha
    Got it
    It was actually pretty simple
    There is a catch though.https://www.npmjs.com/package/commander
    I tried to do
      .option('-v, --version', 'Current Version')
    instead I did
      .version(version)
    Because --version is reserved for .version syntax.
    I'm making a PR
    Lin Dong
    @ldong
    Thank you for the help @goatslacker
    Lin Dong
    @ldong
    BTW, I just thought of parsing jshintrc file, actually theres no need of reading that line by line, which will encounter the commenting issues.
    Instead, just read as simple json file, key-value pair.
    Then, when load the configuration file, all these comments will be ignored automatically.
    Josh Perez
    @goatslacker
    If that works then :+1:
    Michael Shuffett
    @mshuffett
    is there any way to see the reason for each fix?
    Josh Perez
    @goatslacker
    nope, it sounds like a good feature though
    Ashley Hier
    @ash-crash
    Any recommendations on whether to run fixmyjs before or after concatenation/minification?
    Tim Branyen
    @tbranyen
    def before, who cares what it looks like after?
    Ashley Hier
    @ash-crash
    Internet explorer cares? Linting !== Beautification?
    Josh Perez
    @goatslacker
    definitely before
    like for sure before
    after concatenation is fine
    but you do not want to minify and then run
    reviewing that diff would be a nightmare
    zerosurfer
    @zerosurfer
    Can fixmyJS use eslint ?
    Josh Perez
    @goatslacker
    what do you mean?
    zerosurfer
    @zerosurfer
    i have eslint rules defined in a config file , is it possible to use that config file to format and fix issues like spacing , indentation?
    Josh Perez
    @goatslacker
    ah, not at the moment no
    zerosurfer
    @zerosurfer
    thank you.
    Andrei Sheina
    @andrei-sheina
    Hi. I'm using jshint with Ember. And in several files i have warnings like 'Ember' is defined but never used. or 'DS' is defined but never used. The problem is that i can't set unused: false in my .jshintrc for all project and it's also a lot of work to manually set unused in every file where i have this warning. Maybe there is a way to set unused: false only for variables that i need?
    Michael Duane Mooring
    @mikeumus
    I'm using grunt-fixmyjs and it runs through the files and says it fixed a bunch and then I run jshint and I still have errors in the same files. Is it supposed to save the fixes, do I need to run it with sudo?
    Américo Duarte
    @americodls
    Hi. I saw that the last commit has more than one year. is this project no longer maintained or really stable?
    martskins
    @martskins
    hey everyone!
    anyone using jshint + vim ?
    John Vandenberg
    @jayvdb
    Would any jshint contributors like to participate in Google Code-in as a mentor? http://coala.io has applied as an umbrella organisation, with a number of our upstream linters (e.g. jshint) and other code quality orgs mentoring a few tasks for their own tool. All you need to do is nominate a few of your bugs that you believe a talented high school student could do in a 3-7 days, and nominate to mentor them if they run into trouble or need to ask questions, and commit to do code review with 36 hrs of them submitting their PR . coala GCI mentor signup form Ping me if you want more info.
    Adam Powers
    @apowers313
    hi
    ycxu@bupt.edu.cn
    @buptycxu11
    Where could I find the guides for jshint?
    I want to know what this string jshint -e .json *.json apps mean?