This gem provides a basic eslint and prettier setup for Rails apps setup with jsbundling-rails.
Ensure jsbundling-rails is installed in your application, as
jslinting-rails relies on it.
If you are using node, ensure npx >7.1 is installed.
If you are using bun, then you must have the bun runtime installed.
To get started run:
./bin/bundle add jslinting-rails --group development./bin/rails jslinting:installThis gem adds two scripts to your package.json, lint and format.
They can be run directly through your package manager with
yarn run lint
yarn run formator as a task via
rails javascript:lint
rails javascript:formatjslinting-rails is released under the MIT License.