Skip to content

Commit 60dcf28

Browse files
authored
General translation (docschina#20)
* ## Options => ## 选项 * For example, with * => 例如,使用 *: * The following patterns are considered violations: 以下模式被视为违规: * The following patterns are *not* considered violations: 以下模式*不*被视为违规: * ## Optional secondary options => ## 可选的辅助选项 * Given: => 给定: * CLI Autofixable
1 parent d4b792d commit 60dcf28

File tree

157 files changed

+1113
-1113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1113
-1113
lines changed

lib/rules/at-rule-blacklist/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Specify a blacklist of disallowed at-rules.
88
* At-rules like this */
99
```
1010

11-
## Options
11+
## 选项
1212

1313
`array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`
1414

15-
Given:
15+
给定:
1616

1717
```js
1818
["extend", "keyframes"]
1919
```
2020

21-
The following patterns are considered violations:
21+
以下模式被视为违规:
2222

2323
```css
2424
a { @extend placeholder; }
@@ -38,7 +38,7 @@ a { @extend placeholder; }
3838
}
3939
```
4040

41-
The following patterns are *not* considered violations:
41+
以下模式**被视为违规:
4242

4343
```css
4444
@import "path/to/file.css";

lib/rules/at-rule-empty-line-before/README.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ This rule ignores:
1515
- at-rules that are the very first node in the source
1616
- `@import` in Less.
1717

18-
The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule. We recommend to enable [`indentation`](../indentation/README.md) rule for better autofixing results with this rule.
18+
[命令行](../../../docs/user-guide/cli.md#自动修复错误)中的 `--fix` 选项可以自动修复此规则报告的所有问题。 We recommend to enable [`indentation`](../indentation/README.md) rule for better autofixing results with this rule.
1919

20-
## Options
20+
## 选项
2121

2222
`string`: `"always"|"never"`
2323

2424
### `"always"`
2525

2626
There *must always* be an empty line before at-rules.
2727

28-
The following patterns are considered violations:
28+
以下模式被视为违规:
2929

3030
```css
3131
a {} @media {}
@@ -36,7 +36,7 @@ a {}
3636
@media {}
3737
```
3838

39-
The following patterns are *not* considered violations:
39+
以下模式**被视为违规:
4040

4141
```css
4242
a {}
@@ -48,15 +48,15 @@ a {}
4848

4949
There *must never* be an empty line before at-rules.
5050

51-
The following patterns are considered violations:
51+
以下模式被视为违规:
5252

5353
```css
5454
a {}
5555

5656
@media {}
5757
```
5858

59-
The following patterns are *not* considered violations:
59+
以下模式**被视为违规:
6060

6161
```css
6262
a {} @media {}
@@ -67,7 +67,7 @@ a {}
6767
@media {}
6868
```
6969

70-
## Optional secondary options
70+
## 可选的辅助选项
7171

7272
### `except: ["after-same-name", "inside-block", "blockless-after-same-name-blockless", "blockless-after-blockless", "first-nested"]`
7373

@@ -77,9 +77,9 @@ Reverse the primary option for at-rules that follow another at-rule with the sam
7777

7878
This means that you can group your at-rules by name.
7979

80-
For example, with `"always"`:
80+
例如,使用 `"always"`
8181

82-
The following patterns are *not* considered violations:
82+
以下模式**被视为违规:
8383

8484
```css
8585
@charset "UTF-8";
@@ -106,9 +106,9 @@ a {
106106

107107
Reverse the primary option for at-rules that are nested.
108108

109-
For example, with `"always"`:
109+
例如,使用 `"always"`
110110

111-
The following patterns are considered violations:
111+
以下模式被视为违规:
112112

113113
```css
114114
a {
@@ -124,7 +124,7 @@ b {
124124
}
125125
```
126126

127-
The following patterns are *not* considered violations:
127+
以下模式**被视为违规:
128128

129129
```css
130130
a {
@@ -146,9 +146,9 @@ This means that you can group your blockless at-rules by name.
146146

147147
Shared-line comments do not affect this option.
148148

149-
For example, with `"always"`:
149+
例如,使用 `"always"`
150150

151-
The following patterns are *not* considered violations:
151+
以下模式**被视为违规:
152152

153153
```css
154154
@charset "UTF-8";
@@ -181,9 +181,9 @@ Reverse the primary option for at-rules within a blockless group.
181181

182182
Shared-line comments do not affect this option.
183183

184-
For example, with `"always"`:
184+
例如,使用 `"always"`
185185

186-
The following patterns are considered violations:
186+
以下模式被视为违规:
187187

188188
```css
189189
@import url(x.css);
@@ -193,7 +193,7 @@ The following patterns are considered violations:
193193
@media print {}
194194
```
195195

196-
The following patterns are *not* considered violations:
196+
以下模式**被视为违规:
197197

198198
```css
199199
@import url(x.css);
@@ -213,9 +213,9 @@ The following patterns are *not* considered violations:
213213

214214
Reverse the primary option for at-rules that are nested and the first child of their parent node.
215215

216-
For example, with `"always"`:
216+
例如,使用 `"always"`
217217

218-
The following patterns are considered violations:
218+
以下模式被视为违规:
219219

220220
```css
221221
a {
@@ -230,7 +230,7 @@ b {
230230
}
231231
```
232232

233-
The following patterns are *not* considered violations:
233+
以下模式**被视为违规:
234234

235235
```css
236236
a {
@@ -253,7 +253,7 @@ Ignore at-rules that come after a comment.
253253

254254
Shared-line comments do not trigger this option.
255255

256-
The following patterns are *not* considered violations:
256+
以下模式**被视为违规:
257257

258258
```css
259259
/* comment */
@@ -276,9 +276,9 @@ The following patterns are *not* considered violations:
276276

277277
Ignore at-rules that are nested and the first child of their parent node.
278278

279-
For example, with `"always"`:
279+
例如,使用 `"always"`
280280

281-
The following patterns are *not* considered violations:
281+
以下模式**被视为违规:
282282

283283
```css
284284
@supports {
@@ -292,9 +292,9 @@ The following patterns are *not* considered violations:
292292

293293
Ignore at-rules that are inside a declaration block.
294294

295-
For example, with `"always"`:
295+
例如,使用 `"always"`
296296

297-
The following patterns are *not* considered violations:
297+
以下模式**被视为违规:
298298

299299
```css
300300
a {
@@ -326,9 +326,9 @@ Ignore blockless at-rules that follow another blockless at-rule with the same na
326326

327327
This means that you can group your blockless at-rules by name.
328328

329-
For example, with `"always"`:
329+
例如,使用 `"always"`
330330

331-
The following patterns are *not* considered violations:
331+
以下模式**被视为违规:
332332

333333
```css
334334

@@ -353,9 +353,9 @@ a {
353353

354354
Ignore blockless at-rules that follow another blockless at-rule.
355355

356-
For example, with `"always"`:
356+
例如,使用 `"always"`
357357

358-
The following patterns are *not* considered violations:
358+
以下模式**被视为违规:
359359

360360
```css
361361
@import url(x.css);
@@ -378,13 +378,13 @@ Ignore specified at-rules.
378378

379379
For example, with `"always"`.
380380

381-
Given:
381+
给定:
382382

383383
```js
384384
["import"]
385385
```
386386

387-
The following patterns are *not* considered violations:
387+
以下模式**被视为违规:
388388

389389
```css
390390
@charset "UTF-8";

lib/rules/at-rule-name-case/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Specify lowercase or uppercase for at-rules names.
1010

1111
Only lowercase at-rule names are valid in SCSS.
1212

13-
The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix some of the problems reported by this rule.
13+
[命令行](../../../docs/user-guide/cli.md#自动修复错误)中的 `--fix` 选项可以自动修复此规则报告的一些问题。
1414

15-
## Options
15+
## 选项
1616

1717
`string`: `"lower"|"upper"`
1818

1919
### `"lower"`
2020

21-
The following patterns are considered violations:
21+
以下模式被视为违规:
2222

2323
```css
2424
@Charset 'UTF-8';
@@ -44,7 +44,7 @@ The following patterns are considered violations:
4444
@MEDIA (min-width: 50em) {}
4545
```
4646

47-
The following patterns are *not* considered violations:
47+
以下模式**被视为违规:
4848

4949
```css
5050
@charset 'UTF-8';
@@ -56,7 +56,7 @@ The following patterns are *not* considered violations:
5656

5757
### `"upper"`
5858

59-
The following patterns are considered violations:
59+
以下模式被视为违规:
6060

6161
```css
6262
@Charset 'UTF-8';
@@ -82,7 +82,7 @@ The following patterns are considered violations:
8282
@media (min-width: 50em) {}
8383
```
8484

85-
The following patterns are *not* considered violations:
85+
以下模式**被视为违规:
8686

8787
```css
8888
@CHARSET 'UTF-8';

lib/rules/at-rule-name-newline-after/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Require a newline after at-rule names.
99
* The newline after this at-rule name */
1010
```
1111

12-
## Options
12+
## 选项
1313

1414
`string`: `"always"|"always-multi-line"`
1515

1616
### `"always"`
1717

1818
There *must always* be a newline after at-rule names.
1919

20-
The following patterns are considered violations:
20+
以下模式被视为违规:
2121

2222
```css
2323
@charset "UTF-8";
@@ -28,7 +28,7 @@ The following patterns are considered violations:
2828
(orientation: landscape) {}
2929
```
3030

31-
The following patterns are *not* considered violations:
31+
以下模式**被视为违规:
3232

3333
```css
3434
@charset
@@ -56,7 +56,7 @@ The following patterns are *not* considered violations:
5656

5757
There *must always* be a newline after at-rule names in at-rules with multi-line parameters.
5858

59-
The following patterns are considered violations:
59+
以下模式被视为违规:
6060

6161
```css
6262
@import "x.css" screen and
@@ -68,7 +68,7 @@ The following patterns are considered violations:
6868
(orientation: landscape) {}
6969
```
7070

71-
The following patterns are *not* considered violations:
71+
以下模式**被视为违规:
7272

7373
```css
7474
@charset "UTF-8";

lib/rules/at-rule-name-space-after/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Require a single space after at-rule names.
88
* The space after at-rule names */
99
```
1010

11-
The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
11+
[命令行](../../../docs/user-guide/cli.md#自动修复错误)中的 `--fix` 选项可以自动修复此规则报告的所有问题。
1212

13-
## Options
13+
## 选项
1414

1515
`string`: `"always"|"always-single-line"`
1616

1717
### `"always"`
1818

1919
There *must always* be a single space after at-rule names.
2020

21-
The following patterns are considered violations:
21+
以下模式被视为违规:
2222

2323
```css
2424
@charset"UTF-8";
@@ -37,7 +37,7 @@ The following patterns are considered violations:
3737
(min-width: 700px) {}
3838
```
3939

40-
The following patterns are *not* considered violations:
40+
以下模式**被视为违规:
4141

4242
```css
4343
@charset "UTF-8";
@@ -55,7 +55,7 @@ The following patterns are *not* considered violations:
5555

5656
There *must always* be a single space after at-rule names in single-line declaration blocks.
5757

58-
The following patterns are considered violations:
58+
以下模式被视为违规:
5959

6060
```css
6161
@charset"UTF-8";
@@ -69,7 +69,7 @@ The following patterns are considered violations:
6969
@media (min-width: 700px) {}
7070
```
7171

72-
The following patterns are *not* considered violations:
72+
以下模式**被视为违规:
7373

7474
```css
7575
@charset "UTF-8";

0 commit comments

Comments
 (0)