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-config-vertica-vue-typescript

v0.6.0

Published

eslint config for using vue and typescript

Readme

eslint-config-vertica-vue-typescript

eslint-config for Vue (2 and 3) with Typescript

See eslint-plugin-vue for available rules for Vue.

See @typescript-eslint/eslint-plugin for available rules for Typescript.

I recommend that you use this package on projects that are setup using vue-cli, however it should work on any projects.

To use it how ever you have to manually install eslint-plugin-vue See usage

Installation

This config requires several peer dependencies. So I recommended to use the install-peerdeps command:

npx install-peerdeps --dev eslint-config-vertica-vue-typescript

Add a .eslintrc.js file to your project See eslint for documentation I recommend that you use a setup like this in your config:

module.exports = {
    root: true,
    env: {
        node: true
    },
    'extends': [
        'eslint-config-vertica-vue-typescript',
        '@vue/typescript' //<-- this must be last if not using prettier [See @vue/eslint-config-typescript usage](https://www.npmjs.com/package/@vue/eslint-config-typescript#usage)
    ],
    parserOptions: {
        ecmaVersion: 2020
    },
    rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
    }
};

Usage

This package comes with 2 rulesets.

Simply add the ruleset that you want to use to your .eslintrc.js extends section. And your ready to roll.

Vue 3 eslint-config-vertica-vue-typescript

This ruleset is the configuration for projects using Vue 3 with Typescript

An example .eslintrc.js extends section:

extends: [
    'eslint-config-vertica-vue-typescript',
    '@vue/typescript'
]

Vue 2 eslint-config-vertica-vue-typescript/vue2-config

This ruleset is the configuration for projects using Vue 2 with Typescript

An example .eslintrc.js extends section:

extends: [
    'eslint-config-vertica-vue-typescript/vue2-config',
    '@vue/typescript'
]

Known issues and errors

While testing these rulesets i have found an error that i had a hard time finding the proper solution for, because the error message was kind of vague.

TypeError: Cannot read property 'typeAnnotation' of undefined

When this error happens, it looks like it is because there is interfaces in the project, that the rulesets are implemented on, has functions that doesn't have a return type. eg.

interface Overlay {
    hide();
}

Will fail with this error:

ERROR  TypeError: Cannot read property 'typeAnnotation' of undefined
Occurred while linting C:\projects\_personal\sanTest1\src\core\offcanvas-overlay\overlayOrchestrator.ts:2

to fix this error simply add the expected return type of the method eg.

interface Overlay {
    hide(): Promise<void>;
}

then run the linter again and it should work. And when run with lint --fix, or just lint in some cases, the code should be refactored to look like this:

interface Overlay {
    hide: () => Promise<void>;
}