Skip to content

Commit a54d888

Browse files
committed
chore: introduce no-curly-quote and no-irregular-whitespace rules
1 parent 8ca31fc commit a54d888

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

โ€Žeslint.config.mjsโ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ export default [
99
...mark.configs.baseGfm,
1010
files: ['src/content/**/*.md'],
1111
rules: {
12+
'mark/no-curly-quote': [
13+
'error',
14+
{leftSingleQuotationMark: false, rightSingleQuotationMark: false},
15+
],
1216
'mark/no-double-space': 'error',
1317
'mark/no-git-conflict-marker': ['error', {skipCode: false}],
18+
'mark/no-irregular-whitespace': [
19+
'error',
20+
{skipCode: false, skipInlineCode: false},
21+
],
1422
},
1523
},
1624
];

โ€Žsrc/content/community/versioning-policy.mdโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This versioning policy describes our approach to version numbers for packages su
1111

1212
## Stable releases {/*stable-releases*/}
1313

14-
Stable React releases (also known as โ€œLatestโ€ release channel) follow [semantic versioning (semver)](https://semver.org/lang/ko/) principles.
14+
Stable React releases (also known as "Latest" release channel) follow [semantic versioning (semver)](https://semver.org/lang/ko/) principles.
1515

1616
๋ฒ„์ „ ๋ฒˆํ˜ธ **x.y.z**๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
1717

โ€Žsrc/content/reference/react/act.mdโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You might find using `act()` directly a bit too verbose. To avoid some of the bo
2727

2828
### `await act(async actFn)` {/*await-act-async-actfn*/}
2929

30-
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as โ€œunitsโ€ of interaction with a user interface. React provides a helper called `act()` that makes sure all updates related to these โ€œunitsโ€ have been processed and applied to the DOM before you make any assertions.
30+
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called `act()` that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions.
3131

3232
The name `act` comes from the [Arrange-Act-Assert](https://wiki.c2.com/?ArrangeActAssert) pattern.
3333

โ€Žsrc/content/reference/react/useActionState.mdโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ form button {
270270
271271
### ์•ก์…˜์ด ๋” ์ด์ƒ ์ œ์ถœ๋œ ํผ ๋ฐ์ดํ„ฐ๋ฅผ ์ฝ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค {/*my-action-can-no-longer-read-the-submitted-form-data*/}
272272
273-
์•ก์…˜์„ `useActionState`๋กœ ๊ฐ์‹ธ๋ฉด *์ฒซ ๋ฒˆ์งธ ์ธ์ˆ˜*๋กœ โ€œ์ด์ „(๋˜๋Š” ํ˜„์žฌ) Stateโ€๊ฐ€ ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์ผ๋ฐ˜์ ์ธ ํผ ์•ก์…˜๊ณผ ๋‹ฌ๋ฆฌ, ์ œ์ถœ๋œ ํผ ๋ฐ์ดํ„ฐ๋Š” *๋‘ ๋ฒˆ์งธ ์ธ์ˆ˜*์—์„œ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
273+
์•ก์…˜์„ `useActionState`๋กœ ๊ฐ์‹ธ๋ฉด *์ฒซ ๋ฒˆ์งธ ์ธ์ˆ˜*๋กœ "์ด์ „(๋˜๋Š” ํ˜„์žฌ) State"๊ฐ€ ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์ผ๋ฐ˜์ ์ธ ํผ ์•ก์…˜๊ณผ ๋‹ฌ๋ฆฌ, ์ œ์ถœ๋œ ํผ ๋ฐ์ดํ„ฐ๋Š” *๋‘ ๋ฒˆ์งธ ์ธ์ˆ˜*์—์„œ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
274274
275275
```js
276276
function action(currentState, formData) {

0 commit comments

Comments
ย (0)