Skip to content

adobe-rnd/eslint-plugin-xwalk

Repository files navigation

eslint-plugin-xwalk

Custom rules to validate aem-boilerplate-xwalk projects

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-xwalk:

npm install eslint-plugin-xwalk --save-dev

Usage

Add xwalk to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "xwalk"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "xwalk/max-cells": "error"
    }
}

Or extend the recommended configuration

{
  "extend" [
    "plugin:xwalk/recommended"
  ]
}

Configurations

Name
recommended

Rules

💼 Configurations enabled in.
✅ Set in the recommended configuration.

Name                         Description 💼
max-cells Limit the number of cells in a block.
no-custom-resource-types Do not use custom resource types. Serverside extensibility with customer resource types is not supported.
no-duplicate-fields Avoid duplicate field names.
no-orphan-collapsible-fields Do not use collapsible field name suffixes without the actual field being present in the model.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published