Skip to content

Commit

Permalink
chore(deps): update devdependency eslint to v9 (#70)
Browse files Browse the repository at this point in the history
* chore(deps): update devdependency eslint to v9

* migrate eslint config

* update lock file

* add @jest/globals

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Diez <[email protected]>
  • Loading branch information
renovate[bot] and tobiasdiez authored Jul 9, 2024
1 parent 6d1ecf1 commit 0f5ead5
Show file tree
Hide file tree
Showing 8 changed files with 300 additions and 1,338 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

52 changes: 0 additions & 52 deletions .eslintrc

This file was deleted.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const apollo = new ApolloServer({

export default startServerAndCreateH3Handler(apollo, {
// Optional: Specify context
context: (event) => {...}
context: (event) => {
/*...*/
},
})
```

Expand All @@ -58,8 +60,10 @@ app.use(
'/api',
startServerAndCreateH3Handler(apollo, {
// Optional: Specify context
context: (event) => {...}
})
context: (event) => {
/*...*/
},
}),
)
```

Expand Down
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unjs from 'eslint-config-unjs'
import prettier from 'eslint-config-prettier'
import unusedImports from 'eslint-plugin-unused-imports'

export default unjs(
{
plugins: [unusedImports],
},
prettier,
)
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "vitest dev",
"test:integration": "jest",
"lint": "pnpm lint:eslint && pnpm lint:prettier",
"lint:eslint": "eslint --ext .ts,.js,.vue,.graphql --ignore-path .gitignore --report-unused-disable-directives .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:prettier": "prettier --check --ignore-path .gitignore . '!pnpm-lock.yaml'",
"example:simple": "listhen -w --open ./examples/simple.ts",
"prepack": "unbuild",
Expand All @@ -38,12 +38,11 @@
"@apollo/server-integration-testsuite": "^4.10.4",
"@apollo/utils.withrequired": "^3.0.0",
"@jest/globals": "^29.7.0",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"@vitest/coverage-v8": "^2.0.1",
"eslint": "^8.57.0",
"eslint": "^9.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-unjs": "^0.3.0-rc.7",
"eslint-plugin-unused-imports": "^4.0.0",
"graphql": "^16.9.0",
"h3": "^1.12.0",
Expand Down
Loading

0 comments on commit 0f5ead5

Please sign in to comment.