Trend Micro's official ESLint flat config, version 4.4.1, requiring Node >=20 and ESLint >=9. It provides a shareable configuration for React projects with support for JSX accessibility, import ordering, and custom parsers like Babel. Since v4.0.0, it uses the flat config format (eslint.config.js) exclusively, breaking compatibility with .eslintrc files used in v3.x. The config enforces strict stylistic rules via @stylistic/eslint-plugin and includes presets for React hooks. Peer dependencies include @stylistic/eslint-plugin, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react, and eslint-plugin-react-hooks. Key differentiator: a maintained, opinionated config backed by Trend Micro's frontend team with regular patch and minor releases.
npm install eslint-config-trendmicroNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install peer dependencies and create an eslint.config.mjs with trendmicro config and custom rules.
Migrate to eslint.config.js using flat config. See README migration guide.
Upgrade to v4+ and migrate to flat config, or stay on v3 if you must use .eslintrc.
Export [...trendmicroConfig, { ... }] instead of exporting trendmicroConfig directly.Install peer dependencies: npm install --save-dev eslint @stylistic/eslint-plugin eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
Create an additional config object after spreading trendmicroConfig and set languageOptions there.
If using TypeScript, use @typescript-eslint/parser and configure parserOptions.project. For Babel, use @babel/eslint-parser.
Migrate to eslint.config.js and import trendmicroConfig as shown in the README.
Run npm install --save-dev eslint-config-trendmicro@latest and ensure ESLint version is >=9.
Use .mjs extension for ESM or .cjs for CommonJS, and ensure package.json has "type": "module" if using .js.
Install @babel/eslint-parser or @typescript-eslint/parser, and set parser in languageOptions.