Skip to content

Commit 5682018

Browse files
authored
chore: resolve linting rules | let & const (#281) (#282)
* resolve linting rules | let & const * use var for iteration * use var in for-of and for-in iteration
1 parent ffbbd6b commit 5682018

File tree

3 files changed

+115
-102
lines changed

3 files changed

+115
-102
lines changed

bench.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ const FJS = require('.')
6767
const stringify = FJS(schema)
6868
const stringifyArray = FJS(arraySchema)
6969
const stringifyString = FJS({ type: 'string' })
70-
var str = ''
70+
let str = ''
7171

72+
// eslint-disable-next-line
7273
for (var i = 0; i < 10000; i++) {
7374
str += i
7475
if (i % 100 === 0) {

0 commit comments

Comments
 (0)