1.9.12 • Published 7 months ago

@sisense/eslint-config v1.9.12

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
7 months ago

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 .