From a478e7ba7e1f1f6e03886c1e2ae86f872b7c8a3c Mon Sep 17 00:00:00 2001 From: Gavyn McKenzie Date: Fri, 12 Jan 2024 05:21:27 +0000 Subject: [PATCH] feat: update super linter workflow --- .github/workflows/ci.yml | 29 ++++++++++++++++------------- package.json | 3 +-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7e7919..8b7ddce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,23 +7,26 @@ lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: github/super-linter/slim@v4 - env: - LINTER_RULES_PATH: / - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: 'main' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # We use our own lint script for JavaScript to avoid config clashes - VALIDATE_JAVASCRIPT_STANDARD: false - VALIDATE_JAVASCRIPT_ES: false - VALIDATE_JSX: false - VALIDATE_CSS: false - uses: actions/setup-node@v4 with: node-version-file: .nvmrc cache: 'npm' - run: npm ci - - run: npm run lint + - name: Lint Code Base + uses: github/super-linter/slim@v5 + env: + DEFAULT_BRANCH: 'main' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js + LINTER_RULES_PATH: / + TYPESCRIPT_ES_CONFIG_FILE: .eslintrc.js + VALIDATE_ALL_CODEBASE: false + VALIDATE_JAVASCRIPT_STANDARD: false + VALIDATE_JSCPD: false + VALIDATE_JSX: false + VALIDATE_TSX: false + VALIDATE_TYPESCRIPT_STANDARD: false diff --git a/package.json b/package.json index 26396fb..d6ca282 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "prepare": "rimraf dist && rollup -c", "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build", - "lint": "echo \"Error: no linting specified\" && exit 1" + "build-storybook": "storybook build" }, "files": [ "dist/**/*",