open-index/open-npm huggingface dataset:
npm package: @sagent/lint
Description: ## HOW LINT SCSS IN AN APP/PROJECT
Latest version: 0.0.19

# Sagent Lint - npm package containing all linters

## HOW LINT SCSS IN AN APP/PROJECT

0. Install npm package
```shell
    npm i --save-dev @sagent/brand
```

1. Install [stylelint](https://stylelint.io/)
```shell
    npm install --save-dev stylelint stylelint-config-standard-scss
```

2. Add script (optional) to package.json of the app
```json
    {
        "scripts": [
            "style-lint": "npx stylelint \"**/*.scss\"",
        ]
    }
```

3. Add config file to the root of the app/lib `.stylelintrc` or `.stylelintrc.json`
```json
    {
        "extends": [
            "stylelint-config-standard-scss",
            "./src/lib/stylelint/sagent-stylelint-rules"
        ]
    }
```

4. Run script
```shell
    npm run style-lint
```

## AVAILABLE PLUGINS
```txt
    https://github.com/stylelint/awesome-stylelint#plugins
```
## ESLINT
1. Install
```shell
    npm i @sagent/lint
```

2. Modify `.eslintrc.json` or `.eslintrc` in the project root
```json
    {
        ...
        "overrides": [
            {
                "files": [
                    "*.ts"
                ],
                ...
                "extends": [
                    "./node_modules/@sagent/lint/src/eslint/sagent-eslint-rules-for-ts.json"
                ],
                ...
            },
            {
                "files": [
                    "*.html"
                ],
                "extends": [
                    "./node_modules/@sagent/lint/src/eslint/sagent-eslint-rules-for-html.json"
                ],
                ...
            }
        ]
    }
```

3. Rules included in the config [@typescript-eslint](https://typescript-eslint.io/rules/) and [@angular-eslint](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/src/configs/all.json)