eslint: Forbid unnecessary path segments in imports.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-09-01 13:55:28 -07:00 committed by Tim Abbott
parent 6398bcbd2f
commit c74b1b22c1
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@
"import/first": "error",
"import/newline-after-import": "error",
"import/no-unresolved": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{

View File

@ -1,6 +1,7 @@
import _ from "lodash";
import blueslip from "./../blueslip";
import blueslip from "../blueslip";
import * as google_analytics from "./google-analytics";
import {path_parts} from "./landing-page";