Skip to content

Commit f6b1181

Browse files
committed
polish the rule file
1 parent 9459bc3 commit f6b1181

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/rules/static-class-names-order.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @fileoverview Alphabetizes classnames.
2+
* @fileoverview Alphabetizes static class names.
33
* @author Maciej Chmurski
44
*/
55
'use strict'
@@ -8,11 +8,7 @@
88
// Requirements
99
// ------------------------------------------------------------------------------
1010

11-
const utils = require('../utils')
12-
13-
// ------------------------------------------------------------------------------
14-
// Helpers
15-
// ------------------------------------------------------------------------------
11+
const { defineTemplateBodyVisitor } = require('../utils')
1612

1713
// ------------------------------------------------------------------------------
1814
// Rule Definition
@@ -29,7 +25,7 @@ module.exports = {
2925
schema: []
3026
},
3127
create: context => {
32-
return utils.defineTemplateBodyVisitor(context, {
28+
return defineTemplateBodyVisitor(context, {
3329
"VAttribute[directive=false][key.name='class']" (node) {
3430
const classList = node.value.value
3531
const classListWithWhitespace = classList.split(/(\s+)/)

0 commit comments

Comments
 (0)