Pega front-end stylelint configuration.
npm install @pega/stylelint-configPegasystems front-end Stylelint configuration.
Install Stylelint and the Pega config.
``shell`
npm i -D stylelint @pega/stylelint-config
Extend from the Pega configuration in your Stylelint configuration file.
`json`
{
"extends": ["@pega/stylelint-config"]
}
Run Stylelint to check, for example, all .jsx and .tsx files in the current directory.
`shell``
npx stylelint "./*/.@(jsx|tsx)"
You can install the VS Code extension to enable your editor to run Stylelint for you automatically.