Skip to content

Commit ba324a4

Browse files
committed
upgrade eslint
1 parent e213163 commit ba324a4

File tree

13 files changed

+533
-379
lines changed

13 files changed

+533
-379
lines changed

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/pipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
node-version: [14.x, 16.x, 18.x, 20.x]
10+
node-version: [14, 16, 18, 20, 22, 24]
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
@@ -16,24 +16,24 @@ jobs:
1616
registry-url: https://registry.npmjs.org
1717
- run: npm install
1818
- run: npm run lint
19-
if: ${{ matrix.node-version != '14.x' }}
19+
if: ${{ matrix.node-version == 24 }}
2020
- run: npm run format-check
2121
- run: npm run build
2222
- run: npm run build-examples
2323

2424
# workaround for https://github.com/jestjs/jest/issues/11438
2525
- run: npm run test-coverage -- --maxWorkers=7
26-
if: ${{ matrix.node-version == '14.x' }}
26+
if: ${{ matrix.node-version == 14 }}
2727
env:
2828
CI: true
2929
# end workaround
3030

3131
- run: npm run test-coverage
32-
if: ${{ matrix.node-version != '14.x' }} # see above
32+
if: ${{ matrix.node-version != 14 }} # see above
3333
env:
3434
CI: true
3535
- run: npx codecov || echo "Codecov failed, ignoring"
36-
if: ${{ github.ref == 'refs/heads/main' && matrix.node-version == '18.x' }}
36+
if: ${{ github.ref == 'refs/heads/main' && matrix.node-version == 18 }}
3737
publish:
3838
if: github.ref == 'refs/heads/main'
3939
needs: check
@@ -42,7 +42,7 @@ jobs:
4242
- uses: actions/checkout@v4
4343
- uses: actions/setup-node@v4
4444
with:
45-
node-version: 14.x
45+
node-version: 14
4646
registry-url: https://registry.npmjs.org
4747
- run: npm install
4848
- run: npm run build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## NEXT
4+
5+
- Upgrade ESLint
6+
37
## 1.9.0
48

59
- Improve caching of parse and validation results for performance

benchmark/graphqlade-http.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global console URL */
12
import { createServer } from 'http';
23
import { GraphQLServer } from '../dist/index.js';
34
import { resolvers } from './resolvers.mjs';

eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
{ rules: { 'no-console': 'error' } },
10+
{
11+
ignores: [
12+
'build',
13+
'coverage',
14+
'dist',
15+
'docs',
16+
'examples/client/public',
17+
'node_modules',
18+
],
19+
},
20+
);

examples/client/src/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { GraphQLClient, GraphQLWebSocketClient } from 'graphqlade/dist/browser';
23
import {
34
DBosses,

0 commit comments

Comments
 (0)