eslint configuration reference

Last modified by Manuel Leduc on 2026/02/13 16:31

Content

Reference

A standard eslint configuration is available in the @xwiki/platform-tool-eslintconfig package.

It is advised to use it for all npm packages in xwiki-platform and in the contrib projects with a parent version > 18.1.0-rc-1.

Usage

pnpm add -D eslint @xwiki/platform-tool-eslintconfig

Create a file eslint.config.ts at the root pour the package:

import config from "@xwiki/platform-tool-eslintconfig";
export default config;

Get Connected