added typescript and readme

This commit is contained in:
Raymundo Vásquez Ruiz
2019-10-27 19:05:34 +01:00
parent b6023212ea
commit 22a9de120e
156 changed files with 7949 additions and 689 deletions

View File

@@ -0,0 +1,32 @@
;;; flymake-json-autoloads.el --- automatically extracted autoloads
;;
;;; Code:
(add-to-list 'load-path (directory-file-name
(or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "flymake-json" "flymake-json.el" (0 0 0 0))
;;; Generated autoloads from flymake-json.el
(autoload 'flymake-json-load "flymake-json" "\
Configure flymake mode to check the current buffer's javascript syntax.
\(fn)" t nil)
(autoload 'flymake-json-maybe-load "flymake-json" "\
Call `flymake-json-load' if this file appears to be json.
\(fn)" t nil)
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "flymake-json" '("flymake-json-")))
;;;***
;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; coding: utf-8
;; End:
;;; flymake-json-autoloads.el ends here

View File

@@ -0,0 +1,2 @@
;;; -*- no-byte-compile: t -*-
(define-package "flymake-json" "20180511.911" "A flymake handler for json using jsonlint" '((flymake-easy "0.1")) :commit "ae58795f948402e987cda4c15f10354f8ec2d0fd" :authors '(("Steve Purcell" . "steve@sanityinc.com")) :maintainer '("Steve Purcell" . "steve@sanityinc.com") :url "https://github.com/purcell/flymake-json")

View File

@@ -0,0 +1,79 @@
;;; flymake-json.el --- A flymake handler for json using jsonlint
;; Copyright (c) 2013-2017 Steve Purcell
;; Author: Steve Purcell <steve@sanityinc.com>
;; Homepage: https://github.com/purcell/flymake-json
;; Package-Version: 20180511.911
;; Package-X-Original-Version: 0
;; Package-Requires: ((flymake-easy "0.1"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; This package requires the "jsonlint" program, which can be installed using npm:
;;
;; npm install jsonlint -g
;;
;; Usage:
;;
;; (require 'flymake-json)
;;
;; Then, if you're using `json-mode':
;;
;; (add-hook 'json-mode-hook 'flymake-json-load)
;;
;; or, if you use `js-mode' for json:
;;
;; (add-hook 'js-mode-hook 'flymake-json-maybe-load)
;;
;; otherwise:
;;
;; (add-hook 'find-file-hook 'flymake-json-maybe-load)
;;
;; Uses flymake-easy, from https://github.com/purcell/flymake-easy
;;; Code:
(require 'flymake-easy)
(defconst flymake-json-err-line-patterns
'(("^\\(.+\\)\: line \\([0-9]+\\), col \\([0-9]+\\), \\(.+\\)$" nil 2 3 4)))
(defun flymake-json-command (filename)
"Construct a command that flymake can use to check json source in FILENAME."
(list "jsonlint" "-c" "-q" filename))
;;;###autoload
(defun flymake-json-load ()
"Configure flymake mode to check the current buffer's javascript syntax."
(interactive)
(flymake-easy-load 'flymake-json-command
flymake-json-err-line-patterns
'tempdir
"json"))
;;;###autoload
(defun flymake-json-maybe-load ()
"Call `flymake-json-load' if this file appears to be json."
(interactive)
(if (and buffer-file-name
(string= "json" (file-name-extension buffer-file-name)))
(flymake-json-load)))
(provide 'flymake-json)
;;; flymake-json.el ends here

Binary file not shown.