# @shopify/eslint-plugin-assemblyscript

> Shopify extension point assemblyscript specific validation rules.

Latest version **0.1.13** (published 2020-11-25) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.13 |
| Published | 2020-11-25 |
| First published | 2020-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Maxime Bedard |
| Maintainers | vividviolet, iainmcampbell, andrewapperley, hannachen, henrytao, andyw8-shopify, keyfer, tsov, antoine.grant, wizardlyhel, marytal, themallen, thomaskelly, nathanpjf, shopify-dep, ismail.syed, goodforonefare, lemonmade, huguestennier |

## Links

- npm: https://www.npmjs.com/package/@shopify/eslint-plugin-assemblyscript
- npm.io page: https://npm.io/package/@shopify/eslint-plugin-assemblyscript

## Dependencies (1)

- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^2.31.0

## Recent versions

- 0.1.13 (latest) — 2020-11-25
- 0.1.12 — 2020-11-06

## README

# @shopify/eslint-plugin-assemblyscript

Custom Eslint plugin to lint and validate assemblyscript.

## Warnings

This plugin is built using eslint-typescript/parser, which is obviously **not an assembly script parser**. Ultimately a custom parser for assemblescript that outputs an AST understood by Eslint would be ideal, but is quite a big endeavour. For now, we can rely on the fact that the syntax is mostly compatible with typescript to validate it.

## Installation

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

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

Next, install `@shopify/eslint-plugin-assemblyscript`:

```
$ npm install @shopify/eslint-plugin-assemblyscript --save-dev
```

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

## Usage

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

```json
{
    "plugins": [
        "@shopify/assemblyscript"
    ]
}
```

## Supported Rules

|rule|description|
|-|-|
|no-spread|reject usages of `...var` on call expressions|
|no-rest-params|reject usages of `...var: T` on function definition|
|no-closure|reject usages of closures|
|types|TODO|
|variables|TODO|

## Publishing

```sh
$ yarn version --new-version <major|minor|patch>
$ git push --follow-tags
# then deploy on shipit.
```

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