Skip to content

Commit

Permalink
refactor: switch to ESLint flat config, add JSDoc linting (#147)
Browse files Browse the repository at this point in the history
This commit switches Dysnomia over to ESLint flat config for
futureproofing and better maintainability. For the most part, the
codebase will pass the test suite, apart from a few exceptions
introduced by the stylistic plugin which I believe are reasonable to
include.

Additionally, JSDoc linting was added to maintain proper 
alignment of various features.
  • Loading branch information
TTtie authored Aug 2, 2024
1 parent 33fb2e4 commit dc3129e
Show file tree
Hide file tree
Showing 69 changed files with 4,333 additions and 4,243 deletions.
67 changes: 0 additions & 67 deletions .eslintrc.ts.yml

This file was deleted.

95 changes: 0 additions & 95 deletions .eslintrc.yml

This file was deleted.

16 changes: 3 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ on: [ pull_request ]

jobs:
lint:
name: Lint ${{ matrix.lang.name }} files
name: Lint all files
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
lang:
- lang: js
name: JavaScript
- lang: ts
name: TypeScript

steps:
- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -24,6 +15,5 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
run: npm i --omit=optional
- name: Lint ${{ matrix.lang.name }} files
run: "npm run lint:${{ matrix.lang.lang }}"

- name: Lint all files
run: "npm run lint"
Loading

0 comments on commit dc3129e

Please sign in to comment.