Wiki source code of eslint configuration reference

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

Hide last authors
Manuel Leduc 1.1 1 A standard [[eslint>>https://eslint.org/]] configuration is available in the ##@xwiki/platform-tool-eslintconfig## package.
2
3 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.
4
5 **Usage**
6
7 {{code language="bash"}}
8 pnpm add -D eslint @xwiki/platform-tool-eslintconfig
9 {{/code}}
10
11 Create a file ##eslint.config.ts## at the root pour the package:
12
13 {{code language="typescript"}}
14 import config from "@xwiki/platform-tool-eslintconfig";
15 export default config;
16 {{/code}}

Get Connected