# eslint-plugin-ryanair

> Ryanair ESLint custom rules

Latest version **1.1.1** (published 2022-01-11) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2022-01-11 |
| First published | 2018-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 54.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Patryk Galuszka |
| Maintainers | fortunatof, izifortune |
| Keywords | eslint, eslintplugin, eslint-plugin, ryanair, javascript, styleguide |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-ryanair
- Repository: https://github.com/ryanair/linters
- Homepage: https://github.com/ryanair/linters/packages/javascript/eslint-plugin
- Issues: https://github.com/ryanair/linters/issues
- npm.io page: https://npm.io/package/eslint-plugin-ryanair

## Dependencies (2)

- [ramda](https://npm.io/package/ramda.md) ^0.25.0
- [requireindex](https://npm.io/package/requireindex.md) ~1.2.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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-01-11
- 1.1.0 — 2021-02-12
- 2.0.0 — 2021-01-29
- 1.0.2 — 2019-09-13
- 1.0.1 — 2018-08-27
- 1.0.0 — 2018-07-26

## README

# eslint-plugin-ryanair

Ryanair&#39;s custom eslint rules

## Installation

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

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

Next, install `eslint-plugin-ryanair`:

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

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

## Usage

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

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


No rules are enabled by default, since those are very specific. Then configure the rules you want to use under the rules section in `.eslintrc` file.

```json
{
    "rules": {
        "ryanair/another-rule-name": 2,
        "ryanair/consistent-compt-ctrl-name": 2,
        "ryanair/consistent-test-filename": 2,
        "ryanair/no-element-directive": 2,
        "ryanair/no-pre-assign-bindings-enabled": 2,
        "ryanair/no-two-way-binding": 2,
        "ryanair/prefer-comp-ctrl-class": 2,
        "ryanair/require-comp-ctrl-on-init": 2,
    }
}
```

## Supported Rules

### AngularJS 1.7 migration

Rule                                    | Recommended | Fixable | Options
----                                    | ----------- | ------- | ---------------------
[no-element-directive][]                | 1,          |         |
[no-pre-assign-bindings-enabled][]      | 1,          |         |
[prefer-comp-ctrl-class][]              | 1,          |         |
[require-comp-ctrl-on-init][]           | 1,          |         |


### AngularJS performance issues

Rule                                    | Recommended | Fixable | Options
----                                    | ----------- | ------- | ---------------------
[no-two-way-binding][]                  | 1,          |         |


### AngularJS stylistic issues

Rule                                    | Recommended | Fixable | Options
----                                    | ----------- | ------- | --------------------
[consistent-compt-ctrl-name][]          | 1,          |         | namingPatternObject


### Jasmine best practices

Rule                                    | Recommended | Fixable | Options
----                                    | ----------- | ------- | --------------------
[consistent-test-filename][]            | 1,          |         | namingPatternObject


## See also

* [Eslint documentation](https://eslint.org/)
* [Ryanair linters collection](https://github.com/Ryanair/linters/packages/)


[no-pre-assign-bindings-enabled]: docs/rules/no-pre-assign-bindings-enabled.md
[no-element-directive]: docs/rules/no-element-directive.md
[prefer-comp-ctrl-class]: docs/rules/prefer-comp-ctrl-class.md
[require-comp-ctrl-on-init]: docs/rules/require-comp-ctrl-on-init.md
[no-two-way-binding]: docs/rules/no-two-way-binding.md
[consistent-compt-ctrl-name]: docs/rules/consistent-compt-ctrl-name.md
[consistent-test-filename]: docs/rules/consistent-test-filename.md

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