From 7d25ae8a3d4d3bc383725fc921f8ed991b5c8c7a Mon Sep 17 00:00:00 2001 From: Siarhei Khilko Date: Sat, 25 Apr 2015 14:14:30 -0700 Subject: [PATCH] Switch to eslint for linting --- .eslintrc | 14 ++++++++++++++ .jshintrc | 19 ------------------- 2 files changed, 14 insertions(+), 19 deletions(-) create mode 100644 .eslintrc delete mode 100644 .jshintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..7f079c9 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,14 @@ +{ + "env": { + "browser": true + }, + "rules": { + // Strict mode + "strict": [2, "single"], + + // Code style + "indent": [2, 4], + "quotes": [2, "double"], + "no-underscore-dangle": 0 + } +} diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 6b1cf49..0000000 --- a/.jshintrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "browser": true, - "node": true, - "esnext": true, - "bitwise": true, - "camelcase": true, - "curly": true, - "eqeqeq": true, - "immed": true, - "indent": 2, - "latedef": true, - "newcap": true, - "noarg": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "jquery": true -}