Skip to content

Commit

Permalink
polish the rule file
Browse files Browse the repository at this point in the history
  • Loading branch information
mchmurski-rms committed Nov 11, 2019
1 parent 9459bc3 commit f6b1181
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/rules/static-class-names-order.js
@@ -1,5 +1,5 @@
/**
* @fileoverview Alphabetizes classnames.
* @fileoverview Alphabetizes static class names.
* @author Maciej Chmurski
*/
'use strict'
Expand All @@ -8,11 +8,7 @@
// Requirements
// ------------------------------------------------------------------------------

const utils = require('../utils')

// ------------------------------------------------------------------------------
// Helpers
// ------------------------------------------------------------------------------
const { defineTemplateBodyVisitor } = require('../utils')

// ------------------------------------------------------------------------------
// Rule Definition
Expand All @@ -29,7 +25,7 @@ module.exports = {
schema: []
},
create: context => {
return utils.defineTemplateBodyVisitor(context, {
return defineTemplateBodyVisitor(context, {
"VAttribute[directive=false][key.name='class']" (node) {
const classList = node.value.value
const classListWithWhitespace = classList.split(/(\s+)/)
Expand Down

0 comments on commit f6b1181

Please sign in to comment.