Skip to content

Commit

Permalink
chore: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 4, 2023
1 parent 442c0ed commit 547d68f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rules/prefer-to-have-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const create = (context) => {
if (
typeof styleValue.value !== "number" &&
!(styleValue.value instanceof RegExp) &&
styleName.type !== 'Identifier'
styleName.type !== "Identifier"
) {
fix = (fixer) => {
return [
Expand Down Expand Up @@ -209,7 +209,10 @@ export const create = (context) => {

let fix = null;

if (typeof styleName.value !== "number" && styleName.type !== 'Identifier') {
if (
typeof styleName.value !== "number" &&
styleName.type !== "Identifier"
) {
fix = (fixer) => {
return [
fixer.removeRange([
Expand Down

0 comments on commit 547d68f

Please sign in to comment.