Skip to content

Commit

Permalink
perf: make the rule 'No octal literals' more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu committed Oct 29, 2019
1 parent f5d758e commit 4bdaa2f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion RULES.md
Expand Up @@ -890,7 +890,7 @@ your code.

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **No octal escape sequences in string literals.**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-esla.md
Expand Up @@ -871,7 +871,7 @@ La mejor manera de aprender acerca de `standard` es instalarlo darle una prueba

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **Evitar escapado de secuencia octal en cadena de texto literal.**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-fr.md
Expand Up @@ -882,7 +882,7 @@ La meilleure façon d'apprendre plus sur `standard` c'est de l'installer et de l

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **Pas de séquence d'echappement octale dans les chaines de charactères littérales.**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-iteu.md
Expand Up @@ -869,7 +869,7 @@ Il modo migliore per imparare `standard` è quello di installarlo e provarlo sul

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **No all'escape di sequenze di ottali nelle stringhe letterali.**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-ja.md
Expand Up @@ -886,7 +886,7 @@

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **文字列リテラルに8進数エスケープシーケンスは禁止。**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-kokr.md
Expand Up @@ -872,7 +872,7 @@

```js
const num = 042 // ✗ 피하세요
const num = '042' // ✓ 좋아요
const num = 34 // ✓ 좋아요
```

* **문자열 리터럴에는 8 진수 이스케이프 시퀀스가 없습니다.**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-zhcn.md
Expand Up @@ -874,7 +874,7 @@

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **字符串字面量中也不要使用八进制转义字符**
Expand Down
2 changes: 1 addition & 1 deletion docs/RULES-zhtw.md
Expand Up @@ -871,7 +871,7 @@

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const num = 34 // ✓ ok
```

* **字串中不使用八進位的跳脫序列。**
Expand Down

0 comments on commit 4bdaa2f

Please sign in to comment.