1.0.6 • Published 2 years ago

@consid/eslint-config-sitevision v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Eslint Config

Getting started

Install the project

npm i @consid/eslint-config-sitevision

Add the linting configuration:

In WebApps and RestApps you need to add the linting that should be used. You will need to extend the configuration @consid/eslint-config-sitevision in your package.json file.

"eslintConfig": {
    "extends": [
      "@sitevision/eslint-config-recommended",
      "@sitevision/eslint-config-webapp-react",
      "@consid/eslint-config-sitevision"
    ]
  },

You will now use Consids default EsLint configuration.

Linting rules

There is several rules in this npm package. The rules that is used is listed under Warnings / Error.

Warnings

semi

prefer-spread

indent

arrow-spacing

comma-spacing

key-spacing

max-statements-per-line

array-bracket-spacing

object-curly-spacing

operator-linebreak

linebreak-style

quotes

Error

func-names

prefer-arrow-callback

no-use-before-define

no-unreachable-loop

no-floating-decimal

dot-notation

no-empty-function

func-style

no-var

Ignore files from being linted

You can ignore files from being linted in package.json.

"eslintConfig": {
       "ignorePatterns": ["src/", "index.js"]
  },

Authors