Skip to content

Commit 8c018ca

Browse files
feat: more tweaks
1 parent 1028427 commit 8c018ca

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Lint Code
1+
name: Lint with ESLint
22

33
on:
44
pull_request:
55
workflow_dispatch:
66
workflow_call:
77

88
jobs:
9-
lint_js:
9+
lint_eslint:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: ./.github/actions/prepare
1414
- run: pnpm run typegen
15-
- run: pnpm run lint:js
15+
- run: pnpm run lint:eslint

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ concurrency:
1616
cancel-in-progress: false
1717

1818
jobs:
19-
lint_js:
20-
uses: ./.github/workflows/lint-js.yml
19+
lint_eslint:
20+
uses: ./.github/workflows/lint-eslint.yml
2121
lint_knip_dev:
2222
uses: ./.github/workflows/lint-knip-dev.yml
2323
lint_knip_prod:
@@ -33,7 +33,7 @@ jobs:
3333

3434
release:
3535
needs:
36-
- lint_js
36+
- lint_eslint
3737
- lint_knip_dev
3838
- lint_knip_prod
3939
- lint_markdown

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"build": "pnpm run build:node",
3131
"build:node": "rimraf dist && pnpm run typegen && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts",
3232
"cz": "git-cz",
33-
"lint": "pnpm run typegen && pnpm run lint:js && pnpm run lint:md && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
34-
"lint-fix": "pnpm run typegen && pnpm run lint:js-fix && pnpm run lint:packages-fix",
35-
"lint:js": "eslint .",
36-
"lint:js-fix": "eslint . --fix",
33+
"lint": "pnpm run typegen && pnpm run lint:eslint && pnpm run lint:md && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
34+
"lint-fix": "pnpm run typegen && pnpm run lint:eslint-fix && pnpm run lint:packages-fix",
35+
"lint:eslint": "eslint .",
36+
"lint:eslint-fix": "eslint . --fix",
3737
"lint:knip": "pnpm run lint:knip:development && pnpm run lint:knip:production",
3838
"lint:knip:development": "knip --exclude exports,nsExports,types,nsTypes",
3939
"lint:knip:production": "knip --production --strict --exclude exports,nsExports,types,nsTypes",

src/configs/jsdoc.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ export async function jsdoc(
5151
"warn",
5252
{
5353
contexts: [
54-
":not(:matches(:not(ExportNamedDeclaration) > FunctionDeclaration:not(:matches(TSDeclareFunction + FunctionDeclaration))):not(FunctionDeclaration FunctionDeclaration)) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
55-
"ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
56-
"TSDeclareFunction",
57-
"ExportNamedDeclaration > TSTypeAliasDeclaration",
58-
"ExportNamedDeclaration > TSInterfaceDeclaration",
59-
"TSEnumDeclaration",
54+
":matches(:matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSDeclareFunction, ExportDefaultDeclaration > FunctionDeclaration,:matches(ExportNamedDeclaration > FunctionDeclaration):not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration))",
55+
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSTypeAliasDeclaration",
56+
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSInterfaceDeclaration",
57+
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSEnumDeclaration",
6058
],
6159
enableFixer: false,
6260
require: {

src/configs/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export async function test(
7272
"ts/no-unsafe-call": "off",
7373
"ts/no-unsafe-member-access": "off",
7474
"ts/no-unsafe-return": "off",
75-
"ts/no-unused-vars-experimental": "off",
7675
"ts/no-unused-vars": "off",
7776
"ts/strict-boolean-expressions": "off",
7877

0 commit comments

Comments
 (0)