Skip to content

logdna/eslint-config-logdna

Repository files navigation

eslint-config-logdna

All Contributors

LogDNA's preferred ESLint configuration for Node.js projects. Compatible with ESLint 9+ and 10+.

Installation

Requires eslint also

npm install --save-dev eslint-config-logdna@latest eslint@latest

Usage

Create a file named eslint.config.js in your project root:

// eslint.config.js
const {defineConfig} = require('eslint/config')
const logdna = require('eslint-config-logdna')

module.exports = defineConfig([
  {
    files: ['**/*.js']
  , extends: [logdna]
  }
, {
    // Additional configuration for this project
    ignores: ['example/**', 'test/fixtures/**']
  }
])

Migration Guide

See MIGRATION.md for detailed migration instructions from the older .eslintrc.json format to the new flat config format.

Examples

See EXAMPLES.md for various usage examples including Node.js, ES6+, and ESM projects.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Eric Satterwhite

📖 💻 ⚠️ 🚧

Darin Spivey

📖 💻 ⚠️

Mike Del Tito

📖 💻 ⚠️ 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Logdna's preferred eslint config to be used across all projects

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors