Package detail

@newrelic/eslint-config

newrelic61.3kApache-2.00.5.0

Eslint ruleset for New Relic Node.js agent

eslint, linting

readme

<picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Community_Plus.png"><source media="(prefers-color-scheme: light)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Plus.png">New Relic Open Source community plus project banner.</picture>

New Relic Eslint Config

Base eslint configuration for New Relic Node.js agent team.

Installation

npm install --save-dev @newrelic/eslint-config eslint

Getting Started

Add the following to your eslint.config.js:

'use strict'

const sharedConfig = require('@newrelic/eslint-config')

module.exports = [
  ...sharedConfig.recommended
]

That should be all you need to do for a simple project. However, some projects have requirements that go beyond the baseline. In order to support such projects, all of the internal configuration and plugins are exported:

  • configs: An object where the keys are descriptive names of eslint configuration objects, and the values are those configuration objects.
  • plugins: An object where the keys are plugin names, and the values are those plugins.
  • recommended: An array of the baseline configurations.

Support

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here.

Contribute

We encourage your contributions to improve [project name]! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.

If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at opensource@newrelic.com.

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

If you would like to contribute to this project, review these guidelines.

License

New Relic Eslint Config is licensed under the Apache 2.0 License.

changelog

v0.5.0 (2025-01-08)

Features

Miscellaneous chores

  • Removed lockfile and added .npmrc (#34) (c578002)

Continuous integration

  • Removed use_new_release input from prepare release workflow (#27) (115ac47)
  • Updated CI process for releases (#26) (861d983)

v0.4.0 (2024-01-02)

  • Set new baseline ECMAScript version
  • Update dependencies
  • Bumps semver from 6.3.0 to 6.3.1.
  • Bumps word-wrap from 1.2.3 to 1.2.5.
  • Updated README links to point to new forum link due to repolinter ruleset change
  • Update README header image to latest OSS office required images

v0.3.0 (2023-02-07)

v0.2.0 (2022-10-04)

  • Updated eslint to 8.x.

v0.1.0 (2022-09-19)

  • Added overrides to disable the ESM rules of no unpublished or extraneous import.

v0.0.4 (2022-01-05)

  • Added workflow to automatically add issues/Prs to Node.js Engineering Board

  • Added CHANGELOG.md to track this file, so meta.

  • Added workflow to automatically prepare releases.

v0.0.3 (2021-09-09):

  • Added prefer-const and no-var rules

v0.0.2 (2021-08-17):

  • Initial release of shared eslint rules for the Node.js Agent Team