Correct indent eslint rule config (#276)

* Change indent rule to correctly lint

* Remove rule again
This commit is contained in:
Daniel Tschinder 2017-01-14 15:11:50 +01:00 committed by GitHub
parent 62d1970f77
commit b918554d73
6 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1,3 @@
/* eslint indent: 0 */
/* eslint max-len: 0 */
// A recursive descent parser operates by defining functions for all

View File

@ -1,5 +1,3 @@
/* eslint indent: 0 */
import { types as tt } from "../tokenizer/types";
import Parser from "./index";

View File

@ -1,4 +1,3 @@
/* eslint indent: 0 */
/* eslint max-len: 0 */
import { types as tt } from "../tokenizer/types";
@ -231,8 +230,8 @@ pp.parseForStatement = function (node) {
let forAwait = false;
if (this.hasPlugin("asyncGenerators") && this.state.inAsync && this.isContextual("await")) {
forAwait = true;
this.next();
forAwait = true;
this.next();
}
this.expect(tt.parenL);

View File

@ -1,4 +1,3 @@
/* eslint indent: 0 */
/* eslint max-len: 0 */
import { types as tt } from "../tokenizer/types";
@ -1081,9 +1080,9 @@ export default function (instance) {
const node = this.startNode();
node.id = this.parseIdentifier();
if (this.isRelational("<")) {
node.typeParameters = this.flowParseTypeParameterInstantiation();
node.typeParameters = this.flowParseTypeParameterInstantiation();
} else {
node.typeParameters = null;
node.typeParameters = null;
}
implemented.push(this.finishNode(node, "ClassImplements"));
} while (this.eat(tt.comma));

View File

@ -1,5 +1,3 @@
/* eslint indent: 0 */
import fromCodePoint from "./fromCodePoint";
import XHTMLEntities from "./xhtml";

View File

@ -1,5 +1,4 @@
/* eslint max-len: 0 */
/* eslint indent: 0 */
import type { TokenType } from "./types";
import { isIdentifierStart, isIdentifierChar, isKeyword } from "../util/identifier";