@sisense/eslint-config
v1.9.12
Published
This module contains eslint configurations for sisense projects
Downloads
303
Keywords
Readme
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 .