Skip to content

chore: add ESLint config and commands for linting JavaScript bindings.#248

Open
victor-linroth-sensmetry wants to merge 1 commit intomainfrom
chore/eslint-for-js-bindings
Open

chore: add ESLint config and commands for linting JavaScript bindings.#248
victor-linroth-sensmetry wants to merge 1 commit intomainfrom
chore/eslint-for-js-bindings

Conversation

@victor-linroth-sensmetry
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: victor.linroth.sensmetry <victor.linroth@sensmetry.com>
@victor-linroth-sensmetry victor-linroth-sensmetry force-pushed the chore/eslint-for-js-bindings branch from e6cb58f to db0db0d Compare March 30, 2026 13:28
Comment on lines 60 to 62
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 24
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(unrelated) Is this needed? We don't (AFAIK) care about exact node version, and the runner comes with node and npm preinstalled.
(ubuntu-24.04 comes with node 20, which will be EOL in a month, but this shouldn't concern us)


- name: ESLint
run: |
cd bindings/js
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this for the whole job like we do for Python:

  lint:
    needs: [plan]
    if: needs.plan.outputs.test == 'true'
    runs-on: ubuntu-24.04
    defaults:
      run:
        working-directory: bindings/py

Copy link
Copy Markdown
Collaborator

@andrius-puksta-sensmetry andrius-puksta-sensmetry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add node requirement to JS readme, also explain how to run the linter there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants