Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@dsb-norge/eslint-config-dsb-vue3-ts
Advanced tools
ESLint standard config for Vue.js version 3 projects with Typescript support
The default export contains all default ESLint rules for Vue3 TypeScript , including the recommended ruleset for Vue, the opinionated recommended ruleset for TypeScript and the ones listed in the rules section .
Install the package with:
npm install --dev @dsb-norge/eslint-config-dsb-vue3-ts
Now add the config to youreslint.config.mjs
file:
import dsbConfig from '@dsb-norge/eslint-config-dsb-vue3-ts'
export default [
...dsbConfig
]
This ESLint configuration comes with some fundamental assumptions:
Despite some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.
npm uninstall -D @rushstack/eslint-patch @stylistic/eslint-plugin @vue/eslint-config-typescript eslint-plugin-vue eslint-plugin-vuejs-accessibility
eslint
library must be of version 9 or higher. If you are using eslint
8, you must upgrade to version 9 or higher.npm install eslint@latest
"scripts": {
...,
"lint": "eslint",
"lint:fix": "eslint --fix"
}
Configuration now lives in eslint.config.mjs
instead of .eslintrc.js
.
from:
// .eslintrc.js
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: [
'@dsb-norge/dsb-vue3-ts'
],
rules: {
indent: [ 'error', 2, { SwitchCase: 1 } ]
},
parserOptions: {
ecmaVersion: 'latest'
}
}
to
// eslint.config.mjs
import dsbConfig from '@dsb-norge/eslint-config-dsb-vue3-ts'
export default [
...dsbConfig,
{
rules: {
// your custom overrides here
}
}
]
Same as over, but adding cypress for only the cypress files. Note the spread operator since we are wrapping this in a separate object, this is different from what is described in the cypress documentation.
See eslint documentation for more information.
// eslint.config.mjs
import dsbConfig from '@dsb-norge/eslint-config-dsb-vue3-ts'
import pluginCypress from 'eslint-plugin-cypress/flat'
export default [
...dsbConfig,
{
name: 'Cypress',
...pluginCypress.configs.recommended,
files: [
'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
'cypress/support/**/*.{js,ts,jsx,tsx}'
],
rules: {
// your custom overrides for cypress here
}
},
{
rules: {
// your custom overrides here
}
}
]
FAQs
ESLint standard config for Vue.js version 3 projects with Typescript support
The npm package @dsb-norge/eslint-config-dsb-vue3-ts receives a total of 16 weekly downloads. As such, @dsb-norge/eslint-config-dsb-vue3-ts popularity was classified as not popular.
We found that @dsb-norge/eslint-config-dsb-vue3-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.