Skip to content

Commit e3839a5

Browse files
chore(deps): update typescript-eslint monorepo to v8 (major) (#804)
* 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 <ardatanrikulu@gmail.com>
1 parent a962b60 commit e3839a5

File tree

9 files changed

+115
-108
lines changed

9 files changed

+115
-108
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"@typescript-eslint/explicit-function-return-type": "off",
2525
"@typescript-eslint/ban-ts-ignore": "off",
2626
"@typescript-eslint/ban-types": "off",
27+
"@typescript-eslint/no-require-imports": "off",
28+
"@typescript-eslint/no-empty-object-type": "off",
2729
"no-lonely-if": "error",
2830
"import/no-extraneous-dependencies": [
2931
"error",
@@ -49,5 +51,5 @@
4951
}
5052
}
5153
],
52-
"ignorePatterns": ["dist", "node_modules", "dev-test", "test-files"]
54+
"ignorePatterns": ["dist", "node_modules", "dev-test", "test-files", "flow.js", "jest.project.js"]
5355
}

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Setup env
6464
uses: the-guild-org/shared-config/setup@main
6565
with:
66-
nodeVersion: 17
66+
nodeVersion: 18
6767
- name: Build
6868
run: yarn build
6969
env:
@@ -83,7 +83,7 @@ jobs:
8383
strategy:
8484
matrix:
8585
os: [ubuntu-latest] # remove windows to speed up the tests
86-
node_version: [16, 18, 20]
86+
node_version: [18, 20, 22]
8787
graphql_version: [15, 16]
8888
include:
8989
- node-version: 18

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ recompile.sh
1717

1818
.next/
1919
out
20+
.eslintcache

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn lint-staged

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"packageManager": "yarn@1.22.22",
1515
"scripts": {
1616
"build": "bob build",
17-
"ci:lint": "eslint --ext .ts . --output-file eslint_report.json --format json",
17+
"ci:lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore --output-file eslint_report.json --format json .",
1818
"clean": "rimraf node_modules/",
1919
"generate:examples": "yarn generate:examples:cjs",
2020
"generate:examples:cjs": "graphql-codegen --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
2121
"generate:examples:esm": "graphql-codegen-esm --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
22-
"lint": "eslint --ext .ts .",
23-
"postinstall": "patch-package && husky install",
22+
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore .",
23+
"postinstall": "patch-package",
2424
"prebuild": "rimraf dist/ .bob/ tsconfig.tsbuildinfo",
2525
"prerelease": "yarn build",
2626
"prettier": "prettier --write --list-different .",
@@ -37,13 +37,14 @@
3737
"@babel/preset-typescript": "7.26.0",
3838
"@changesets/changelog-github": "0.5.0",
3939
"@changesets/cli": "2.27.10",
40-
"@theguild/prettier-config": "2.0.7",
40+
"@theguild/prettier-config": "3.0.0",
4141
"@types/jest": "28.1.8",
4242
"@types/node": "22.10.2",
43-
"@typescript-eslint/eslint-plugin": "7.18.0",
44-
"@typescript-eslint/parser": "7.18.0",
43+
"@typescript-eslint/eslint-plugin": "8.18.0",
44+
"@typescript-eslint/parser": "8.18.0",
4545
"babel-jest": "28.1.3",
4646
"bob-the-bundler": "7.0.1",
47+
"cross-env": "7.0.3",
4748
"eslint": "9.17.0",
4849
"eslint-plugin-import": "2.31.0",
4950
"graphql": "16.9.0",
@@ -69,7 +70,7 @@
6970
},
7071
"lint-staged": {
7172
"packages/**/src/**/*.{ts,tsx}": [
72-
"eslint --fix"
73+
"cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --fix"
7374
],
7475
"**/*.{js,jsx,cjs,mjs,ts,tsx,graphql,gql,yml,yaml,json,md}": [
7576
"prettier --write"

packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class CSharpOperationsVisitor extends ClientSideBaseVisitor<
232232

233233
protected resolveFieldType(
234234
typeNode: TypeNode,
235-
hasDefaultValue: Boolean = false,
235+
hasDefaultValue: boolean = false,
236236
): CSharpFieldType {
237237
const innerType = getBaseTypeNode(typeNode);
238238
const schemaType = this._schema.getType(innerType.name.value);

packages/plugins/c-sharp/c-sharp/src/visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class CSharpResolversVisitor extends BaseVisitor<
208208

209209
protected resolveInputFieldType(
210210
typeNode: TypeNode,
211-
hasDefaultValue: Boolean = false,
211+
hasDefaultValue: boolean = false,
212212
): CSharpFieldType {
213213
const innerType = getBaseTypeNode(typeNode);
214214
const schemaType = this._schema.getType(innerType.name.value);

prettier.config.cjs renamed to prettier.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2-
const prettierConfig = require('@theguild/prettier-config');
2+
import prettierConfig from '@theguild/prettier-config';
33

4-
module.exports = {
4+
export default {
55
...prettierConfig,
66
overrides: [
77
...prettierConfig.overrides,

0 commit comments

Comments
 (0)