From 36196af8c52d633d811693152b2ff94297b4c5d1 Mon Sep 17 00:00:00 2001 From: Barry Ceelen Date: Sat, 14 Oct 2017 18:27:41 +0200 Subject: [PATCH] Use precision alignment flag in js and css files --- README.md | 3 +++ snippets/precision-alignment-css.sublime-snippet | 8 ++++++++ snippets/precision-alignment.sublime-snippet | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 snippets/precision-alignment-css.sublime-snippet diff --git a/README.md b/README.md index 798ec38..24ab63e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ Type `wpcs` to select a whitelist flag via autocomplete. ## Changelog +### 1.0.5 +- Make precision alignment flag available to .js and .css files + ### 1.0.4 - Tab triggers now contain more words. This makes it easier to select a specific flag via the keyboard in addition to using the up or down arrow keys diff --git a/snippets/precision-alignment-css.sublime-snippet b/snippets/precision-alignment-css.sublime-snippet new file mode 100644 index 0000000..8a8ac59 --- /dev/null +++ b/snippets/precision-alignment-css.sublime-snippet @@ -0,0 +1,8 @@ + + + wpcs precision alignment + source.css + WPCS: precision alignment ok + \ No newline at end of file diff --git a/snippets/precision-alignment.sublime-snippet b/snippets/precision-alignment.sublime-snippet index cb9d87f..cf306b5 100644 --- a/snippets/precision-alignment.sublime-snippet +++ b/snippets/precision-alignment.sublime-snippet @@ -3,6 +3,6 @@ // WPCS: precision alignment ok. ]]> wpcs precision alignment - source.php + source.php, source.js WPCS: precision alignment ok - + \ No newline at end of file