Skip to content

Super linter

Ihar Aliakseyeu edited this page Dec 9, 2022 · 5 revisions

github.com/github

  1. Create a folders in project root
|-.github/
  |-linters/
    |-markdown-lint.yml
    |-.stylelintrc.json
  |-workflow/
    |-linter.yml  
  1. In linte.yml add connecting with GitHub Action Workflow
  2. Add in linters/ folder basic template and setup it for your needs

Stylelint in VSCode

image

  1. Install the extension from Extension Marketplace (icon in vscode sidebar)
  2. Edit extension configuration (ope in vscode extension page and click gear-icon > click Edit in settings.json)
  3. Add config and some rules
"stylelint.config": {
    
    "extends": "stylelint-config-standard-scss",
    "rules": {
      "no-empty-source": null,
      "no-missing-end-of-source-newline": null,
      "max-line-length": [
        300,
        {
          "ignore": [
            "comments"
          ]
        }
      ],
      "selector-combinator-space-after": "never",
      "selector-combinator-space-before": "never"
    }
  },
  1. Check and add, if necessary, file extensions required for snippet and validation image

test SideBar

Clone this wiki locally