reactjs - 在导入下移动类型声明的 Lint 规则
问题描述
是否有一个 lint 规则(eslint,prettier)用于在反应组件文件(和/或其他文件)中构建/排序内容,如下所示:
Import React from "react";
Other imports ...
Interface SomeInterface = someinterfaceconfig
function Component = () => {
}
export default Component;
所以:
- 进口
- 接口、类型、枚举...
- 常量/函数
- 出口
解决方案
推荐阅读
- c - 如何将值从 c++ 发送到使用 RS232 通信的 Atmega128A?
- php - Codeigniter insert_id 返回零,数据库已经是主数据库并自动递增
- django - 在 django 的 asynchttpconsumer 中发送 http 请求?
- web-accessibility - 升级到 ag grid 版本 23 后的辅助功能问题
- android - 如何在android中将db2日期转换为YYYMMDD
- javascript - Angular 7 应用程序中的 iframe 跨域问题
- python - pybliometrics 无法识别 Scopus API
- python - 如何按顺序检查列表是否是另一个列表的子序列
- css - 如何添加固定宽度的td表
- python - 由于使用“lambda”,无法加载已保存的 Keras 模型