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

Fix warnings for var usage #4456

Merged
merged 1 commit into from Oct 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/shared/SearchInput.js
Expand Up @@ -6,7 +6,7 @@ import CloseButton from "./Button/Close";
import "./SearchInput.css";

const arrowBtn = (onClick, type, className, tooltip) => {
var props = {
const props = {
onClick,
type,
className,
Expand Down
8 changes: 4 additions & 4 deletions src/workers/parser/tests/scopes.spec.js
Expand Up @@ -13,7 +13,7 @@ describe("scopes", () => {
column: 2
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);
expect(vars.map(v => v.name)).toEqual(["n"]);
expect(vars[0].references[0].node.loc.start).toEqual({
column: 4,
Expand All @@ -27,7 +27,7 @@ describe("scopes", () => {
column: 5
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);

expect(vars.map(v => v.name)).toEqual(["n"]);
expect(vars[0].references[0].node.loc.start).toEqual({
Expand All @@ -42,7 +42,7 @@ describe("scopes", () => {
column: 13
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);

expect(vars.map(v => v.name)).toEqual(["x"]);
});
Expand All @@ -55,7 +55,7 @@ describe("scopes", () => {
column: 5
});

var vars = getVariablesInScope(scope);
const vars = getVariablesInScope(scope);

expect(vars).toEqual([
"this",
Expand Down