Skip to content

Commit

Permalink
perf: Change the examples for rule 'No octal literals' .
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu committed Oct 29, 2019
1 parent 4bdaa2f commit b4726d7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
5 changes: 3 additions & 2 deletions RULES.md
Expand Up @@ -889,8 +889,9 @@ your code.
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **No octal escape sequences in string literals.**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-esla.md
Expand Up @@ -870,8 +870,9 @@ La mejor manera de aprender acerca de `standard` es instalarlo darle una prueba
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **Evitar escapado de secuencia octal en cadena de texto literal.**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-fr.md
Expand Up @@ -881,8 +881,9 @@ La meilleure façon d'apprendre plus sur `standard` c'est de l'installer et de l
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **Pas de séquence d'echappement octale dans les chaines de charactères littérales.**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-iteu.md
Expand Up @@ -868,8 +868,9 @@ Il modo migliore per imparare `standard` è quello di installarlo e provarlo sul
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **No all'escape di sequenze di ottali nelle stringhe letterali.**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-ja.md
Expand Up @@ -885,8 +885,9 @@
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **文字列リテラルに8進数エスケープシーケンスは禁止。**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-zhcn.md
Expand Up @@ -873,8 +873,9 @@
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

* **字符串字面量中也不要使用八进制转义字符**
Expand Down
5 changes: 3 additions & 2 deletions docs/RULES-zhtw.md
Expand Up @@ -870,8 +870,9 @@
eslint: [`no-octal`](http://eslint.org/docs/rules/no-octal)

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

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

0 comments on commit b4726d7

Please sign in to comment.