chore: latest prettier

This commit is contained in:
Dmitry Shirokov 2020-09-23 13:10:34 +10:00
parent 5d99fd5252
commit edcfec1eae
No known key found for this signature in database
GPG Key ID: 0D8CF8C72764BA46
6 changed files with 11 additions and 11 deletions

6
package-lock.json generated
View File

@ -11750,9 +11750,9 @@
"dev": true
},
"prettier": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.2.tgz",
"integrity": "sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==",
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz",
"integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==",
"dev": true
},
"pretty-format": {

View File

@ -38,7 +38,7 @@
"@typescript-eslint/parser": "^4.2.0",
"eslint": "^7.9.0",
"jest": "^26.4.2",
"prettier": "^2.0.2",
"prettier": "^2.1.2",
"semantic-release": "^17.1.2",
"ts-jest": "^26.4.0",
"typescript": "^4.0.3"

View File

@ -1,5 +1,5 @@
import { Context, Recogniser } from '.';
import match, { Match } from '../match'
import match, { Match } from '../match';
/**
* This is a superclass for the individual detectors for

View File

@ -1,5 +1,5 @@
import { Context, Recogniser } from '.';
import match, { Match } from '../match'
import match, { Match } from '../match';
/**
* Binary search implementation (recursive)
@ -108,7 +108,7 @@ class mbcs implements Recogniser {
const iter = new IteratedChar();
detectBlock: {
for (iter.reset(); this.nextChar(iter, det);) {
for (iter.reset(); this.nextChar(iter, det); ) {
totalCharCount++;
if (iter.error) {
badCharCount++;
@ -275,7 +275,7 @@ export class sjis extends mbcs {
iter.index = iter.nextIndex;
iter.error = false;
const firstByte = iter.charValue = iter.nextByte(det);
const firstByte = (iter.charValue = iter.nextByte(det));
if (firstByte < 0) return false;
if (firstByte <= 0x7f || (firstByte > 0xa0 && firstByte <= 0xdf))

View File

@ -69,7 +69,7 @@ class UTF_32 implements Recogniser, WithGetChar {
numInvalid = 0,
hasBOM = false,
confidence = 0;
const limit = (det.fRawLength / 4) * 4
const limit = (det.fRawLength / 4) * 4;
const input = det.fRawInput;
if (limit == 0) {

View File

@ -12,7 +12,7 @@ export default class Utf8 implements Recogniser {
numInvalid = 0,
trailBytes = 0,
confidence;
const input = det.fRawInput
const input = det.fRawInput;
if (
det.fRawLength >= 3 &&
@ -42,7 +42,7 @@ export default class Utf8 implements Recogniser {
}
// Verify that we've got the right number of trail bytes in the sequence
for (; ;) {
for (;;) {
i++;
if (i >= det.fRawLength) break;