-
I got MegaLinter to use Describe the solution you'd like Describe alternatives you've considered The relevant part of my ###########
# Plugins #
###########
plugins:
- "@typescript-eslint"
#########
# Rules #
#########
extends: ["eslint:recommended", "plugin:qunit/recommended"]
rules:
array-callback-return: "error" I was able to use jobs:
build:
name: MegaLinter
runs-on: ubuntu-latest
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
# Install the npm dependencies
- name: Install packages for Node
run: npm install
# MegaLinter
- name: MegaLinter
id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://oxsecurity.github.io/megalinter/flavors/
uses: oxsecurity/megalinter@v6
env:
# All available variables are described in documentation
# https://oxsecurity.github.io/megalinter/configuration/
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} This was after I had first tried adding the following to JAVASCRIPT_ES_PRE_COMMANDS:
- command: "npm install eslint-plugin-qunit@latest --save-dev"
cwd: "workspace" # Will be run at the root of the workspace (usually your repository root)
- command: "npm list --depth=0"
cwd: "workspace" And then the run failed because the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The pre-command is today the only way to add additional npm packages |
Beta Was this translation helpful? Give feedback.
The pre-command is today the only way to add additional npm packages
But your proposition of JAVASCRIPT_ES_ADDITIONAL_PLUGINS looks very interesting, we'll see what we can do :)