Skip to content

Commit b491963

Browse files
committed
migrate config
1 parent b9f524b commit b491963

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

.eslintrc.json

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

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- alpha
78

89
jobs:
910
publish:

.releaserc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ plugins:
1717
- "@semantic-release/release-notes-generator"
1818
branches:
1919
- main
20+
- name: alpha
21+
prerelease: true

bun.lockb

-1.44 KB
Binary file not shown.

eslint.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// @ts-check
2+
3+
import typescriptEslint from "typescript-eslint";
4+
5+
export default [
6+
...typescriptEslint.configs.recommended,
7+
{
8+
files: ["**/*.ts"],
9+
languageOptions: {
10+
parser: typescriptEslint.parser,
11+
parserOptions: {
12+
project: true,
13+
},
14+
},
15+
rules: {
16+
"@typescript-eslint/no-non-null-assertion": "error",
17+
"@typescript-eslint/no-unsafe-argument": "error",
18+
"@typescript-eslint/no-unsafe-call": "error",
19+
},
20+
},
21+
{
22+
ignores: ["build", "dist", "docs"],
23+
},
24+
];

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@expediagroup/graphql-kotlin-codegen",
3-
"packageManager": "bun@1.0.30",
3+
"packageManager": "bun@1.1.4",
44
"main": "dist/plugin.js",
55
"types": "dist/plugin.d.ts",
66
"files": [
@@ -27,13 +27,13 @@
2727
"devDependencies": {
2828
"@graphql-codegen/cli": "5.0.2",
2929
"@total-typescript/ts-reset": "0.5.1",
30-
"@typescript-eslint/eslint-plugin": "7.7.0",
3130
"bun-types": "1.1.4",
3231
"eslint": "9.1.0",
3332
"husky": "9.0.11",
3433
"prettier": "3.2.5",
3534
"tsup": "8.0.2",
36-
"typescript": "5.4.5"
35+
"typescript": "5.4.5",
36+
"typescript-eslint": "7.7.1"
3737
},
3838
"scripts": {
3939
"build": "tsup src/plugin.ts --clean --dts --external graphql",
@@ -44,5 +44,6 @@
4444
"prepack": "bun run build",
4545
"prepare": "husky",
4646
"test": "bun test"
47-
}
47+
},
48+
"type": "module"
4849
}

0 commit comments

Comments
 (0)