From 85984f5a58d434f9469cb1bf4c6adc4785c0571a Mon Sep 17 00:00:00 2001 From: carl alberto Date: Fri, 27 Jan 2017 02:15:24 +0800 Subject: [PATCH] added js rulesets --- .jscsrc | 7 +++++++ .jshintignore | 1 + codesniffer.ruleset.xml | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .jscsrc create mode 100644 .jshintignore create mode 100644 codesniffer.ruleset.xml diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..9a7bbb0 --- /dev/null +++ b/.jscsrc @@ -0,0 +1,7 @@ +{ + "preset": "wordpress", + "fileExtensions": [ ".js" ], + "excludeFiles": [ + "js/**.min.js" + ] +} \ No newline at end of file diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 0000000..54162f6 --- /dev/null +++ b/.jshintignore @@ -0,0 +1 @@ +js/**.min.js \ No newline at end of file diff --git a/codesniffer.ruleset.xml b/codesniffer.ruleset.xml new file mode 100644 index 0000000..2d06727 --- /dev/null +++ b/codesniffer.ruleset.xml @@ -0,0 +1,19 @@ + + + + + + + A custom set of code standard rules to check for WordPress themes. + + + + + + + + + + + +