Skip to content

MSILycanthropy/jslinting-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Linting for Rails

This gem provides a basic eslint and prettier setup for Rails apps setup with jsbundling-rails.

Installation

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:install

Usage

This 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 format

or as a task via

rails javascript:lint
rails javascript:format

License

jslinting-rails is released under the MIT License.

About

Lint and format JavaScript in Rails

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors