Skip to content

Commit

Permalink
feat: more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed May 19, 2024
1 parent 1028427 commit 8c018ca
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Lint Code
name: Lint with ESLint

on:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
lint_js:
lint_eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run typegen
- run: pnpm run lint:js
- run: pnpm run lint:eslint
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ concurrency:
cancel-in-progress: false

jobs:
lint_js:
uses: ./.github/workflows/lint-js.yml
lint_eslint:
uses: ./.github/workflows/lint-eslint.yml
lint_knip_dev:
uses: ./.github/workflows/lint-knip-dev.yml
lint_knip_prod:
Expand All @@ -33,7 +33,7 @@ jobs:

release:
needs:
- lint_js
- lint_eslint
- lint_knip_dev
- lint_knip_prod
- lint_markdown
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"build": "pnpm run build:node",
"build:node": "rimraf dist && pnpm run typegen && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts",
"cz": "git-cz",
"lint": "pnpm run typegen && pnpm run lint:js && pnpm run lint:md && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
"lint-fix": "pnpm run typegen && pnpm run lint:js-fix && pnpm run lint:packages-fix",
"lint:js": "eslint .",
"lint:js-fix": "eslint . --fix",
"lint": "pnpm run typegen && pnpm run lint:eslint && pnpm run lint:md && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
"lint-fix": "pnpm run typegen && pnpm run lint:eslint-fix && pnpm run lint:packages-fix",
"lint:eslint": "eslint .",
"lint:eslint-fix": "eslint . --fix",
"lint:knip": "pnpm run lint:knip:development && pnpm run lint:knip:production",
"lint:knip:development": "knip --exclude exports,nsExports,types,nsTypes",
"lint:knip:production": "knip --production --strict --exclude exports,nsExports,types,nsTypes",
Expand Down
10 changes: 4 additions & 6 deletions src/configs/jsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ export async function jsdoc(
"warn",
{
contexts: [
":not(:matches(:not(ExportNamedDeclaration) > FunctionDeclaration:not(:matches(TSDeclareFunction + FunctionDeclaration))):not(FunctionDeclaration FunctionDeclaration)) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
"ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
"TSDeclareFunction",
"ExportNamedDeclaration > TSTypeAliasDeclaration",
"ExportNamedDeclaration > TSInterfaceDeclaration",
"TSEnumDeclaration",
":matches(:matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSDeclareFunction, ExportDefaultDeclaration > FunctionDeclaration,:matches(ExportNamedDeclaration > FunctionDeclaration):not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration))",
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSTypeAliasDeclaration",
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSInterfaceDeclaration",
":matches(ExportDefaultDeclaration, ExportNamedDeclaration) > TSEnumDeclaration",
],
enableFixer: false,
require: {
Expand Down
1 change: 0 additions & 1 deletion src/configs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export async function test(
"ts/no-unsafe-call": "off",
"ts/no-unsafe-member-access": "off",
"ts/no-unsafe-return": "off",
"ts/no-unused-vars-experimental": "off",
"ts/no-unused-vars": "off",
"ts/strict-boolean-expressions": "off",

Expand Down

0 comments on commit 8c018ca

Please sign in to comment.