Re-enable the max-len ESLint rule. (#5265)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint max-len: 0 */
|
||||
/* eslint max-len: "off" */
|
||||
|
||||
export const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
|
||||
export const FLATTENABLE_KEYS = ["body", "expressions"];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint max-len: 0 */
|
||||
/* eslint max-len: "off" */
|
||||
|
||||
import * as t from "../index";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint max-len: 0 */
|
||||
/* eslint max-len: "off" */
|
||||
|
||||
import defineType, {
|
||||
assertNodeType,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint indent: 0 */
|
||||
|
||||
import { getBindingIdentifiers } from "./retrievers";
|
||||
import esutils from "esutils";
|
||||
import * as t from "./index";
|
||||
@@ -276,7 +274,7 @@ export function isNodesEquivalent(a, b) {
|
||||
}
|
||||
|
||||
if (!isNodesEquivalent(a[field], b[field])) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ describe("converters", function () {
|
||||
assert.deepEqual(t.valueToNode(/abc.+/gm), t.regExpLiteral("abc.+", "gm"));
|
||||
});
|
||||
it("array", function () {
|
||||
assert.deepEqual(t.valueToNode([1, "a"]), t.arrayExpression([t.numericLiteral(1), t.stringLiteral("a")]));
|
||||
assert.deepEqual(t.valueToNode([1, "a"]),
|
||||
t.arrayExpression([t.numericLiteral(1), t.stringLiteral("a")]));
|
||||
});
|
||||
it("object", function () {
|
||||
assert.deepEqual(t.valueToNode({
|
||||
|
||||
Reference in New Issue
Block a user