GithubHelp home page GithubHelp logo

Global JSHint settings about atom-jshint HOT 11 OPEN

joezo avatar joezo commented on July 4, 2024
Global JSHint settings

from atom-jshint.

Comments (11)

Joezo avatar Joezo commented on July 4, 2024

What exactly do you mean? This should be configurable in your .jshintrc file

from atom-jshint.

lukasoppermann avatar lukasoppermann commented on July 4, 2024

I meant it would be nice to have it in the plugin settings panel, where I can set it to update on save or change, etc. But I set it the way you suggest (true in the jshintrc) I still get the error Expected an assignment or function call and instead saw an expression

Also will it overwrite my settings on update?

from atom-jshint.

Joezo avatar Joezo commented on July 4, 2024

I'm not sure if it will overwrite your settings on update i'm afraid, that's something that atom itself deals with.

In regards to your problem with the expression error, it may be that the package is not reloading the config when you've changed the .jshintrc file, to reload atom you can press ctrl+alt+cmd+L. If that doesn't work let me know!

Which reminds me, I need to raise an issue for that bug.

from atom-jshint.

lukasoppermann avatar lukasoppermann commented on July 4, 2024

Neither this nor restarting atom completely helped. :(

from atom-jshint.

Joezo avatar Joezo commented on July 4, 2024

Is your .jshintrc file in the root of the project path?

from atom-jshint.

lukasoppermann avatar lukasoppermann commented on July 4, 2024

Nope, I changed the default one in the packages. If I add one in my project it works, but I would like to set it for every project and not just for some.

from atom-jshint.

Joezo avatar Joezo commented on July 4, 2024

Ah okay, so a global jshintrc file. That's an interesting idea, going to rename this issue to be that. You'll have to workaround it the way you have until we do the work though i'm afraid. You might find that placing the .jshintrc file higher up the tree will solve it once the pending pull request is merged and released :)

from atom-jshint.

adregan avatar adregan commented on July 4, 2024

I'll second the request for a global settings option. I want to enable laxcomma: true only once as I always intend to work this way.

from atom-jshint.

Joezo avatar Joezo commented on July 4, 2024

Now that the package tries to find a .jshintrc file higher up the tree do you think an acceptable solution to this would be 'just place a .jshintrc file in the directory you store your projects in'? Or would there be a reason to not just do that?

from atom-jshint.

adregan avatar adregan commented on July 4, 2024

I'll certainly use that technique for now. Though I usually work in a canonical "project" directory, I'm not always that organized 😉 .

from atom-jshint.

lukasoppermann avatar lukasoppermann commented on July 4, 2024

It works for me. 👍

from atom-jshint.

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.