Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Add disallowVar lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds committed Mar 2, 2020
1 parent 9d0bdb3 commit b1960dd
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 11 deletions.
20 changes: 10 additions & 10 deletions packages/@romejs/codec-source-map/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ export function encodeVLQ(value: number): string {
* failure.
*/
export function decode(charCode: number): number {
var bigA = 65; // 'A'
var bigZ = 90; // 'Z'
const bigA = 65; // 'A'
const bigZ = 90; // 'Z'

var littleA = 97; // 'a'
var littleZ = 122; // 'z'
const littleA = 97; // 'a'
const littleZ = 122; // 'z'

var zero = 48; // '0'
var nine = 57; // '9'
const zero = 48; // '0'
const nine = 57; // '9'

var plus = 43; // '+'
var slash = 47; // '/'
const plus = 43; // '+'
const slash = 47; // '/'

var littleOffset = 26;
var numberOffset = 52;
const littleOffset = 26;
const numberOffset = 52;

// 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
if (bigA <= charCode && charCode <= bigZ) {
Expand Down
Loading

0 comments on commit b1960dd

Please sign in to comment.