/replit-tutorials

How to make Replit follow ESLint rules

Learn how to set up Replit to follow ESLint rules with simple steps for cleaner, consistent JavaScript code.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to make Replit follow ESLint rules

To make Replit actually follow your ESLint rules, you need to install ESLint in your Repl, create a real .eslintrc file with the rules you want, and then tell Replit’s editor to use that ESLint configuration. Replit will then show lint errors and warnings directly in the editor. ESLint does NOT work automatically unless you set it up.

 

What You Need to Do

 

The basic idea is: install ESLint, create a config file, and then Replit’s built‑in ESLint integration will pick it up and start enforcing your rules while you code.

  • Replit will only lint if ESLint is installed in your project.
  • Your ESLint rules must live in a config file like .eslintrc.json (or .js, .yaml).
  • Replit does not magically detect React or Airbnb rules; you must install those plugins or configs yourself.

 

Step-by-step: Set Up ESLint in Replit

 

  • Install ESLint
    Open the Shell in Replit and run:
npm install eslint --save-dev
  • Create your ESLint config file
    The simplest way is to let ESLint generate it:
npx eslint --init

This will ask you questions (for example: whether you use modules, React, TypeScript, your style preference, etc.). When it finishes, it will create a real .eslintrc file in your Repl.

  • Example of a simple working .eslintrc.json:
{
  "env": {
    "browser": true,
    "node": true,
    "es2021": true
  },
  "extends": [
    "eslint:recommended"
  ],
  "rules": {
    "semi": ["error", "always"],
    "quotes": ["error", "single"]
  }
}
  • Replit automatically detects the config
    Once this file exists, Replit’s editor will start showing red/yellow lint markers as you type.
  • If your linting does not activate
    Replit sometimes needs a nudge. Reload the browser tab or restart the Repl. ESLint errors should show up in the gutter.

 

Common Gotchas in Replit

 

  • Don’t put ESLint config in package.json if it isn’t working — Replit sometimes ignores it. A standalone .eslintrc file is more reliable.
  • If using React, you must install the React ESLint plugin yourself:
npm install eslint-plugin-react --save-dev
  • If using Airbnb config, install the actual Airbnb package (Replit will not auto-provide it):
npx install-peerdeps --dev eslint-config-airbnb
  • Replit’s “format on save” is Prettier, not ESLint. These are different tools. ESLint rules will still show errors, but formatting might not follow ESLint unless you integrate Prettier+ESLint together.

 

How to Run ESLint Manually

 

Sometimes you want to lint the entire project from the shell:

npx eslint .

This helps you catch issues Replit’s editor didn’t show yet.

 

Final Advice

 

The key is to treat your Repl like a normal Node project: install ESLint locally, create a real config file, and let Replit's built-in ESLint integration pick it up. Once configured, Replit behaves like VS Code — it highlights issues inline and keeps your code consistent with your rules.

Still stuck?
Copy this prompt into ChatGPT and get a clear, personalized explanation.

This prompt helps an AI assistant understand your setup and guide you through the fix step by step, without assuming technical knowledge.

AI AI Prompt

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022