npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webstorm-xo-eslint-bridge

v6.8.0

Published

eslint bridge for xo for Webstorm

Downloads

2,643

Readme

eslint bridge for xo for Webstorm

Webstorm provides real time highlighting of errors for eslint, but not xo.

This project aims to trick Webstorm into calling xo instead of eslint by mimicking a tiny portion of the eslint api.

Caveats

Tested on 2020-03-11T04:23:11.198Z with and only with

I didn't expect this tool to be so simple to hack together. If it ends up needing to be more complicated because of future changes to xo, eslint or Webstorm, I offer no guarantees of future support. PRs for additional features or support are welcome.

Setup

  1. npm install -D webstorm-xo-eslint-bridge
  2. In Webstorm, open the preferences
    1. Go to Languages & Frameworks > JavaScript > Code Quality Tools > ESLint
    2. Choose Manual ESLint configuration
    3. Choose this package as the ESLint package
    4. Click Apply

Webstorm Preferences

Development Notes

If something breaks, you'll want to dig into the Webstorm eslint plugin integration layer. On my machine, I found it here: /Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/languageService/eslint/bin/eslint-plugin.js

Webstorm appears to perform some verification of the package version, so the version number of this package is closely aligned with the eslint version.

My own usage of this bridge found a memory leak somewhere. As a work around for this leak, xo is run in a subprocess.

During development, you will need to issue pkill -f debug-name=eslint to have webstorm restart the plugin (and reload the bridge). Even still, webstorm has some timers and caches around running the linter. I found it helpful to cycle between 5 different files.