Skip to content

Commit

Permalink
Fix unused underscored not caught by ESLint (#25748)
Browse files Browse the repository at this point in the history
  • Loading branch information
WiNloSt committed Oct 3, 2022
1 parent e3fef01 commit 2083161
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"no-var": 1,
"no-unused-vars": [
1,
{ "vars": "all", "args": "none", "varsIgnorePattern": "^_" }
{ "vars": "all", "args": "none", "varsIgnorePattern": "^_.+" }
],
"no-empty": [1, { "allowEmptyCatch": true }],
"curly": [1, "all"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import PropTypes from "prop-types";
import _ from "underscore";

import { useScrollOnMount } from "metabase/hooks/use-scroll-on-mount";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import React from "react";

import cx from "classnames";
import _ from "underscore";
import { color } from "metabase/lib/colors";

import Icon from "metabase/components/Icon";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import _ from "underscore";

export const findCollectionByName = (collections, name) => {
if (!collections || collections.length === 0) {
return null;
Expand Down

0 comments on commit 2083161

Please sign in to comment.