npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-config-trendmicro

v4.0.0

Published

Trend Micro's ESLint config.

Downloads

4,573

Readme

eslint-config-trendmicro npm version build status

NPM

This package provides an ESLint flat config as an extensible shared configuration.

Note: v4+ requires ESLint v9 and uses the flat config format (eslint.config.js). For ESLint v7/v8 with .eslintrc, use v3.x.

Requirements

  • Node.js >= 20
  • ESLint >= 9

Usage

  1. Install the latest version of eslint-config-trendmicro:
npm install --save-dev eslint-config-trendmicro@latest
  1. Install the required peer dependencies:
npm install --save-dev eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
  1. Create an eslint.config.js (or eslint.config.mjs) in your project root:

ESM (eslint.config.js with "type": "module" in package.json, or eslint.config.mjs):

import trendmicroConfig from 'eslint-config-trendmicro';

export default [
  ...trendmicroConfig,
  {
    // your project-specific overrides
    rules: {},
  },
];

CommonJS (eslint.config.cjs):

const trendmicroConfig = require('eslint-config-trendmicro');

module.exports = [
  ...trendmicroConfig,
  {
    // your project-specific overrides
    rules: {},
  },
];

Customizing Language Options

You can override languageOptions for your environment:

import trendmicroConfig from 'eslint-config-trendmicro';
import globals from 'globals';

export default [
  ...trendmicroConfig,
  {
    languageOptions: {
      globals: {
        ...globals.browser,
        ...globals.node,
      },
    },
    rules: {
      // your overrides
    },
  },
];

Using with a Custom Parser (e.g. Babel)

import trendmicroConfig from 'eslint-config-trendmicro';
import babelParser from '@babel/eslint-parser';

export default [
  ...trendmicroConfig,
  {
    languageOptions: {
      parser: babelParser,
      parserOptions: {
        requireConfigFile: false,
        babelOptions: {
          presets: ['@babel/preset-react'],
        },
      },
    },
  },
];

Migrating from v3.x (ESLint v7/v8)

Replace your .eslintrc / .eslintrc.json with an eslint.config.js:

Before (v3.x, .eslintrc):

{
  "extends": "trendmicro",
  "parser": "@babel/eslint-parser",
  "env": {
    "browser": true,
    "node": true
  },
  "plugins": ["@babel"],
  "rules": {}
}

After (v4.x, eslint.config.js):

import trendmicroConfig from 'eslint-config-trendmicro';
import globals from 'globals';

export default [
  ...trendmicroConfig,
  {
    languageOptions: {
      globals: {
        ...globals.browser,
        ...globals.node,
      },
    },
    rules: {},
  },
];