Skip to content

Commit 254e8e6

Browse files
committed
chore: fix lint
1 parent 66d67ee commit 254e8e6

File tree

6 files changed

+7
-46
lines changed

6 files changed

+7
-46
lines changed

.eslintrc.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ extends:
3030
- eslint:recommended
3131
- plugin:@typescript-eslint/eslint-recommended
3232
- plugin:@typescript-eslint/recommended
33-
- plugin:github/recommended
34-
- plugin:jest/recommended
3533

3634
rules:
3735
{
@@ -42,41 +40,7 @@ rules:
4240
'import/no-namespace': 'off',
4341
'no-console': 'off',
4442
'no-unused-vars': 'off',
45-
'prettier/prettier': 'error',
4643
'semi': 'off',
47-
'@typescript-eslint/array-type': 'error',
48-
'@typescript-eslint/await-thenable': 'error',
49-
'@typescript-eslint/ban-ts-comment': 'error',
50-
'@typescript-eslint/consistent-type-assertions': 'error',
51-
'@typescript-eslint/explicit-member-accessibility':
52-
['error', { 'accessibility': 'no-public' }],
53-
'@typescript-eslint/explicit-function-return-type':
54-
['error', { 'allowExpressions': true }],
55-
'@typescript-eslint/func-call-spacing': ['error', 'never'],
56-
'@typescript-eslint/no-array-constructor': 'error',
57-
'@typescript-eslint/no-empty-interface': 'error',
58-
'@typescript-eslint/no-explicit-any': 'off',
59-
'@typescript-eslint/no-extraneous-class': 'error',
60-
'@typescript-eslint/no-for-in-array': 'error',
61-
'@typescript-eslint/no-inferrable-types': 'error',
62-
'@typescript-eslint/no-misused-new': 'error',
63-
'@typescript-eslint/no-namespace': 'error',
64-
'@typescript-eslint/no-non-null-assertion': 'warn',
65-
'@typescript-eslint/no-require-imports': 'error',
66-
'@typescript-eslint/no-unnecessary-qualifier': 'error',
67-
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
68-
'@typescript-eslint/no-unused-vars': 'error',
69-
'@typescript-eslint/no-useless-constructor': 'error',
70-
'@typescript-eslint/no-var-requires': 'error',
71-
'@typescript-eslint/prefer-for-of': 'warn',
72-
'@typescript-eslint/prefer-function-type': 'warn',
73-
'@typescript-eslint/prefer-includes': 'error',
74-
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
75-
'@typescript-eslint/promise-function-async': 'error',
76-
'@typescript-eslint/require-array-sort-compare': 'error',
77-
'@typescript-eslint/restrict-plus-operands': 'error',
78-
'@typescript-eslint/semi': ['error', 'never'],
79-
'@typescript-eslint/space-before-function-paren': 'off',
80-
'@typescript-eslint/type-annotation-spacing': 'error',
81-
'@typescript-eslint/unbound-method': 'error'
44+
'no-redeclare': 'off',
45+
'@typescript-eslint/no-explicit-any': 'off'
8246
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
repository: ${{ github.repository }}
3434
token: ${{ github.token }}
3535
max-attempts: 3
36-
webhook-url: 'https://linear-changeset-server.vercel.app'
36+
lc-server-url: 'https://linear-changeset-server.vercel.app'
3737
```

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ inputs:
2323
max-attempts:
2424
description: 'Maximum number of attempts'
2525
default: '3'
26-
webhook-url:
27-
description: 'Release webhook URL'
26+
lc-server-url:
27+
description: Linear Changeset server URL
2828
required: true
2929
default: 'https://linear-changeset-server.vercel.app'
3030

src/release-parser.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export function parseRelease(
1515
if (!matchedIssueUrls) return []
1616

1717
return matchedIssueUrls.map(url => {
18-
const IssueUrlPattern =
19-
/\(https:\/\/linear.app\/(?<workspace>\w+)\/issue\/(?<issue>.*)\/(?<title>.*)\)/g
20-
2118
const _url = url.slice(1, -1)
2219

2320
const group = IssueUrlPattern.exec(url)?.groups

src/sdk/linear-changeset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from '@actions/core'
2-
import { array, InferOutput, object, string } from 'valibot'
2+
import { array, type InferOutput, object, string } from 'valibot'
33

44
const LinearChangesetSdkReleaseIssuesBody = object({
55
projectId: string(),

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"skipLibCheck": true,
1414
"newLine": "lf"
1515
},
16-
"exclude": ["./dist", "./node_modules", "./coverage", "./**/*.test.ts"]
16+
"exclude": ["./dist", "./node_modules"]
1717
}

0 commit comments

Comments
 (0)