Giter Club home page Giter Club logo

linter-slim's Introduction

linter-slim

This linter plugin for Linter provides an interface to slim. It will be used with files that have the “Ruby Slim” syntax.

Installation

Linter package must be installed in order to use this plugin. If Linter is not installed, please follow the instructions here.

slim installation

Before using this plugin, you must ensure that slimrb is installed on your system. To install slimrb, do the following:

  1. Install ruby.

  2. Install slim by typing the following in a terminal:

    gem install slim
    

Now you can proceed to install the linter-slim plugin.

Plugin installation

$ apm install linter-slim

Settings

Settings can be configured from Atom's settings page in the packages section.

Available settings are:

  • Slimrb Executable Path: The full path to slimrb, for example /usr/bin/slimrb. Leave at the default to use the system $PATH to find it
  • Rails: Whether or not to generate Rails compatible code
  • Library: Comma separated list of libraries or plugins to load when linting

Run which slimrb to find the path, if you using rbenv run rbenv which slimrb

linter-slim's People

Contributors

arcanemagus avatar hd-deman avatar lloeki avatar maletor avatar renovate-bot avatar vzamanillo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

linter-slim's Issues

join us

You can transfer it to the AtomLinter org if you'd like. You'll still be the maintainer.
The sooner you do it, the less the statistics of downloads you will lose)
flow:

  1. run apm unpublish linter-slim command to unpublish package
  2. move repo to AtomLInter org (you will be an administrator)
  3. fix repo url in package.json
  4. publish again

This allows us to more easily keep track of linters that need to be fixed after major updates to the core linter. Additionally, by pulling you into the organization it allows us to keep linter creators up to date with changes and plans people have to advance the project. Lastly it has been a good tool when people have issues with the linters where users can rely on a larger stable of developers to help them with their issues on any given linter.

welcome to the biggest atom package community ::)

Command line interface

Is there any command line interface?

I'd like to use this with RubyMine, but a command line interface would suffice.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Implement specs

It looks like this linter does not currently have any specs written for it, adding it to the list being maintained here for tracking.

Specs do not need to be super detailed, as they should mainly test whether the package is properly running the linter plugin and parsing its messages. Leave testing of the linter functionality to the author of the linter.

If you need any help feel free to ask!

Support v2 Linter API

In the v2.3.0 release of linter support for the v1 API was removed, breaking semver. This means that this provider is no longer supported by the current version of linter.

To get this provider working again it will need to be upgrade to the v2 API, a guide for accomplishing that can be found here: Upgrading to Standard Linter v2.

Until this is fixed in order to use this provider you will need to downgrade to the last version of linter that supports the v1 API, you can do this with apm install [email protected].

Object.activate is deprecated.

AtomLinter v0.X.Y API has been deprecated. Please refer to the Linter docs to update and the latest API: https://github.com/AtomLinter/Linter/wiki/Migrating-to-the-new-API

Object.activate (/Users/scott/.atom/packages/linter/lib/main.coffee:57:8)
Package.activateNow (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:240:19)
<unknown> (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:221:30)
Package.measure (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.activate (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:213:14)
PackageManager.activatePackage (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package-manager.js:452:21)

Does nothing

This doesn't do any linting on my Slim files. I have the path set to Executable Dir: C:/Ruby22-x64/bin and the binary set to Binary Name: slim-lint. This executes in a Ruby command shell fine, and catches issues with my Slim code, printing them out on STDOUT, but inside Atom it doesn't appear to do anything, since nothing is printed at the bottom showing what the problems are after saving my file.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

circleci
.circleci/config.yml
npm
package.json
  • atom-linter 10.0.0
  • atom-package-deps 7.2.2
  • eslint 7.22.0
  • eslint-config-airbnb-base 14.2.1
  • eslint-plugin-import 2.22.1
  • jasmine-fix 1.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.