【发布时间】:2019-12-24 21:10:10
【问题描述】:
我试图将require('node-libs-react-native/globals'); 放在文件的最顶部,但是当我保存文件时,它使用 eslint/prettier,它在导入后重新排列。
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { Provider } from 'react-redux';
require('node-libs-react-native/globals'); // <= put this the top.
我可以在 .eslint 文件中配置的任何地方?
【问题讨论】:
标签: react-native eslint prettier