TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Can someone tell me how to get eslint working properly?

1 点作者 itsevrgrn大约 7 年前
I have watched numerous videos on youtube and I just can't figure this out. Can you tell me how to delete any linters I have made by improperly setting it up and get it working with the airbnb configuration / with prettier on my mac?

1 comment

fiiv大约 7 年前
First, install eslint. Then you probably want to add a plugin to your editor that shows it as you&#x27;re working in your code. All the popular editors have plugins for this, have a look.<p>Then you need to set a config for your project, typically through a .eslintrc.js file in the root of your project. There you specify the airbnb config.<p>Keep in mind, if you do not use JSX you will want the airbnb base config.
评论 #17056439 未加载