Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenssimon/eslint-config-sfcc
A collection of shareable ESLint configurations for Salesforce Commerce Cloud (SFCC)
https://github.com/jenssimon/eslint-config-sfcc
commercecloud demandware eslint eslintconfig salesforce sfcc sfra
Last synced: about 1 month ago
JSON representation
A collection of shareable ESLint configurations for Salesforce Commerce Cloud (SFCC)
- Host: GitHub
- URL: https://github.com/jenssimon/eslint-config-sfcc
- Owner: jenssimon
- License: mit
- Created: 2019-02-06T10:05:11.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T21:39:34.000Z (7 months ago)
- Last Synced: 2024-05-29T12:58:39.595Z (7 months ago)
- Topics: commercecloud, demandware, eslint, eslintconfig, salesforce, sfcc, sfra
- Language: JavaScript
- Homepage:
- Size: 214 MB
- Stars: 16
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM version][npm-image]][npm-url] [![Downloads][npm-downloads-image]][npm-url] [![star this repo][gh-stars-image]][gh-url] [![fork this repo][gh-forks-image]][gh-url] [![Build Status][gh-status-image]][gh-url]
# eslint-config-sfcc
> A collection of shareable ESLint configurations for Salesforce Commerce Cloud (SFCC)
## Installation
```sh
$ yarn add @jenssimon/eslint-config-sfcc --dev
```## General
All configurations are based on the [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript#readme) and a set of additions ([@jenssimon/eslint-config-base](https://github.com/jenssimon/eslint-config-base#readme)).
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.
## Configurations
### Standard configuration
This configuration is recommended for every custom cartridge. It is based on ([@jenssimon/eslint-config-base](https://github.com/jenssimon/eslint-config-base#readme)).
```json
{
"extends": [
"@jenssimon/sfcc"
]
}
```### Configuration for SFRA
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`.```json
{
"extends": [
"@jenssimon/sfcc/sfra"
]
}
```There is also a configuration for client side JS that extends the configuration mentioned above.
```json
{
"extends": [
"@jenssimon/sfcc/sfra-storefront"
]
}
```## License
MIT © 2022 [Jens Simon](https://github.com/jenssimon)
[npm-url]: https://www.npmjs.com/package/@jenssimon/eslint-config-sfcc
[npm-image]: https://badgen.net/npm/v/@jenssimon/eslint-config-sfcc
[npm-downloads-image]: https://badgen.net/npm/dw/@jenssimon/eslint-config-sfcc[gh-url]: https://github.com/jenssimon/eslint-config-sfcc
[gh-stars-image]: https://badgen.net/github/stars/jenssimon/eslint-config-sfcc
[gh-forks-image]: https://badgen.net/github/forks/jenssimon/eslint-config-sfcc
[gh-status-image]: https://badgen.net/github/status/jenssimon/eslint-config-sfcc