LogDNA's preferred ESLint configuration for Node.js projects. Compatible with ESLint 9+ and 10+.
Requires eslint also
npm install --save-dev eslint-config-logdna@latest eslint@latestCreate 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/**']
}
])See MIGRATION.md for detailed migration instructions from the older .eslintrc.json format to the new flat config format.
See EXAMPLES.md for various usage examples including Node.js, ES6+, and ESM projects.
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!