Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@consid/eslint-config-sitevision

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@consid/eslint-config-sitevision

Eslint config for webapps/restapps, created to be used with boilerplate

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

Keywords

FAQs

Package last updated on 14 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc