Skip to content

Commit

Permalink
feat: update super linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gavmck committed Jan 12, 2024
1 parent bf8c5bc commit a478e7b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*",
Expand Down

0 comments on commit a478e7b

Please sign in to comment.