]> code.delx.au - gnu-emacs-elpa/commitdiff
Update linter.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Thu, 15 Jan 2015 09:58:26 +0000 (01:58 -0800)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Thu, 15 Jan 2015 09:58:26 +0000 (01:58 -0800)
README.md
languages/javascript/.jshintrc [new file with mode: 0644]
languages/javascript/.jslintrc [deleted file]

index b687f453cb09685069f57c6af934116f0ea918d1..fe2744a3e982ab7d1728615a429ad56698bb35f8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,8 +22,7 @@ This coloring strategy is probably more useful than conventional *syntax*
 highlighting. Highlighting keywords can help one to detect spelling errors, and
 highlighting the content between quotation marks can alert one to unclosed
 string literals. But a [linter][] could also spot those errors, and if
-[integrated via flycheck][integration], an extra spot opens up in your editing
-toolbelt.
+integrated via [flycheck][], an extra spot opens up in your editing toolbelt.
 
 Give context coloring a try; you may find that it *changes the way you write
 code*.
@@ -141,8 +140,8 @@ If there is an abstract syntax tree generator for your language, you can walk
 the syntax tree, find variables and scopes, and build their positions and levels
 into an array like the one above.
 
-[linter]: https://github.com/jacksonrayhamilton/jslinted
-[integration]: https://github.com/jacksonrayhamilton/jslinted#emacs-integration
+[linter]: http://jshint.com/about/
+[flycheck]: https://github.com/flycheck/flycheck
 [point]: http://www.gnu.org/software/emacs/manual/html_node/elisp/Point.html
 [js2-mode]: https://github.com/mooz/js2-mode
 [node]: http://nodejs.org/download/
diff --git a/languages/javascript/.jshintrc b/languages/javascript/.jshintrc
new file mode 100644 (file)
index 0000000..82211c2
--- /dev/null
@@ -0,0 +1,24 @@
+{
+  "bitwise": true,
+  "camelcase": true,
+  "curly": true,
+  "devel": true,
+  "eqeqeq": true,
+  "forin": true,
+  "freeze": true,
+  "funcscope": true,
+  "immed": true,
+  "indent": 4,
+  "latedef": true,
+  "newcap": true,
+  "noarg": true,
+  "node": true,
+  "noempty": true,
+  "nonbsp": true,
+  "nonew": true,
+  "plusplus": true,
+  "quotmark": "single",
+  "strict": true,
+  "undef": true,
+  "unused": "strict"
+}
diff --git a/languages/javascript/.jslintrc b/languages/javascript/.jslintrc
deleted file mode 100644 (file)
index 03c17c5..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{
-  "node": true,
-  "nomen": true
-}