https://github.com/logdna/eslint-config-logdna
Logdna's preferred eslint config to be used across all projects
https://github.com/logdna/eslint-config-logdna
Last synced: 5 months ago
JSON representation
Logdna's preferred eslint config to be used across all projects
- Host: GitHub
- URL: https://github.com/logdna/eslint-config-logdna
- Owner: logdna
- Created: 2020-09-21T14:58:40.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2026-03-12T22:17:58.000Z (5 months ago)
- Last Synced: 2026-03-13T03:50:07.553Z (5 months ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 20
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# eslint-config-logdna
[](https://badge.fury.io/js/eslint-config-logdna)
[](https://github.com/logdna/eslint-config-logdna/actions)
[](https://coveralls.io/github/logdna/eslint-config-logdna?branch=main)
LogDNA's preferred ESLint configuration for Node.js projects. Compatible with ESLint 9+ and 10+.
## Installation
```bash
npm install --save-dev eslint-config-logdna eslint@latest
```
## Usage
### ESLint 9+ (Flat Config Format) - Recommended
Create a file named `eslint.config.js` in your project root:
```javascript
// eslint.config.js
const logdna = require('eslint-config-logdna')
module.exports = [
{
files: ['**/*.js']
, extends: [logdna]
}
, {
// Additional configuration for this project
ignores: ['example/**', 'test/fixtures/**']
}
]
```
### Legacy ESLint < 9
If you are using an older version of ESLint, you can still use the old format:
```json
{
"extends": ["logdna"]
}
```
**Note**: The legacy format is deprecated and will be removed in future versions.
## Migration Guide
See [MIGRATION.md](./doc/MIGRATION.md) for detailed migration instructions from the older `.eslintrc.json` format to the new flat config format.
## Examples
See [EXAMPLES.md](./doc/EXAMPLES.md) for various usage examples including Node.js, ES6+, and ESM projects.
## Extending This Config
See [EXTENDING.md](./doc/EXTENDING.md) for instructions on creating custom configurations based on this one.
## License
MIT