fix linting errors
This commit is contained in:
parent
eadf8ef799
commit
1436753e6d
@ -21,7 +21,7 @@ class CodeGenerator {
|
||||
this.opts = opts;
|
||||
this.ast = ast;
|
||||
|
||||
this.whitespace = new Whitespace(this.tokens, this.comments, this.format);
|
||||
this.whitespace = new Whitespace(this.tokens);
|
||||
this.position = new Position;
|
||||
this.map = new SourceMap(this.position, opts, code);
|
||||
this.buffer = new Buffer(this.position, this.format);
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import sortBy from "lodash/collection/sortBy";
|
||||
|
||||
/**
|
||||
* Returns `i`th number from `base`, continuing from 0 when `max` is reached.
|
||||
* Useful for shifting `for` loop by a fixed number but going over all items.
|
||||
@ -21,7 +19,7 @@ function getLookupIndex(i, base, max) {
|
||||
}
|
||||
|
||||
export default class Whitespace {
|
||||
constructor(tokens, comments) {
|
||||
constructor(tokens) {
|
||||
this.tokens = tokens;
|
||||
this.used = {};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user