Skip to content

Commit f4c0ed0

Browse files
committed
chore: update lint-staged to match next docs
1 parent ef3250f commit f4c0ed0

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

.lintstagedrc.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { relative } from 'path'
2+
3+
const buildEslintCommand = (filenames) =>
4+
`next lint --fix --file ${filenames.map((f) => relative(process.cwd(), f)).join(' --file ')}`
5+
6+
const lintStagedConfig = {
7+
'*.{js,jsx,ts,tsx}': [buildEslintCommand],
8+
}
9+
10+
export default lintStagedConfig

app/tech/static-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const stackCollection: TimelineCollectionRecord = {
131131
devtools: [
132132
{
133133
title: 'Neovim + LazyVim',
134-
description: `Everything I need with fraction of CPU/RAM cost of the industry-standard electron counterparts. Configurable and great for remote pairing with LiveShare.`,
134+
description: `Everything I need with fraction of CPU/RAM cost of the industry-standard electron counterparts. All without ever leaving the terminal.`,
135135
imageLink: '/logos/tech/neovim.webp',
136136
},
137137
{
@@ -141,7 +141,7 @@ export const stackCollection: TimelineCollectionRecord = {
141141
},
142142
{
143143
title: 'Ghostty',
144-
description: `Modern terminal that doesn't get in your way, track you, or require login. Tried, true, and stable.`,
144+
description: `Modern terminal emulator with super simple configuration. Ghostty doesn't get in your way, track you, or require a login.`,
145145
imageLink: '/logos/tech/ghostty.webp',
146146
},
147147
{

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
}
1414
},
1515
"lint-staged": {
16-
"!(*app).{ts,tsx}": ["eslint --fix", "pnpm format"],
17-
"app/**/*.{ts,tsx}": ["next lint --fix", "pnpm format"]
16+
"*.{ts,tsx}": ["next lint --fix", "pnpm format"],
17+
"*.md": "prettier --list-different"
1818
},
1919
"scripts": {
2020
"dev": "next dev --port=3000",

0 commit comments

Comments
 (0)