0.0.19 • Published 2 years ago

@sagent/lint v0.0.19

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Sagent Lint - npm package containing all linters

HOW LINT SCSS IN AN APP/PROJECT

  1. Install npm package
    npm i --save-dev @sagent/brand
  1. Install stylelint
    npm install --save-dev stylelint stylelint-config-standard-scss
  1. Add script (optional) to package.json of the app
    {
        "scripts": [
            "style-lint": "npx stylelint \"**/*.scss\"",
        ]
    }
  1. Add config file to the root of the app/lib .stylelintrc or .stylelintrc.json
    {
        "extends": [
            "stylelint-config-standard-scss",
            "./src/lib/stylelint/sagent-stylelint-rules"
        ]
    }
  1. Run script
    npm run style-lint

AVAILABLE PLUGINS

    https://github.com/stylelint/awesome-stylelint#plugins

ESLINT

  1. Install
    npm i @sagent/lint
  1. Modify .eslintrc.json or .eslintrc in the project root
    {
        ...
        "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"
                ],
                ...
            }
        ]
    }
  1. Rules included in the config @typescript-eslint and @angular-eslint
0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago