From b51e2df0516510a66791c70a9771e99eb0eb112d Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Sat, 19 Sep 2015 15:57:13 +0200 Subject: [PATCH] Add Linthub config --- .jshintrc | 25 +++++++++++++++ .linthub.yml | 16 ++++++++++ ruleset.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 .jshintrc create mode 100644 .linthub.yml create mode 100644 ruleset.xml diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..28e696f --- /dev/null +++ b/.jshintrc @@ -0,0 +1,25 @@ +{ + "boss": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "es3": true, + "expr": true, + "immed": true, + "noarg": true, + "onevar": true, + "quotmark": "single", + "trailing": true, + "undef": true, + "unused": true, + + "browser": true, + + "globals": { + "_": false, + "Backbone": false, + "jQuery": false, + "JSON": false, + "wp": false + } +} \ No newline at end of file diff --git a/.linthub.yml b/.linthub.yml new file mode 100644 index 0000000..d2f9916 --- /dev/null +++ b/.linthub.yml @@ -0,0 +1,16 @@ +go: + lint: false +php: + lint: true + config: ruleset.xml +java: + lint: false +scala: + lint: false +shell: + lint: false +css: + lint: true +js: + lint: jshint # jshint (default) | eslint | false + config: .jshintrc \ No newline at end of file diff --git a/ruleset.xml b/ruleset.xml new file mode 100644 index 0000000..3f7df9b --- /dev/null +++ b/ruleset.xml @@ -0,0 +1,88 @@ + + + Non-controversial generally-agreed upon WordPress Coding Standards + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + + + + + + + + + + + + + + \ No newline at end of file