# eslint-plugin-altesis

> This plugin enforces a style guide and adds a rule to conform to Kevlin Henney visual style guide for a function's argument list.

Latest version **0.0.4** (published 2019-03-22) · MIT license · 0 weekly downloads

## Install

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

## 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.0.4 |
| Published | 2019-03-22 |
| First published | 2019-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 28.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marco Santonastasi |
| Maintainers | marcosantonastasi |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

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

## 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.0.4 (latest) — 2019-03-22
- 0.0.3 — 2019-03-22
- 0.0.2 — 2019-03-22
- 0.0.1 — 2019-03-22

## README

# eslint-plugin-altesis

Enforce indentation when function argument list is on a new line so that it follows that of the functon's body.
This is a tribute to Kevlin Henney visual style guidelines.

## Example

the visually incoherent "one true style" fucntion declaration indentation
```javascript
function myFunc (arg1, arg2) {
  cosnt myConst = 'myString'
  // ... code here
}
```
becomes
```javascript
function myFunc
  (arg1, arg2)
{
  cosnt myConst = 'myString'
  // ... code here
}
```
for better visual indentation lineup, in accordance to [@KevlinHenney](https://twitter.com/KevlinHenney) visula style guide


## Installation

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

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

Next, install `eslint-plugin-altesis`:

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

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

## Usage

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

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

The plugin also takes care of activating the style rules and the configuration as per ESLint rules.
It does this by adding the following code:

```json
{
  "rules": {
    "altesis/altesis": "error",
  }
}
```

and

```json
{
    "extends": [
        "eslint:recommended",
        "plugin:altesis/altesis"
    ]
}
```


## Rules and Configs exported

The plugin exports a config: **`altesis`** that regulates code style and a rule, also **`altesis`**, that raises error in ESLint inline and fixes the errors on `eslint . --fix`.
Feel free to explore the source code and pull-request modifications, expecially if you are a fan of Mr. Henney.

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