@dsb-norge/eslint-config-dsb-vue

2.3.1 • Public • Published

eslint-config-dsb-vue

npm version GitHub license

Installation

The default export contains all default ESLint rules for JavaScript Standard Style , including the recommended ruleset for Vue, 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-vue

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

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

Usage

Now add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "@dsb-norge/dsb-vue"
  }
}

or to your .eslintrc:

{
  "extends": "@dsb-norge/dsb-vue"
}

or to your .eslintrc.js:

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

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • vue.js and/or node environment
  • browser and/or node environment
  • parser: babel (used @babel/eslint-parser)

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

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @dsb-norge/eslint-config-dsb-vue

    Weekly Downloads

    3

    Version

    2.3.1

    License

    ISC

    Unpacked Size

    5.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • scruffy-png
    • rolvraen
    • christopherneumannruud
    • baltom