
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
eslint-config-vertica-vue-typescript
Advanced tools
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
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'
}
};
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.
eslint-config-vertica-vue-typescriptThis 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'
]
eslint-config-vertica-vue-typescript/vue2-configThis 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'
]
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.
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>;
}
FAQs
eslint config for using vue and typescript
The npm package eslint-config-vertica-vue-typescript receives a total of 2 weekly downloads. As such, eslint-config-vertica-vue-typescript popularity was classified as not popular.
We found that eslint-config-vertica-vue-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.