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 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-vue-contentmapper

v0.2.0

Published

[PoC] Lint Vue SFCs directly with ESLint and typescript-eslint rules through contentmapper, beside eslint-plugin-vue

Readme

eslint-plugin-vue-contentmapper

[!NOTE] This plugin runs ESLint core and typescript-eslint rules on Vue SFCs. vue/* rules come from eslint-plugin-vue, or optionally from Vize.

PoC: lint .vue files through the TypeScript that @vue/content-mapper (vuejs/language-tools#6170) generates for them.

Each .vue file is transformed into virtual TypeScript and linted as is. Reports are mapped back to the original file through the content mapper's span mappings; reports that cannot be mapped back, i.e. those on generated code, are dropped.

The original SFC is linted as a second block by eslint-plugin-vue (configs.vue) or Vize (configs.vize). Their rules that the virtual code already covers, such as vue/no-unused-vars and extensions of core rules other than layout ones, are turned off. Core and typescript-eslint rules belong on the virtual code blocks, **/*.vue/*.{js,jsx,ts,tsx}, not on **/*.vue.

vue({ preset, layout }) and vize({ preset, helpLevel }) build these configs with options; vue({ layout: false }) turns off layout rules when a formatter such as oxfmt or Prettier formats .vue files. pluginVue is the eslint-plugin-vue they use.

ESLint reports from example/App.vue shown in the editor, in both script and template

Content mappers are a built-in mechanism of tsgo (TypeScript 7), so tsgo-based linters such as Rslint could build on them to lint DSLs with strongly consistent semantics: the code they lint would be exactly what the type checker sees.