Skip to content

Commit f2081f8

Browse files
committed
style: update formatting/lint configs
1 parent 0d08e9e commit f2081f8

File tree

8 files changed

+277
-164
lines changed

8 files changed

+277
-164
lines changed

2023-08-18/src/slides.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,18 @@ Minimal repro:
232232

233233
```js
234234
require.cache.foo = {
235-
exports: {
236-
bar: 'foobar',
237-
},
235+
exports: {
236+
bar: 'foobar',
237+
},
238238
};
239239

240240
console.log(require('foo'));
241241

242242
try {
243-
console.log(require('foo'));
244-
} catch (error) {
245-
console.error(error);
243+
console.log(require('foo'));
244+
}
245+
catch (error) {
246+
console.error(error);
246247
}
247248

248249
console.log(require('foo'));

2023-11-09/src/slides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ My background:
6060

6161
<!--
6262
- Sidehustle -> extracurricular
63-
-->
63+
-->
6464

6565
---
6666
layout: image-right

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
[![standard-readme compliant][standard-readme-badge]][standard-readme-repo]
44

5-
[standard-readme-badge]:
6-
https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square
5+
[standard-readme-badge]: https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square
76
[standard-readme-repo]: https://github.com/RichardLitt/standard-readme
87

9-
Slides and code for my talks, using [Slidev](https://sli.dev/). Inspired by
10-
<https://github.com/antfu/talks>.
8+
Slides and code for my talks, using [Slidev](https://sli.dev/). Inspired by <https://github.com/antfu/talks>.
119

1210
## Table of Contents
1311

@@ -39,8 +37,7 @@ pnpm build
3937

4038
### 2023
4139

42-
- [Working at a Startup Named after a Math Concept](./2023-11-09/) - Queen's
43-
University
40+
- [Working at a Startup Named after a Math Concept](./2023-11-09/) - Queen's University
4441
- [Running `dcp-client` on Node.js, Deno, and Bun](./2023-08-18/) - Distributive
4542

4643
## Maintainers
@@ -51,8 +48,8 @@ pnpm build
5148

5249
PRs accepted.
5350

54-
Small note: if editing the README, conform to the
55-
[standard-readme](https://github.com/RichardLitt/standard-readme) specification.
51+
Small note: if editing the README, conform to the [standard-readme](https://github.com/RichardLitt/standard-readme)
52+
specification.
5653

5754
## License
5855

eslint.config.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
import antfu from '@antfu/eslint-config'
1+
import antfu from '@antfu/eslint-config';
22

33
export default antfu({
44
jsonc: false,
5-
})
5+
formatters: {
6+
css: true,
7+
markdown: true,
8+
prettierOptions: {
9+
proseWrap: 'always',
10+
},
11+
slidev: {
12+
files: ['*/src/slides.md'],
13+
},
14+
},
15+
rules: {
16+
'style/semi': ['error', 'always'],
17+
},
18+
});

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
"@antfu/eslint-config": "2.15.0",
1717
"@types/node": "20.12.7",
1818
"consola": "3.2.3",
19-
"eslint": "9.0.0",
19+
"eslint": "9.1.0",
20+
"eslint-plugin-format": "0.1.1",
2021
"execa": "8.0.1",
2122
"jiti": "1.21.0",
22-
"playwright-chromium": "1.43.1"
23+
"playwright-chromium": "1.43.1",
24+
"prettier-plugin-slidev": "1.0.5"
2325
},
2426
"packageManager": "[email protected]+sha256.caa915eaae9d9aefccf50ee8aeda25a2f8684d8f9d5c6e367eaf176d97c1f89e"
2527
}

0 commit comments

Comments
 (0)