A collection of shareable ESLint configurations for Salesforce Commerce Cloud (SFCC)
$ yarn add @jenssimon/eslint-config-sfcc --dev
All configurations are based on the Airbnb JavaScript Style Guide and a set of additions (@jenssimon/eslint-config-base).
This package contains a recommended configuration and a configuration that matches the original ESLint configuration for the Storefront Reference Architecture (SFRA) with adjustments to validate with newer ESLint versions.
This configuration is recommended for every custom cartridge. It is based on (@jenssimon/eslint-config-base).
{
"extends": [
"@jenssimon/sfcc"
]
}
This configuration matches the original ESLint configuration for the Storefront Reference Architecture (SFRA) with adjustments to validate with newer ESLint versions.
It's only thought to be used with app_storefront_base
.
{
"extends": [
"@jenssimon/sfcc/sfra"
]
}
There is also a configuration for client side JS that extends the configuration mentioned above.
{
"extends": [
"@jenssimon/sfcc/sfra-storefront"
]
}
MIT © 2022 Jens Simon