2.1.0 • Published 12 days ago

@dsb-norge/eslint-config-dsb-vue3-ts v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 days ago

eslint-config-dsb-vue3-ts

npm version GitHub license

Installation

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 .

Note: It requires some peerDependencies as well.

Install the package with:

npx install-peerdeps --dev @dsb-norge/eslint-config-dsb-vue3-ts

Then install the correct versions of each peerDependency package, which are listed by the command:

npm info "@dsb-norge/eslint-config-dsb-vue3-ts@latest" peerDependencies

Usage

Now add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "@dsb-norge/dsb-vue3-ts"
  }
}

or to your .eslintrc:

{
  "extends": "@dsb-norge/dsb-vue3-ts"
}

or to your .eslintrc.js:

module.exports = {
  extends: '@dsb-norge/dsb-vue3-ts'
}

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • vue.js 3 and/or node environment
  • browser and/or node environment
  • vite
  • TypeScript

Despite some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.

2.1.0

12 days ago

2.0.0-3

3 months ago

2.0.0-2

3 months ago

2.0.0-1

3 months ago

2.0.0-0

3 months ago

2.0.0

3 months ago

1.2.3

4 months ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago