eslint-plus-action
eslint-plus-action copied to clipboard
`TypeError: eslint_1.CLIEngine is not a constructor` in Node 16.11.1
This error:
[ESLINT] Run With Configuration {
extensions: [ '.js', '.jsx', '.ts', '.tsx' ],
ignore: true,
useEslintrc: true,
rulePaths: [],
errorOnUnmatchedPattern: false,
fix: false,
configFile: undefined
}
##[error]TypeError: eslint_1.CLIEngine is not a
##[error]eslint_1.CLIEngine is not a constructor
Is caused by the following workflow YML:
name: pull-request
on:
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: '16.11.1'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: ESLint Plus
uses: bradennapier/eslint-plus-action@v3
- name: Run tests
run: yarn test
Same issue, but with node 14.18.1
It does work with 16.13.0
when using npm
Isn't this issue related to breaking changes in eslint 8 and not node?
Any update on this?
might be helpful for the repo owner to fix the issue https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#the-cliengine-class-has-been-removed
Added a PR: #73
This can already be used with:
- name : Run eslint on changed files
uses : Maggi64/eslint-plus-action@master