Skip to content

Commit 1cf31b4

Browse files
committed
Add eslinter
1 parent 44d2ac9 commit 1cf31b4

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/eslinter.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on: # yamllint disable-line rule:truthy
1313
type: string
1414
required: false
1515
default: ${{ github.ref }}
16+
config:
17+
description: 'The location of the configuration file'
18+
type: string
19+
required: false
20+
default: './tools/linters/eslint.config.js'
1621

1722
jobs:
1823
linter:
@@ -33,23 +38,10 @@ jobs:
3338

3439
- name: Install ESLint
3540
run: |
36-
#npm install -g npx --save-dev
37-
#npm install -g eslint --save-dev
3841
npm install eslint --save-dev --verbose
3942
40-
- name: Debug
41-
continue-on-error: true
42-
run: |
43-
pwd
44-
ls -lha ../../../
45-
ls -lha ../../
46-
ls -lha ../
47-
ls -lha .
48-
ls -lha node_modules/
49-
ls -lha node_modules/bin
50-
5143
- name: Lint ECMAScript
5244
uses: sibiraj-s/action-eslint@master
5345
with:
5446
all-files: true
55-
use-npx: false
47+
eslint-args: "--config=${{ inputs.config }}"

0 commit comments

Comments
 (0)