Skip to content

Commit

Permalink
Use precision alignment flag in js and css files
Browse files Browse the repository at this point in the history
  • Loading branch information
barryceelen committed Oct 14, 2017
1 parent 7e790bc commit 36196af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions snippets/precision-alignment-css.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
/* WPCS: precision alignment ok. */
]]></content>
<tabTrigger>wpcs precision alignment</tabTrigger>
<scope>source.css</scope>
<description>WPCS: precision alignment ok</description>
</snippet>
4 changes: 2 additions & 2 deletions snippets/precision-alignment.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
// WPCS: precision alignment ok.
]]></content>
<tabTrigger>wpcs precision alignment</tabTrigger>
<scope>source.php</scope>
<scope>source.php, source.js</scope>
<description>WPCS: precision alignment ok</description>
</snippet>
</snippet>

0 comments on commit 36196af

Please sign in to comment.