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
- Host: GitHub
- URL: https://github.com/koddsson/eslint-config-stimulus
- Owner: koddsson
- License: mit
- Created: 2024-10-11T10:02:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T10:09:33.000Z (9 months ago)
- Last Synced: 2025-01-14T11:29:48.345Z (9 months ago)
- Topics: eslint, hotwire, rails, stimulus
- Language: JavaScript
- Homepage:
- Size: 400 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `eslint-config-stimulus`
[](https://npmjs.org/package/eslint-config-stimulus "View this project on npm")
[](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).