# eslint-plugin-grommet

> Lint rules to use with Grommet.

Latest version **0.2.0** (published 2023-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-grommet
pnpm add eslint-plugin-grommet
yarn add eslint-plugin-grommet
bun add eslint-plugin-grommet
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-05-23 |
| First published | 2021-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Unpacked size | 52.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | taysea |
| Keywords | eslint, eslintplugin, eslint-plugin, grommet, accessibility |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-grommet
- Repository: https://github.com/grommet/eslint-plugin-grommet
- Homepage: https://github.com/grommet/eslint-plugin-grommet#readme
- Issues: https://github.com/grommet/eslint-plugin-grommet/issues
- npm.io page: https://npm.io/package/eslint-plugin-grommet

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2023-05-23
- 0.1.1 — 2021-08-23
- 0.1.0 — 2021-08-19

## README

# eslint-plugin-grommet

Lint rules to use with Grommet.

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-grommet`:

```
$ npm install eslint-plugin-grommet --save-dev
```

## Usage

### Recommended rules

To use the recommended set of rules, add `plugin:grommet/recommended` to the extends section of your `.eslintrc` configuration file. The `plugin:` prefix informs ESLint that the configuration lives within an `eslint-plugin-` package as opposed to an `eslint-config-` package.


```json
{
  "extends": ["plugin:grommet/recommended"]
}
```

### Opting into and out of specific rules

To opt-in or opt-out of specific rules, add `grommet` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": ["grommet"]
}
```

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

```json
{
  "rules": {
    "grommet/rule-name": 2
  }
}
```

### Example configuration

In the configuration below, the recommended rules are all being enforced except for `formfield-prefer-children`. Be mindful when disabling rules from the recommended configuration as this may result in accessibility errors or other missed best practice guidance.

```json
{
  "extends": ["plugin:grommet/recommended"],
  "plugins": ["grommet"],
  "rules": {
    "grommet/formfield-prefer-children": 0
  }
}
```

## Supported Rules

- [image-alt-text](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/image-alt-text.md)
- [spinner-message](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/spinner-message.md)
- [button-single-kind](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/button-single-kind.md)
- [datatable-aria-describedby](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/datatable-aria-describedby.md)
- [datatable-groupby-onmore](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/datatable-groupby-onmore.md)
- [formfield-prefer-children](https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/formfield-prefer-children.md)

---
_Source: https://npm.io/package/eslint-plugin-grommet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
