Falcion / Patternugit

Preconfigured pattern for your repository with universal cases for markdown files of documentations and other actions/scripts
MIT License
2 stars 1 forks source link

[FEATURE]: reintegrate "lint-staged" workflow into the repository #189

Open Falcion opened 2 weeks ago

Falcion commented 2 weeks ago

Contact details

No response

What the essence of your feature request

Integrate workflow named "lint-staged" in the repository, this would improve code smell:


name: Lint
on:  # yamllint disable-line rule:truthy
  push: null
  pull_request: null
permissions: { }
jobs:
  build:
    name: Lint
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: read
      # To report GitHub Actions status checks
      statuses: write
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          # super-linter needs the full git history to get the
          # list of files that changed across commits
          fetch-depth: 0
      - name: Super-linter
        uses: super-linter/super-linter@v6.7.0  # x-release-please-version
        env:
          # To report GitHub Actions status checks
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          MARKDOWN_CONFIG_FILE: .markdownlint.json
          FILTER_REGEX_EXCLUDE: .*workflows/.*
          LINTER_RULES_PATH: /
          IGNORE_GITIGNORED_FILES: true

Since there is already integrated linting mechanism through hooks (HUSKY), it would be a good idea to implement it through workflows and adapt repository to "clean-and-good" code standards.

On what OS you want to maintain your request.

Not important

Code of conduct

Issue policy

Security policy