Sign In

@sisense/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sisense/eslint-config

This module contains eslint configurations for sisense projects

latest
npmnpm
Version
1.9.12
Version published
Weekly downloads
2
-50%
Maintainers
2
Weekly downloads
 
Created
Source

Eslint configs

Shared Eslint Configs for sisense projects

Install

The module should be installed together with its peer dependencies, that consist of eslint, prettier and typescript.

# install via npm
$ npm install --save-dev eslint prettier typescript @sisense/eslint-config


# install via yarn
$ yarn add --dev eslint prettier typescript @sisense/eslint-config

It is also suggested to use @sisense/prettier-config together with this configuration.

Usage

For using this config for javascript project it is suggested to use next configuration (.eslintrc.json):

{
    "root": true,
    "extends": ["@sisense/eslint-config"]
}

For using this config for typescript project it is suggested to use next configuration (.eslintrc.json):

{
    "root": true,
    "parserOptions": {
        "ecmaVersion": 2020,
        "sourceType": "module",
        "project": "./tsconfig.json"
    },
    "extends": ["@sisense/eslint-config/typescript"]
}

For disabling rules that cannot be fixed automatically this config is packaged with eslint-scripts binary:

# runs "eslint --fix" after what disables failures
npx eslint-scripts disable-failures .

FAQs

Package last updated on 16 Oct 2023

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