An open API service indexing awesome lists of open source software.

https://github.com/koddsson/eslint-config-stimulus

A set of ESLint rules for authoring Stimulus controllers
https://github.com/koddsson/eslint-config-stimulus

eslint hotwire rails stimulus

Last synced: 13 days ago
JSON representation

A set of ESLint rules for authoring Stimulus controllers

Awesome Lists containing this project

README

          

# `eslint-config-stimulus`

[![npm version](https://img.shields.io/npm/v/eslint-config-stimulus.svg?style=flat)](https://npmjs.org/package/eslint-config-stimulus "View this project on npm")
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

ESLint plugin for [Stimulus Controllers](https://stimulus.hotwired.dev/).

## Install

Assuming you already have ESLint installed, run:

```sh
npm install eslint-config-stimulus --save-dev
```

## Usage

Then extend the recommended eslint config:

```js
import stimulus from "eslint-config-stimulus";

export default [stimulus.configs.recommended];
```

## Supported Rules

### Possible Errors (Recommended)

- [stimulus/no-invalid-targets](docs/rules/no-invalid-targets.md)

## License

`eslint-plugin-stimulus` is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).