Skip to content

Commit

Permalink
chore: 🤖 apply latest learnings from prettier config (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Apr 3, 2024
1 parent f5362c2 commit eb87904
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 43 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"extends": ["jimmy-guzman", "jimmy-guzman/typescript", "jimmy-guzman/jest"],
"extends": ["jimmy-guzman", "jimmy-guzman/typescript", "jimmy-guzman/vitest"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
"sort-keys": "off",
"jest/no-deprecated-functions": "off"
}
}
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['20']
node: ["20"]

steps:
- name: 🏗 Setup Repository
Expand All @@ -27,6 +27,10 @@ jobs:
commit_check:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: read

steps:
- name: 🏗 Setup Repository
uses: actions/checkout@v4
Expand Down
6 changes: 0 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
CHANGELOG.md
.cache
.reports
.yalc
dist
coverage
pnpm-lock.yaml

10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,12 @@
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://semantic-release.gitbook.io/semantic-release)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square&logo=prettier)](https://github.com/prettier/prettier)

<!-- ![description starts here] -->

> 🍱 another opinionated TypeScript library starter
<!-- ![description ends here] -->

<!-- ![usage starts here] -->

## Usage
## 🛠️ Usage

- [create a `NPM_TOKEN`](https://docs.npmjs.com/about-access-tokens)
- add `NPM_TOKEN` as [repository secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)
- [create codecov account](https://docs.codecov.io/docs/quick-start)
- replace `ts-starter` and `jimmy-guzman`
- remove `--dry-run` from `.github/workflows/release.yml`

<!-- ![usage ends here] -->
4 changes: 1 addition & 3 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"Codecov",
"commitlint",
"commitlintrc",
"comparto",
"corepack",
"dbaeumer",
"deps",
Expand All @@ -25,8 +24,7 @@
"streetsidesoftware",
"typecheck",
"vitest",
"wagoid",
"yalc"
"wagoid"
],
"ignorePaths": [
"node_modules", // this will ignore anything the node_modules directory
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ts-starter",
"version": "0.0.0",
"description": "",
"keywords": [],
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,10 +37,12 @@
"coverage": "vitest run --coverage",
"typecheck": "tsc",
"prepack": "pnpm build && clean-pkg-json",
"prepare": "lefthook install"
"prepare": "is-ci || lefthook install"
},
"prettier": "@jimmy.codes/prettier-config",
"devDependencies": {
"@commitlint/config-conventional": "19.1.0",
"@jimmy.codes/prettier-config": "1.0.1",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "12.0.0",
"@semantic-release/git": "10.0.1",
Expand All @@ -52,6 +55,7 @@
"eslint": "8.57.0",
"eslint-config-jimmy-guzman": "14.1.0",
"gitzy": "5.2.0",
"is-ci": "3.0.1",
"lefthook": "1.6.7",
"pkgroll": "2.0.2",
"prettier": "3.2.5",
Expand Down
99 changes: 99 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { lib } from './index'
import { lib } from "./index";

test('lib', () => {
expect(lib).toBe('')
})
test("lib", () => {
expect(lib).toBe("");
});
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const lib = ''
export const lib = "";
6 changes: 3 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'vitest/config'
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
globals: true,
coverage: {
reporter: ['json', 'text-summary'],
reporter: ["json", "text-summary"],
},
},
})
});

0 comments on commit eb87904

Please sign in to comment.