Skip to content

Commit

Permalink
Bumps deps; Migrate to eslint 9 flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody committed May 27, 2024
1 parent 515cba1 commit 686047d
Show file tree
Hide file tree
Showing 35 changed files with 2,937 additions and 2,198 deletions.
143 changes: 0 additions & 143 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: ArtiomTr/jest-coverage-report-action@v2
with:
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,31 @@ jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest

permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install ESLint
run: |
npm install eslint@latest
npm install @microsoft/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Install dev dependencies
run: pnpm install --dev

- name: Run ESLint
run: npx eslint ./src ./test
--config .eslintrc.json
--ext .js,.jsx,.ts,.tsx
run: pnpm run lint
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
coverage
node_modules
dist
.vscode/
coverage/
dist/
node_modules/
*.sarif
8 changes: 4 additions & 4 deletions docs/BTTVEmote.html
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ <h5 class="h5-returns">Returns:</h5>



<h4 class="name" id="toObject"><span class="type-signature"></span>toObject<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
<h4 class="name" id="toObject"><span class="type-signature"></span>toObject<span class="signature">()</span><span class="type-signature"> &rarr; {object}</span></h4>



Expand Down Expand Up @@ -1276,7 +1276,7 @@ <h5 class="h5-returns">Returns:</h5>
</dt>
<dd>

<span class="param-type">Object</span>
<span class="param-type">object</span>



Expand Down Expand Up @@ -1390,7 +1390,7 @@ <h5 class="h5-parameters">Parameters:</h5>
<td class="type">


<span class="param-type">Object</span>
<span class="param-type">object</span>



Expand Down Expand Up @@ -1519,7 +1519,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Channel.html
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
6 changes: 3 additions & 3 deletions docs/Emote.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ <h3 class="subsection-title">Methods</h3>



<h4 class="name" id="toObject"><span class="type-signature"></span>toObject<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
<h4 class="name" id="toObject"><span class="type-signature"></span>toObject<span class="signature">()</span><span class="type-signature"> &rarr; {object}</span></h4>



Expand Down Expand Up @@ -758,7 +758,7 @@ <h5 class="h5-returns">Returns:</h5>
</dt>
<dd>

<span class="param-type">Object</span>
<span class="param-type">object</span>



Expand Down Expand Up @@ -789,7 +789,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
Loading

0 comments on commit 686047d

Please sign in to comment.