Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rachel Simone Weil
    @hxlnt
    Our next retro + sprint planning is scheduled for Friday, Feb. 28 at 9:00 AM Pacific.
    Rachel Simone Weil
    @hxlnt

    Meeting details:

    Public sprint retro + planning for webhint, occurs every other Friday at 9:00 AM Pacific.

    Join from a PC, Mac, iPad, iPhone or Android device:
    Please click this URL to join. https://zoom.us/j/211950755

    Rachel Simone Weil
    @hxlnt
    Reminder that our next retro + sprint planning is scheduled for Friday, Mar. 13 at 9:00 AM Pacific. Same meeting link as last time. Hope to see you there!
    Jim Peeters
    @JimPee
    Hey Guys, i have been looking for a while on how to scan multiple pages in 1 webhint command. I can't find it in the documentation.
    Rachel Simone Weil
    @hxlnt
    @JimPee If you mean scanning multiple sites with one command, you should be able to add URLs one after another with a space between (e.g., npx hint https://first-site https://second-site). Does that answer your question?
    Thomas Ardal
    @ThomasArdal
    Hi y'all. Happy webhint user here. I was wondering if it is possible to easily invoke webhint from JavaScript? I'm not talking about part of the pipeline or calling hin through a HTTP request. But invoking the hin engine directly from an index.js file. I guess that's what the server already does. But would be nice with an example of how to implement this, since I'm kind of a node n00b.
    2 replies
    Tony Ross
    @antross
    Hey Thomas, thanks for reaching out! Assuming you’re wanting to run in a nodejs environment this can be accomplished using the webhint node API. Documentation and examples are here: https://webhint.io/docs/user-guide/api/using-api/
    1 reply
    Tony Ross
    @antross
    No problem, glad I could help! Just to answer your other question about the webhint ado extension code you found: that’s a work in progress that should eventually switch to use the API too.
    Thomas Ardal
    @ThomasArdal
    Thanks
    Rachel Simone Weil
    @hxlnt
    webhint team meetings occur every other Friday. You can find meeting links and agenda in advance by looking at the pinned issues at https://github.com/webhintio/hint/issues. Hope to see you there!
    Patrick Brosset
    @captainbrosset
    Hey y'all, I'm interested in getting some information related to how to debug a hint, is there a room I need to join for this?
    Patrick Brosset
    @captainbrosset
    (I'll ask here and can move later if needed): I'm making changes to compat-api CSS hint, and other than running the tests or building and then running the browser extension, I don't know how to check my changes. I'd love to set breakpoints in the code, but I'm actually not sure how.
    That said, I was trying the browser extension in Firefox, and I don't think I can see the scope where the hint is executing, but maybe Chrome will let me do it. I'll try that
    Rachel Simone Weil
    @hxlnt
    We were chatting at our last sprint planning meeting about whether Gitter is the best forum for webhint chat or if folks would prefer to see it move to a different platform. Feel free to add your thoughts here or in the GitHub issue: webhintio/hint#3786
    Rachel Simone Weil
    @hxlnt
    Next planning meeting is tomorrow, June 26! Details at webhintio/hint#3843.
    Jesus David García Gomez
    @sarvaje
    @captainbrosset Maybe it is late, but If you are still trying to debug, let me know!
    Rohan Kumar
    @Seirdy
    I've noticed that the jsdom connector seems to ignore my .hintrc's compat-api settings: https://git.sr.ht/~seirdy/seirdy.one/tree/master/.hintrc
    is this expected behavior or a bug?
    Rohan Kumar
    @Seirdy
    I'm also not sure what the benefits/drawbacks of the jsdom connector are, compared to local and puppeteer.
    Tony Ross
    @antross

    @Seirdy, that does seem like a bug.

    To your other question: the main benefit of the jsdom connector is you don't need a full fledged chromium instance to use it, yet it can still test how a page executes in a browser-like environment. That said, if you have a chromium instance available, the puppeteer connector is preferred since it will run the page most like a real browser (and is faster). As for the local connector, that's for supporting analysis of raw source files without actually loading the page from a server and running it (used primarily with the webhint VS Code extension).

    Rohan Kumar
    @Seirdy
    antross: got it, thanks!
    yinon
    @yinonov
    hi all, new here, and I bring questions :)
    having trouble with connector and keep getting "AnalyzerError: Connector local only works with local files or directories"
    .hintrc as documented, not sure if there's anything wrong with it
    {
        "extends": ["development"],
        "connector": {
            "name": "local",
            "options": {
                "pattern": ["src"]
            }
        },
        "formatters": ["summary"],
        "hints": {},
        "parsers": ["typescript-config", "sass"]
    }
    Tony Ross
    @antross
    Hi @yinonov, to clarify, are you trying to use the CLI with this .hintrc? If so, can you share what command you're running?
    yinon
    @yinonov
    yes, cli
    hint http://localhost:8080
    very basic start
    Tony Ross
    @antross
    No problem. The local connector only works with file system paths (e.g. hint ./path/to/my.html) and is designed for analyzing raw source code.
    If you want to analyze content coming from a local webserver you'll mostly likely want to use the puppeteer connector, though you may also want to extend from web-recommended instead of development in that case as well. This setup is geared more toward analyzing how your content actually executes in the browser (though there is definitely overlap between the two).
    yinon
    @yinonov
    no, I do actually want to run hint tests on local ts, scss etc'...
    from reading the docs I figured the localhost is for showing reports
    not sure if other are experiencing this same way
    it went through now as expected! :)
    Tony Ross
    @antross
    Great, glad to hear it!
    yinon
    @yinonov
    🤗
    Tony Ross
    @antross
    By the way, if you think there are specific updates we could make to the documentation to help make this clearer please feel free to suggest them (or even open a PR). We're always interested in trying to make getting started easier :)
    yinon
    @yinonov
    gladly, i'll PR what I felt missing
    thanks tony
    Tony Ross
    @antross
    awesome, thank you!
    yinon
    @yinonov
    Hi again, may I ask how does webhint fit in line with other linters/ formatters? been doing some short view on eslint, stylelint, prettier. seems like there's much scattered information and no clear standard. my goal is to gather up linters & prettier to follow browserslist supported featured rules in typescript and scss files. is webhint's goal to be a 1 stop shop or is it focusing on html semantics?
    Tony Ross
    @antross
    Hi again @yinonov. The main difference webhint has from other linters is it focuses solely on issues which can affect end-user experiences and avoids rules related to stylistic preferences. However webhint does try to be a one-stop-shop in the sense that it aims to identify those issues across various technologies used for web development (HTML, JS, TS, JSX, TSX, CSS, SASS, LESS, ...). Does that help?
    yinon
    @yinonov
    more or less, it's quite a broad topic (linting) and seems like each tools is opinionated so it's quite confusing what road to take
    webhint does feel like a potential tool, although I dont quite understand what's its place next to linters eslint/stylelint
    I mean, can it replace any in the future?
    Rohan Kumar
    @Seirdy
    yinonov: it's closer to lighthouse than stylelint/eslint
    yinon
    @yinonov
    and tossed the boat again 😁
    ameenamohsen94
    @ameenamohsen94
    hi
    Btw I’m really bad at this so if it seems like I constantly am doing dumb shit it’s because I probably am 😂
    Thank you guys for helping me a lot ^^ I appreciate it