易于自动修正的导入排序。
易于自动修正的导入排序。
eslint --fix 运行 – 无新工具git diff 友好require
这适用于那些经常使用 eslint --fix (自动修复) 的人,他们希望完全忘记对导入进行排序!import React from "react";
import Button from "../Button";
import styles from "./styles.css";
import type { User } from "../../types";
import { getUser } from "../../api";
import PropTypes from "prop-types";
import classnames from "classnames";
import { truncate, formatNumber } from "../../utils";⬇️
import classnames from "classnames";
import PropTypes from "prop-types";
import React from "react";
import { getUser } from "../../api";
import type { User } from "../../types";
import { formatNumber, truncate } from "../../utils";
import Button from "../Button";
import styles from "./styles.css";[More examples][examples]
暂无开放 Issues,或尚未同步最近议题。