Skip to content

Merge pull request #158 from KristjanESPERANTO/linter #380

Merge pull request #158 from KristjanESPERANTO/linter

Merge pull request #158 from KristjanESPERANTO/linter #380

Workflow file for this run

name: Super-Linter
# Run this workflow every time a new commit pushed to your repository
on: [push, pull_request]
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
super-lint:
# Name the Job
name: Lint Code Base
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- name: install modules
run: |
npm ci
# Runs the Super-Linter action
- name: Run Super-Linter
uses: github/super-linter/slim@v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
CSS_FILE_NAME: .stylelintrc.json
JAVASCRIPT_DEFAULT_STYLE: prettier
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json
JSCPD_CONFIG_FILE: .jscpd.json
YAML_CONFIG_FILE: .yamllint.yaml
# Exclude symlinks because JSCPD has a problem with them
# (You could add nore using |. Like this: .*(docs/index.md|filex.js|.filey.yaml).*)
FILTER_REGEX_EXCLUDE: .*(docs/index.md).*