Skip to content

Commit

Permalink
chore: typo (#2887)
Browse files Browse the repository at this point in the history
Co-authored-by: wu_zemin <wu_zemin@hithinksoft.com>
  • Loading branch information
lyric-zemin and wu_zemin committed Jul 19, 2023
1 parent ee117d7 commit f4a0421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/order-attributify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { distDir } from '../dirs'

const sortClasses = createSyncFn<(classes: string) => Promise<string>>(join(distDir, 'worker-sort.cjs'))

const INGORE_ATTRIBUTES = ['style', 'class', 'classname', 'value']
const IGNORE_ATTRIBUTES = ['style', 'class', 'classname', 'value']

export default ESLintUtils.RuleCreator(name => name)({
name: 'order-attributify',
Expand All @@ -31,7 +31,7 @@ export default ESLintUtils.RuleCreator(name => name)({

const templateBodyVisitor: RuleListener = {
VStartTag(node: any) {
const valueless = node.attributes.filter((i: any) => typeof i.key?.name === 'string' && !INGORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null)
const valueless = node.attributes.filter((i: any) => typeof i.key?.name === 'string' && !IGNORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null)
if (!valueless.length)
return

Expand Down

0 comments on commit f4a0421

Please sign in to comment.