Giter Club home page Giter Club logo

atom-linter's Introduction

atom-linter

atom-linter is an npm helper module that you can import in your Linter Providers and make things easier for yourself.

API

enum stream = {stdout, stderr, both}
class Helpers{
  static exec(command: String, args: Array<string> = [], options: Object = {stream: 'stdout'})
  static execNode(filePath: String, args: Array<string> = [], options: Object = {stream: 'stdout'})
  static parse(data: String, regex: String, options: Object = {baseReduction: 1, flags: ""})
  static rangeFromLineNumber(textEditor: TextEditor, lineNumber: Number):Range
  static findFile(directory:String, names: String | Array<string>): ?String
  static findFileAsync(directory: Strng, names: String | Array<string>): Promise<?String>
  static tempFile<T>(filePath:String, fileContents:String, Callback:Function<T>):Promise<T>
  static createElement(tagName: string): HTMLElement
}

Explanation for createElement

Linter accepts HTMLElements in the html message property. To show the same message on more than one DOM Elements, it clones the element. It's a limitation of HTMLElements that they lose all the events on clone. If you create your element using Helpers.createElement however It'll make sure the children inherit the events from the parent.

License

This project is licensed under the terms of MIT License, see the LICENSE file for more info

atom-linter's People

Contributors

albertosantini avatar arcanemagus avatar benjaminromano avatar daw42 avatar hd-deman avatar keplersj avatar project0 avatar simon04 avatar steelbrain avatar

Watchers

 avatar  avatar

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.