This linter plugin for Linter provides an interface to slim. It will be used with files that have the “Ruby Slim” syntax.
Linter package must be installed in order to use this plugin. If Linter is not installed, please follow the instructions here.
Before using this plugin, you must ensure that slimrb
is installed on your system. To install slimrb
, do the following:
Now you can proceed to install the linter-slim plugin.
$ apm install linter-slim
You can configure linter-slim by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):
'linter-slim':
'executableDir': null # slimrb directory path.
'binaryName': slimrb # slimrb binary name.
'rails': true # generates rails compatible code.
'library': [] # load library or plugin (e.g. slim/plugin).
Run which slimrb
to find the path,
if you using rbenv run rbenv which slimrb