我正在运行
node_modules/.bin/eslint app.jsx
并且它什么都不返回。我知道页面上有错误。有谁知道发生了什么?我甚至没有在屏幕上收到消息。
如果我跑:
node_modules/.bin/eslint --ext=js --ext=jsx
我会在app.jsx中看到错误。
我只做一个文件的原因是因为我刚刚在create-react-app上使用eslint打开了airbnb,我有很多错误要修复我想慢慢做。
答案 0 :(得分:1)
我猜你的app.jsx在“src”文件夹中,对吗?所以你必须在你的命令中添加它:
File f = f = new File("path\\to\\your\\folder\\with\\files");
File[] files = f.listFiles();
for(File currentFile : files) {
System.out.println(currentFile.getName());
}
尼科