# @progressivestudio/eslint-plugin

> Progressive studio's ESLint rules and configs.

Latest version **1.1.0** (published 2022-12-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-12-23 |
| First published | 2022-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 22 |
| Unpacked size | 127.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | progressivestudio |

## Links

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

## Dependencies (22)

- [doctrine](https://npm.io/package/doctrine.md) ^3.0.0
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [change-case](https://npm.io/package/change-case.md) ^4.1.2
- [common-tags](https://npm.io/package/common-tags.md) ^1.8.2
- [jsx-ast-utils](https://npm.io/package/jsx-ast-utils.md) ^3.2.1
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^27.1.7
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [eslint-module-utils](https://npm.io/package/eslint-module-utils.md) ^2.7.1
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.31.11
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.16.3
- [@babel/eslint-plugin](https://npm.io/package/@babel/eslint-plugin.md) ^7.14.5
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.25.3
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^6.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.3.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.5.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.1.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.47.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.3.0
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) ^3.2.0
- [eslint-plugin-jest-formatting](https://npm.io/package/eslint-plugin-jest-formatting.md) ^3.1.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.47.0
- [eslint-plugin-sort-class-members](https://npm.io/package/eslint-plugin-sort-class-members.md) ^1.16.0

## Recent versions

- 1.1.0 (latest) — 2022-12-23
- 1.0.0 — 2022-10-22

## README

# `@progressivestudio/eslint-plugin`

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](../../LICENSE.md) [![npm version](https://badge.fury.io/js/%40progressivestudio%2Feslint-plugin.svg)](https://badge.fury.io/js/%40progressivestudio%2Feslint-plugin.svg)

Shared ESLint rules and configs.

## Installation

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

**With pnpm**

```bash
pnpm add --dev eslint
```

**With npm**

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

Next, install `@progressivestudio/eslint-plugin`:

**With pnpm**

```bash
pnpm add --dev @progressivestudio/eslint-plugin
```

**With npm**

```bash
$ npm install @progressivestudio/eslint-plugin --save-dev
```

## Usage

Shared ESLint configs come bundled in this package. In order to use them, you simply extend the relevant configuration in your project’s `.eslintrc`. For example, the following will extend the ESNext (ES2015 and later) config:

```json
{
  "extends": "plugin:@progressivestudio/esnext"
}
```

If you are working on an ES5 project, extend the ES5 version of the configuration:

```json
{
  "extends": "plugin:@progressivestudio/es5"
}
```

You can also add some "augmenting" configs on top of the "core" config by extending an array of linting configs. For example, the following configuration would provide a base ESNext config that is augmented by a React config:

```json
{
  "extends": ["plugin:@progressivestudio/esnext", "plugin:@progressivestudio/react"]
}
```

Likewise, if you are using TypeScript and React, the following configuration extends the TypeScript base config with the React-specific rules provided by the React configuration file. To demonstrate multiple augmentations, we've also added the Prettier config, which disables rules that will conflict in projects using prettier.

```json
{
  "extends": [
    "plugin:@progressivestudio/typescript",
    "plugin:@progressivestudio/react",
    "plugin:@progressivestudio/prettier"
  ]
}
```

## Provided configurations

This plugin provides the following core configurations:

- [esnext](lib/config/esnext.js): Use this for anything written with ES2015+ features.
- [typescript](lib/config/typescript.js): Use this for Typescript projects. The rules enabled in this config do not require type-checking to run. To enable all Typescript rules, you must augment this config with the `typescript-type-checking` config mentioned below.
- [es5](lib/config/es5.js): Use this for legacy projects.

This plugin also provides the following tool-specific configurations, which can be used on top of the core configurations:

- [typescript-type-checking](lib/config/typescript-type-checking.js) Use this config to augment the `typescript` config to enable all TypeScript rules, including those that require type checking. These rules are slower to run and and you will need to specify a path to your tsconfig.json file in the "project" property of "parserOptions". The following example would provide all of the TypeScript rules, assuming the tsconfig.json is in the same directory as you ESlint configuration.

```json
{
  "extends": [
    "plugin:@progressivestudio/typescript",
    "plugin:@progressivestudio/typescript-type-checking"
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}
```

- [react](lib/config/react.js): Use this for React projects.
- [prettier](lib/config/prettier.js): Use [prettier](https://github.com/prettier/prettier) for consistent formatting. Extending this Shopify's prettier config will [override](https://github.com/prettier/eslint-config-prettier/blob/master/index.js) the default Shopify eslint rules in favor of prettier formatting. Prettier must be installed within your project, as @progressivestudio/eslint-plugin does not provide the dependency itself.
- [webpack](lib/config/webpack.js): Use this for projects built by [webpack](https://webpack.js.org/).


### Supported Typescript version

The supported version of TypeScript is constrained by the [@typescipt-eslint parser support](https://github.com/typescript-eslint/typescript-eslint#supported-typescript-version) that is installed.

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