# @floydspace/eslint-plugin-rules

> ESLint rules plugin

Latest version **0.3.0** (published 2022-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @floydspace/eslint-plugin-rules
pnpm add @floydspace/eslint-plugin-rules
yarn add @floydspace/eslint-plugin-rules
bun add @floydspace/eslint-plugin-rules
```

## 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.3.0 |
| Published | 2022-06-29 |
| First published | 2019-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Victor Korzunin |
| Maintainers | f1oyd |
| Keywords | eslint, tslint, eslintplugin, eslint plugin, eslint-plugin, typescript, shorthand-grouping, shorthand grouping, object-shorthand-grouping, object shorthand grouping |

## Links

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

## Dependencies (1)

- [@typescript-eslint/experimental-utils](https://npm.io/package/@typescript-eslint/experimental-utils.md) ^2.8.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.3.0 (latest) — 2022-06-29
- 0.2.0 — 2019-11-21
- 0.1.2 — 2019-11-20
- 0.1.1 — 2019-11-19
- 0.1.0 — 2019-11-19
- 0.0.3 — 2019-11-17
- 0.0.2 — 2019-11-17
- 0.0.1 — 2019-11-17

## README

[![Build Status](https://travis-ci.org/floydspace/eslint-plugin-rules.svg?branch=master)](https://travis-ci.org/floydspace/eslint-plugin-rules)
[![Coverage Status](https://coveralls.io/repos/github/floydspace/eslint-plugin-rules/badge.svg?branch=master)](https://coveralls.io/github/floydspace/eslint-plugin-rules?branch=master)
[![npm version](https://badge.fury.io/js/%40floydspace%2Feslint-plugin-rules.svg)](https://badge.fury.io/js/%40floydspace%2Feslint-plugin-rules)
[![npm](https://img.shields.io/npm/dt/@floydspace/eslint-plugin-rules)](https://www.npmjs.com/package/@floydspace/eslint-plugin-rules)

## Installation

Make sure you have TypeScript and `@typescript-eslint/parser` installed, then install the plugin:

```sh
npm i @floydspace/eslint-plugin-rules --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `@floydspace/eslint-plugin-rules` globally.

## Usage

Add `@typescript-eslint/parser` to the `parser` field and `@floydspace/rules` to the plugins section of your `.eslintrc` configuration file:

```json
{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@floydspace/rules"]
}
```

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

```json
{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@floydspace/rules"],
  "rules": {
    "@floydspace/rules/object-shorthand-grouping": "error"
  }
}
```

You can also enable all the rules for our plugin. Add `plugin:@floydspace/rules/all` in extends:

```json
{
  "extends": ["plugin:@floydspace/rules/all"]
}
```

**Note: Make sure to use `eslint --ext .js,.ts` since by [default](https://eslint.org/docs/user-guide/command-line-interface#--ext) `eslint` will only search for .js files.**

## Rules

| Name                                                                               | Description                                                                 |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [`@floydspace/rules/object-shorthand-grouping`](docs/object-shorthand-grouping.md) | Group your shorthand properties at the beginning of your object declaration |

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