Skip to content

Commit

Permalink
Satisfy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Oct 3, 2020
1 parent 5328e6d commit f5a961b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Expand Up @@ -17,6 +17,7 @@ rules:
no-implicit-globals: error
no-template-curly-in-string: warn
no-unused-labels: 0
no-unused-vars: [error, varsIgnorePattern: '^_']
no-var: error
prefer-const: [warn, destructuring: all]

Expand Down
2 changes: 1 addition & 1 deletion src/tags/yaml-1.1/index.js
Expand Up @@ -17,7 +17,7 @@ const intIdentify = value =>
typeof value === 'bigint' || Number.isInteger(value)

function intResolve(str, offset, radix) {
let sign = str[0]
const sign = str[0]
if (sign === '-' || sign === '+') offset += 1
str = str.substring(offset).replace(/_/g, '')
if (intOptions.asBigInt) {
Expand Down
1 change: 0 additions & 1 deletion src/tags/yaml-1.1/omap.js
@@ -1,4 +1,3 @@
import { YAMLSemanticError } from '../../errors.js'
import { Pair } from '../../ast/Pair.js'
import { Scalar } from '../../ast/Scalar.js'
import { YAMLMap } from '../../ast/YAMLMap.js'
Expand Down
2 changes: 2 additions & 0 deletions src/tags/yaml-1.1/timestamp.js
@@ -1,3 +1,5 @@
/* global BigInt */

import { intOptions } from '../options.js'
import { stringifyNumber } from '../../stringify/stringifyNumber.js'

Expand Down

0 comments on commit f5a961b

Please sign in to comment.