Git Product home page Git Product logo

eslint-config-sfcc's Introduction

NPM version Downloads star this repo fork this repo Build Status

eslint-config-sfcc

A collection of shareable ESLint configurations for Salesforce Commerce Cloud (SFCC)

Installation

$ yarn add @jenssimon/eslint-config-sfcc --dev

General

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.

Configurations

Standard configuration

This configuration is recommended for every custom cartridge. It is based on (@jenssimon/eslint-config-base).

{
  "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.

{
  "extends": [
    "@jenssimon/sfcc/sfra"
  ]
}

There is also a configuration for client side JS that extends the configuration mentioned above.

{
  "extends": [
    "@jenssimon/sfcc/sfra-storefront"
  ]
}

License

MIT © 2022 Jens Simon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.