Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v8 (major) (#804)
Browse files Browse the repository at this point in the history
* chore(deps): update typescript-eslint monorepo to v8

* ..

* Update husky

* Update prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <[email protected]>
  • Loading branch information
renovate[bot] and ardatan authored Dec 14, 2024
1 parent a962b60 commit e3839a5
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 108 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-empty-object-type": "off",
"no-lonely-if": "error",
"import/no-extraneous-dependencies": [
"error",
Expand All @@ -49,5 +51,5 @@
}
}
],
"ignorePatterns": ["dist", "node_modules", "dev-test", "test-files"]
"ignorePatterns": ["dist", "node_modules", "dev-test", "test-files", "flow.js", "jest.project.js"]
}
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 17
nodeVersion: 18
- name: Build
run: yarn build
env:
Expand All @@ -83,7 +83,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # remove windows to speed up the tests
node_version: [16, 18, 20]
node_version: [18, 20, 22]
graphql_version: [15, 16]
include:
- node-version: 18
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ recompile.sh

.next/
out
.eslintcache
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"packageManager": "[email protected]",
"scripts": {
"build": "bob build",
"ci:lint": "eslint --ext .ts . --output-file eslint_report.json --format json",
"ci:lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore --output-file eslint_report.json --format json .",
"clean": "rimraf node_modules/",
"generate:examples": "yarn generate:examples:cjs",
"generate:examples:cjs": "graphql-codegen --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
"generate:examples:esm": "graphql-codegen-esm --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
"lint": "eslint --ext .ts .",
"postinstall": "patch-package && husky install",
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore .",
"postinstall": "patch-package",
"prebuild": "rimraf dist/ .bob/ tsconfig.tsbuildinfo",
"prerelease": "yarn build",
"prettier": "prettier --write --list-different .",
Expand All @@ -37,13 +37,14 @@
"@babel/preset-typescript": "7.26.0",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.10",
"@theguild/prettier-config": "2.0.7",
"@theguild/prettier-config": "3.0.0",
"@types/jest": "28.1.8",
"@types/node": "22.10.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.18.0",
"@typescript-eslint/parser": "8.18.0",
"babel-jest": "28.1.3",
"bob-the-bundler": "7.0.1",
"cross-env": "7.0.3",
"eslint": "9.17.0",
"eslint-plugin-import": "2.31.0",
"graphql": "16.9.0",
Expand All @@ -69,7 +70,7 @@
},
"lint-staged": {
"packages/**/src/**/*.{ts,tsx}": [
"eslint --fix"
"cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --fix"
],
"**/*.{js,jsx,cjs,mjs,ts,tsx,graphql,gql,yml,yaml,json,md}": [
"prettier --write"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class CSharpOperationsVisitor extends ClientSideBaseVisitor<

protected resolveFieldType(
typeNode: TypeNode,
hasDefaultValue: Boolean = false,
hasDefaultValue: boolean = false,
): CSharpFieldType {
const innerType = getBaseTypeNode(typeNode);
const schemaType = this._schema.getType(innerType.name.value);
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/c-sharp/c-sharp/src/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class CSharpResolversVisitor extends BaseVisitor<

protected resolveInputFieldType(
typeNode: TypeNode,
hasDefaultValue: Boolean = false,
hasDefaultValue: boolean = false,
): CSharpFieldType {
const innerType = getBaseTypeNode(typeNode);
const schemaType = this._schema.getType(innerType.name.value);
Expand Down
4 changes: 2 additions & 2 deletions prettier.config.cjs → prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
const prettierConfig = require('@theguild/prettier-config');
import prettierConfig from '@theguild/prettier-config';

module.exports = {
export default {
...prettierConfig,
overrides: [
...prettierConfig.overrides,
Expand Down
Loading

0 comments on commit e3839a5

Please sign in to comment.