Skip to content

Commit

Permalink
feat: install ESLint (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Inventor authored Apr 11, 2024
1 parent 36de99d commit c652340
Show file tree
Hide file tree
Showing 6 changed files with 1,377 additions and 208 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js CI (lint)

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore peer dependencies error of typescript-eslint
# See https://github.com/typescript-eslint/typescript-eslint/issues/8211#issuecomment-2041466332 for more details
legacy-peer-deps=true
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { eslintConfigNoJSDoc } = require("@robot-inventor/eslint-config");

module.exports = eslintConfigNoJSDoc;
Loading

0 comments on commit c652340

Please sign in to comment.