eslint-plugin-lit
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -94,3 +94,3 @@ "use strict"; | ||
'MethodDefinition:exit': methodExit, | ||
'AssignmentExpression:has([left] ThisExpression)': (node) => assignmentFound(node) | ||
'AssignmentExpression:has(.left ThisExpression)': (node) => assignmentFound(node) | ||
}; | ||
@@ -97,0 +97,0 @@ } |
@@ -16,6 +16,8 @@ "use strict"; | ||
}, | ||
hasSuggestions: true, | ||
schema: [], | ||
messages: { | ||
preferNothing: '`nothing` is preferred over empty templates when you want to render' + | ||
' nothing' | ||
' nothing', | ||
useNothing: 'Replace empty template with `nothing` constant' | ||
} | ||
@@ -34,3 +36,11 @@ }, | ||
node, | ||
messageId: 'preferNothing' | ||
messageId: 'preferNothing', | ||
suggest: [ | ||
{ | ||
messageId: 'useNothing', | ||
fix: (fixer) => { | ||
return fixer.replaceText(node, 'nothing'); | ||
} | ||
} | ||
] | ||
}); | ||
@@ -37,0 +47,0 @@ } |
{ | ||
"name": "eslint-plugin-lit", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "lit-html support for ESLint", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121414
2506