Skip to content

Commit 178400f

Browse files
committed
chore(lint): fix eslint errors
1 parent ed51ed8 commit 178400f

File tree

7 files changed

+31
-48
lines changed

7 files changed

+31
-48
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Install and build the repo
44
inputs:
55
script:
66
description: Build script
7-
default: 'build'
7+
default: build
88

99
node_version:
1010
description: Pnpm version to use
@@ -13,7 +13,6 @@ inputs:
1313
description: Node version to use
1414
required: true
1515

16-
1716
runs:
1817
using: composite
1918
steps:

.github/actions/install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ runs:
2828
shell: bash
2929
run: |
3030
# ================= 🧱 Install =================
31-
pnpm install
31+
pnpm install

.github/renovate.json

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
11
{
2-
"extends": [
3-
"config:base",
4-
":preserveSemverRanges"
5-
],
2+
"extends": ["config:base", ":preserveSemverRanges"],
63
"assigneesFromCodeOwners": true,
74
"rangeStrategy": "replace",
85
"packageRules": [
96
{
10-
"matchPackagePatterns": [
11-
"*"
12-
],
13-
"matchUpdateTypes": [
14-
"minor",
15-
"patch"
16-
],
7+
"matchPackagePatterns": ["*"],
8+
"matchUpdateTypes": ["minor", "patch"],
179
"groupName": "all non-major dependencies",
1810
"groupSlug": "all-minor-patch",
19-
"labels": [
20-
"dependencies"
21-
],
11+
"labels": ["dependencies"],
2212
"automerge": true,
2313
"automergeType": "pr"
2414
},
2515
{
26-
"matchPackagePatterns": [
27-
"*"
28-
],
29-
"matchUpdateTypes": [
30-
"major"
31-
],
16+
"matchPackagePatterns": ["*"],
17+
"matchUpdateTypes": ["major"],
3218
"groupName": "all major dependencies",
3319
"groupSlug": "all-major",
34-
"labels": [
35-
"dependencies",
36-
"breaking"
37-
]
20+
"labels": ["dependencies", "breaking"]
3821
}
3922
]
4023
}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
node_version: ${{ env.node_version }}
4444
pnpm_version: ${{ env.pnpm_version }}
4545

46-
- name: 🏷️ Release
46+
- name: 🏷️ Release
4747
run: |
4848
# ================= 🏷️ Release =================
4949
@@ -65,13 +65,13 @@ jobs:
6565
6666
# push changes
6767
git push origin --follow-tags
68-
68+
6969
tag_name=$(git describe --abbrev=0 --match 'v*')
7070
commit_hash=$(git rev-parse HEAD)
71-
71+
7272
echo "Pushing tag: ${tag_name}"
7373
echo "Pushing commit: ${commit_hash}"
74-
74+
7575
echo "tag_name=${tag_name}" >> "$GITHUB_OUTPUT"
7676
echo "commit_hash=${commit_hash}" >> "$GITHUB_OUTPUT"
7777

lib/index.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { describe, it, expect } from "vitest";
2-
import { LIB_CONTENT } from "./index";
1+
import { describe, it, expect } from 'vitest';
2+
3+
import { LIB_CONTENT } from './index';
34

45
describe('lib/index.ts', () => {
56
it('should have LIB_CONTENT', () => {
7+
expect.assertions(1);
68
expect(LIB_CONTENT).toBe('typescript-lib-template');
79
});
8-
})
10+
});

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const LIB_CONTENT= 'typescript-lib-template'
1+
export const LIB_CONTENT = 'typescript-lib-template';

package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
"name": "@dvcol/typescript-lib-template",
33
"type": "module",
44
"version": "1.0.0",
5+
"packageManager": "pnpm@9.1.0",
56
"description": "<description>",
67
"homepage": "https://github.com/dvcol/typescript-lib-template",
78
"bugs": "https://github.com/dvcol/typescript-lib-template/issues",
8-
"repository": {
9-
"type": "git",
10-
"url": "https://github.com/dvcol/typescript-lib-template.git"
11-
},
129
"keywords": [
1310
"typescript",
1411
"library",
1512
"typescript-lib-template"
1613
],
1714
"license": "MIT",
1815
"author": "dvcol",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/dvcol/typescript-lib-template.git"
19+
},
1920
"engines": {
2021
"node": ">=20",
2122
"pnpm": ">= 8"
@@ -39,8 +40,8 @@
3940
"prepare": "husky install",
4041
"build": "tsup lib/index.ts --format cjs,esm --dts --clean",
4142
"watch": "npm run build -- --watch lib",
42-
"lint": "eslint .",
43-
"lint:fix": "eslint . --fix",
43+
"lint": "eslint lib",
44+
"lint:fix": "eslint lib --fix",
4445
"test:unit": "vitest --run --coverage",
4546
"test:watch": "vitest",
4647
"release": "standard-version",
@@ -50,33 +51,31 @@
5051
"access": "public"
5152
},
5253
"peerDependencies": {},
53-
"dependencies": {
54-
},
54+
"dependencies": {},
5555
"devDependencies": {
5656
"@commitlint/cli": "^19.3.0",
5757
"@commitlint/config-conventional": "^19.2.2",
5858
"@dvcol/eslint-plugin-presets": "^1.3.10",
59-
"@vitest/coverage-v8": "^1.6.0",
6059
"@typescript-eslint/eslint-plugin": "^7.0.0",
6160
"@typescript-eslint/parser": "^7.0.0",
61+
"@vitest/coverage-v8": "^1.6.0",
6262
"eslint": "^8.57.0",
6363
"eslint-config-airbnb-base": "^15.0.0",
6464
"eslint-config-prettier": "^9.1.0",
65-
"eslint-plugin-prettier": "^5.1.3",
6665
"eslint-plugin-eslint-comments": "^3.2.0",
6766
"eslint-plugin-import": "^2.29.1",
6867
"eslint-plugin-jsonc": "^2.15.1",
6968
"eslint-plugin-markdown": "^3.0.1",
69+
"eslint-plugin-prettier": "^5.1.3",
7070
"eslint-plugin-vitest": "^0.4.0",
7171
"eslint-plugin-yml": "^1.14.0",
72-
"jsonc-eslint-parser": "^2.4.0",
7372
"extract-changelog-release": "^1.0.2",
7473
"husky": "^9.0.11",
74+
"jsonc-eslint-parser": "^2.4.0",
7575
"prettier": "^3.2.5",
7676
"standard-version": "^9.5.0",
7777
"tsup": "^8.0.2",
7878
"typescript": "^5.4.5",
7979
"vitest": "^1.6.0"
80-
},
81-
"packageManager": "pnpm@9.1.0"
80+
}
8281
}

0 commit comments

Comments
 (0)