diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-05 09:54:28 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-05 09:54:28 +0200 |
commit | aba25d8521a8f7129721c7b52621da7abc6222c5 (patch) | |
tree | 18d8553f4e5116d0ef66cf8c8e8210b58bbd5973 | |
parent | f0c97756de12cae8205e1ee8a513954337aa18e8 (diff) | |
download | gitbook-aba25d8521a8f7129721c7b52621da7abc6222c5.zip gitbook-aba25d8521a8f7129721c7b52621da7abc6222c5.tar.gz gitbook-aba25d8521a8f7129721c7b52621da7abc6222c5.tar.bz2 |
Add eslint instead of jshint
-rw-r--r-- | .eslintignore | 1 | ||||
-rw-r--r-- | .eslintrc | 18 | ||||
-rw-r--r-- | .jshintrc | 7 | ||||
-rw-r--r-- | package.json | 1 |
4 files changed, 20 insertions, 7 deletions
diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..9599d9a --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +theme/**/* diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..e4c5296 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,18 @@ +{ + "rules": { + "indent": [ 2, 4 ], + "quotes": [ 2, "single" ], + "linebreak-style": [ 2, "unix" ], + "semi": [ 2, "always" ], + "no-unused-vars": [ 2, { + "vars": "all", + "args": "none" + } ], + "spaced-comment": [ 2, "always" ] + }, + "env": { + "node": true, + "mocha": true + }, + "extends": "eslint:recommended" +}
\ No newline at end of file diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 748ef99..0000000 --- a/.jshintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "strict": false, - "browser": false, - "quotmark": true, - "node": true, - "mocha": true -}
\ No newline at end of file diff --git a/package.json b/package.json index d6ee934..cb0b1ad 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "escape-string-regexp": "1.0.3" }, "devDependencies": { + "eslint": "1.5.0", "mocha": "2.3.2", "should": "7.1.0", "grunt": "~0.4.2", |