Skip to content

Commit c652340

Browse files
feat: install ESLint (#43)
1 parent 36de99d commit c652340

File tree

6 files changed

+1377
-208
lines changed

6 files changed

+1377
-208
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js CI (lint)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [21.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm ci
24+
- run: npm run lint

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore peer dependencies error of typescript-eslint
2+
# See https://github.com/typescript-eslint/typescript-eslint/issues/8211#issuecomment-2041466332 for more details
3+
legacy-peer-deps=true

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { eslintConfigNoJSDoc } = require("@robot-inventor/eslint-config");
2+
3+
module.exports = eslintConfigNoJSDoc;

0 commit comments

Comments
 (0)