@vtex/eslint-plugin-admin-ui

```shell $ yarn add -D @vtex/eslint-plugin-admin-ui ```

Usage no npm install needed!

<script type="module">
  import vtexEslintPluginAdminUi from 'https://cdn.skypack.dev/@vtex/eslint-plugin-admin-ui';
</script>

README

Installation

$ yarn add -D @vtex/eslint-plugin-admin-ui

Usage

Add @vtex/admin-ui to the plugins section of your .eslintrc configuration file.

{
  "plugins": ["@vtex/admin-ui"]
}

Then configure the rules you want to use within rules property of your .eslintrc:

{
  "rules": {
    "@vtex/admin-ui/create-tag-component-outside-render-phase": "error"
  }
}

Or just extends our recommended settings:

{
  "extends": ["plugin:@vtex/admin-ui/recommended"]
}

Supported Rules

Name Description
@vtex/admin-ui/create-tag-component-outside-render-phase Enforce that creates components outside render phase when using tag function