ESLint Configuration
Last modified by Vincent Massol on 2026/12/04 14:28
Content
A shared package configures eslint for the npm packages of xwiki-platform and contrib projects, through a file that applies it.
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-eslintconfigCreate a file eslint.config.ts at the root pour the package:
import config from "@xwiki/platform-tool-eslintconfig";
export default config;