I found the Perfectionist plugin to match my style and use it on every project. Answer from fvilers on reddit.com
🌐
GitHub
github.com › dustinspecker › awesome-eslint
GitHub - dustinspecker/awesome-eslint: A list of awesome ESLint plugins, configs, etc. · GitHub
Sheriff - Comprehensive and highly opinionated Eslint configuration. Typescript oriented. Node.js Standard Style - Node.js core config.
Starred by 4.7K users
Forked by 245 users
🌐
DEV Community
dev.to › drsimplegraffiti › eslint-configuration-for-node-project-275l
Eslint configuration for Node Project - DEV Community
October 21, 2021 - 🥦 I am running a node app, choose node. 🥦 I used a popular style guide. 🥦I chose standard over Airbnb and Google. Choose the one that suits your app best. 🥦 For my config file format, I went with JavaScript. 🥦 Yes, i'd love to install with npm 🥦 When installation is complete you should have .eslintrc.js 🥦 Eslint config settings and rules
🌐
ESLint
eslint.org › docs › latest › use › getting-started
Getting Started with ESLint - ESLint - Pluggable JavaScript Linter
(If you are using an official Node.js distribution, SSL is always built in.) If you use ESLint’s TypeScript type definitions, TypeScript 5.3 or later is required. You can install and configure ESLint using this command:
🌐
npm
npmjs.com › package › eslint-config-recommended
eslint-config-recommended - npm
Latest version: 4.1.0, last published: 6 years ago. Start using eslint-config-recommended in your project by running `npm i eslint-config-recommended`. There are 29 other projects ...
      » npm install eslint-config-recommended
    
Published   May 29, 2020
Version   4.1.0
Author   kunalgolani@gmail.com
🌐
npm
npmjs.com › package › eslint-config-node
eslint-config-node - npm
Pluggable eslint config for Node.js that you can import, extend and override. Latest version: 4.1.0, last published: 5 years ago. Start using eslint-config-node in your project by running `npm i eslint-config-node`. There are 21 other projects in the npm registry using eslint-config-node.
      » npm install eslint-config-node
    
Published   May 29, 2020
Version   4.1.0
Author   kunalgolani@gmail.com
🌐
GitHub
gist.github.com › leny › 064f18f8924d5b172c7d
ESLint config file for node.js + ES6 projects. · GitHub
ESLint config file for node.js + ES6 projects. GitHub Gist: instantly share code, notes, and snippets.
🌐
Medium
medium.com › geekculture › eslint-with-node-js-in-simple-words-cee0a0cf9167
Eslint with Node JS in Simple Words | by Ibrahim AlRayyan | Geek Culture | Medium
September 1, 2021 - Let’s generate our .eslintrc.json file! Open your terminal on the project root folder and hit this command: > npx eslint --init or > yarn run eslint --init · This command promotes you to multiple options, choose the following options: To check syntax and find problems · JavaScript modules > commonjs · Does your project use TypeScript No/Yes In my case, I am not using TypeScript > No · Where does the code run? > Node · What format of the config file?
Find elsewhere
Top answer
1 of 5
30

1) Add the following modules to your devDependencies using:

npm install --save-dev eslint
npm install --save-dev eslint-config-airbnb-base
npm install --save-dev eslint-plugin-import

2) Add an eslintConfig section to your package.json:

"eslintConfig": {
    "extends": "airbnb-base",
    "env": {
        "es6": true,
        "browser": true
    },
    "rules": {
        "brace-style": [
            "error",
            "stroustrup"
        ],
        "comma-dangle": [
            "error",
            "never"
        ],
        "no-unused-vars": [
            "warn"
        ],
        "no-var": [
            "off"
        ],
        "one-var": [
            "off"
        ]
    }
}

3) Visit eslint.org/docs/rules, search for the warnings you want to tweak and add them to the eslintConfig above.

4) Delete the .eslintrc file in the root of your project.

5) Restart your IDE

2 of 5
4

Install eslint package locally to your project.

$yarn add eslint --dev

Ideally one can generate configuration file .eslintrc through below command, unfortunately it installs wrong versions of peerDependencies resulting in weired linting errors.

$./node_modules/.bin/eslint --init

Easier way to fix the version of peerDependencies issue, use below command and install(I suggest you to install packages related to jsx and react though you may not doing any stuff related to React) corresponding version of the peerDependencies along with eslint-config-airbnb

$npm info "eslint-config-airbnb@latest" peerDependencies

Edit .eslintrc file with below content

{
  "extends": "airbnb",
  "plugins": [
    "react",
    "jsx-a11y",
    "import"
  ],
  "rules": {
  },
  "env": {
  }
}

*Note: Please edit eslintrc file depending on your coding rules, environment you follow. Refer developer-guide

🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
In this case, ESLint does not search for configuration files and instead uses some-other-file.js. For Deno and Bun, TypeScript configuration files are natively supported; for Node.js, you must install the optional dev dependency jiti in version 2.2.0 or later in your project (this dependency ...
🌐
Maxim Orlov
maximorlov.com › eslint-setup-nodejs-detailed-guide-beginners
ESLint Setup in Node.js: A Detailed Guide - Maxim Orlov
Deselect "Browser" and select "Node". What format do you want your config file to be in? - Pick "JavaScript". JSON configurations lack comment functionality, and YAML demands familiarity with its syntax. Would you like to install them now? - Depending on your earlier choices the dependencies will vary. At a minimum, the setup wizard will introduce eslint@latest to your project.
🌐
GitHub
github.com › standard › eslint-config-standard
GitHub - standard/eslint-config-standard: ESLint Config for JavaScript Standard Style · GitHub
Example eslint.config.js: const standard = require('eslint-config-standard') module.exports = [ standard, { // your overrides here } ] The easiest way to use JavaScript Standard Style to check your code is to use the standard package. This comes with a global Node command line program (standard) that you can run or add to your npm test script to quickly check your style.
Starred by 2.7K users
Forked by 552 users
Languages   TypeScript 97.2% | Shell 1.6% | JavaScript 1.2%
🌐
DEV Community
dev.to › ronak_navadia › setting-up-eslint-and-prettier-in-a-nodejs-project-a-complete-guide-4a9d
Setting Up ESLint and Prettier in a Node.js Project: A Complete Guide. - DEV Community
May 11, 2025 - eslint: The main linting tool that checks your code for problems prettier: The code formatter that makes your code look consistent eslint-config-prettier: Turns off ESLint rules that might conflict with Prettier eslint-plugin-import: Helps ESLint check import/export statements (super helpful!) globals: Provides global variables for different environments (like Node.js)
🌐
GitHub
gist.github.com › LucasMallmann › de878fe57c0f72271020af46fa915945
Eslint and Prettier configuration for NodeJS and Express projects · GitHub
yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D · yarn eslint --init · .eslintrc.js · module.exports = { env: { es6: true, node: true }, extends: ['airbnb-base', 'prettier'], plugins: ['prettier'], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly' }, parserOptions: { ecmaVersion: 2018, sourceType: 'module' }, rules: { 'prettier/prettier': 'error', 'class-methods-use-this': 'off', 'no-param-reassign': 'off', camelcase: 'off', 'no-unused-vars': ['error', { argsIgnorePattern: 'next' }] } }; .prettierrc ·
🌐
ESLint
eslint.org › docs › latest › integrate › integration-tutorial
Integrate with the Node.js API Tutorial - ESLint - Pluggable JavaScript Linter
This tutorial assumes you are familiar with JavaScript and Node.js. To follow this tutorial, you’ll need to have the following: ... Import the ESLint class from the eslint package and create a new instance. You can customize the ESLint configuration by passing an options object to the ESLint constructor:
🌐
npm
npmjs.com › package › @asd14 › eslint-config
@asd14/eslint-config - npm
ASD14's reusable ESLint config. Latest version: 14.4.0, last published: 2 days ago. Start using @asd14/eslint-config in your project by running `npm i @asd14/eslint-config`. There are 0 other projects in the npm registry using @asd14/eslint-config.
      » npm install @asd14/eslint-config
    
Published   Sep 17, 2025
Version   14.4.0
🌐
Reddit
reddit.com › r/node › eslint setup in node.js: a detailed guide
r/node on Reddit: ESLint Setup in Node.js: A Detailed Guide
October 12, 2023 - Discuss Node.js, JavaScript, TypeScript, and anything else in the Node.js ecosystem! ... "How would you like to use ESLint? - Select the second option: "To check syntax and find problems". ESLint can also enforce a coding style but for that, I recommend using Prettier instead."
🌐
DEV Community
dev.to › devland › set-up-a-nodejs-app-with-eslint-and-prettier-4i7p
Set up a Node.js App with ESLint and Prettier - DEV Community
December 19, 2023 - Here, we use the recommended rules of ESLint and the rules defined by the eslint-config-prettier package. This package turns off all ESLint rules that are unnecessary or might conflict with Prettier. The env property defines which kind of environment your code will run in. Here, it is a Node.js then we set node property to true.
🌐
GitHub
github.com › eslint › eslint › discussions › 18377
Add more comprehensive examples of best practise eslint.config.js's for v9 migration · eslint/eslint · Discussion #18377
So I just updated my eslint to v9 and with it the default configuration file was changed to eslint.config.js · As someone who hasn't known about the configuration change at all, it was quite painful to realize how big of a change this major version update became. It wasn't immediately obvious where to find the new link for migrating https://eslint.org/docs/latest/use/configure/migration-guide and even from there reading such a huge article started to feel quite tedious as this was not what I wanted in the first place.
Author   eslint
🌐
Medium
medium.com › @sindhujad6 › setting-up-eslint-and-prettier-in-a-node-js-project-f2577ee2126f
Setting Up ESLint and Prettier in a Node.js Project | by Sindhu | Medium
June 26, 2024 - This guide will walk you through the steps to set up ESLint and Prettier in a Node.js project. ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. It helps to enforce coding standards and detect syntax errors, potential bugs, and code that doesn’t adhere to best practices.