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

@dsb-norge/eslint-config-dsb-vue3

v3.0.1

Published

ESLint standard config for Vue 3 (JavaScript) projects using Flat config

Downloads

38

Readme

eslint-config-dsb-vue3

npm version GitHub license

Installation

This package provides a Flat-config ESLint setup for Vue 3 JavaScript projects. It layers Vue's recommended rules, accessibility rules, and DSB stylistic choices.

Peer dependencies (install in your project):

  • eslint >= 9
  • eslint-plugin-vue >= 10
  • eslint-plugin-vuejs-accessibility >= 2.4
  • @stylistic/eslint-plugin >= 5

Install:

npm i -D @dsb-norge/eslint-config-dsb-vue3 eslint eslint-plugin-vue eslint-plugin-vuejs-accessibility @stylistic/eslint-plugin

Usage (Flat config)

Create eslint.config.mjs in your project:

import dsbVue3 from '@dsb-norge/eslint-config-dsb-vue3'

export default [
  ...dsbVue3,
  // Optional: add your project-specific overrides here
]

Run:

npx eslint .

Notes

  • Targets Vue 3 SFCs and browser globals by default.
  • No TypeScript. For TS projects, use @dsb-norge/eslint-config-dsb-vue3-ts.
  • You can override any rule in your local eslint.config.mjs.

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • ESLint 9 and Flat config
  • Vue.js 3
  • Browser and/or Node environment
  • Vite (typical, but not required)
  • JavaScript (no TypeScript)

Despite these, you can freely override, extend, or unset rules in your own flat config.

Migrate from 2.x/3.x to 4.x (ESLint 9 + Flat config)

1) Package cleanup

Remove packages no longer needed by this baseline if they were previously installed in your project:

npm uninstall -D @rushstack/eslint-patch eslint-config-standard eslint-plugin-import eslint-plugin-n eslint-plugin-promise

Ensure you’re on ESLint 9 and compatible peers:

npm i -D eslint@latest eslint-plugin-vue@^10 eslint-plugin-vuejs-accessibility@^2.4 @stylistic/eslint-plugin@^5

2) package.json scripts

Update to the simple flat-config scripts:

{
  "scripts": {
    "lint": "eslint",
    "lint:fix": "eslint --fix"
  }
}

3) Configuration migration

Move from .eslintrc* to eslint.config.mjs and spread this config.

From (old):

// .eslintrc.js
module.exports = {
  root: true,
  extends: [
    '@dsb-norge/dsb-vue3'
  ]
}

To (new):

// eslint.config.mjs
import dsbVue3 from '@dsb-norge/eslint-config-dsb-vue3'

export default [
  ...dsbVue3,
  {
    // your project-specific overrides here
    rules: {
      // e.g. 'no-console': 'off'
    }
  }
]

4) Optional: keep import/node/promise rules

If your project relies on additional rule sets, add them explicitly with their Flat presets (see each plugin’s docs):

npm i -D eslint-plugin-import eslint-plugin-n eslint-plugin-promise
// eslint.config.mjs (excerpt)
import dsbVue3 from '@dsb-norge/eslint-config-dsb-vue3'
import pluginImport from 'eslint-plugin-import'
import pluginN from 'eslint-plugin-n'
import pluginPromise from 'eslint-plugin-promise'

export default [
  ...dsbVue3,
  // The exact flat preset keys may vary by version; consult plugin docs.
  // Examples:
  ...(pluginImport.flatConfigs?.recommended ?? []),
  ...(pluginN.configs?.['flat/recommended'] ?? []),
  ...(pluginPromise.configs?.['flat/recommended'] ?? []),
]

Cypress (optional)

Add Cypress rules to Cypress files only. Note the spread and scoping with files.

// eslint.config.mjs
import dsbVue3 from '@dsb-norge/eslint-config-dsb-vue3'
import pluginCypress from 'eslint-plugin-cypress/flat'

export default [
  ...dsbVue3,
  {
    name: 'Cypress',
    ...pluginCypress.configs.recommended,
    files: [
      '**/__tests__/*.{cy,spec}.{js,jsx}',
      'cypress/e2e/**/*.{cy,spec}.{js,jsx}',
      'cypress/support/**/*.{js,jsx}'
    ],
    rules: {
      // your Cypress-specific overrides here
    }
  }
]