Skip to content

Commit f831d3f

Browse files
committed
Fix linters
1 parent e258873 commit f831d3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/rules/no-unknown-property.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const ATTRIBUTE_TAGS_MAP = {
6363
imageSizes: ['link'],
6464
imageSrcSet: ['link'],
6565
property: ['meta'],
66-
viewBox: ["marker", "pattern", "svg", "symbol", "view"],
66+
viewBox: ['marker', 'pattern', 'svg', 'symbol', 'view'],
6767
as: ['link'],
6868
valign: ['tr', 'td', 'th', 'thead', 'tbody', 'tfoot', 'colgroup', 'col'], // deprecated, but known
6969
noModule: ['script'],

tests/lib/rules/no-unknown-property.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ ruleTester.run('no-unknown-property', rule, {
123123
{ code: '<video controlsList="nodownload" controls={this.controls} loop={true} muted={false} src={this.videoSrc} playsInline={true}></video>' },
124124
{ code: '<audio controlsList="nodownload" controls={this.controls} crossOrigin="anonymous" disableRemotePlayback loop muted preload="none" src="something" onAbort={this.abort} onDurationChange={this.durationChange} onEmptied={this.emptied} onEnded={this.end} onError={this.error}></audio>' },
125125
{ code: '<marker id={markerId} viewBox="0 0 2 2" refX="1" refY="1" markerWidth="1" markerHeight="1" orient="auto" />' },
126-
{ code: `<pattern id="pattern" viewBox="0,0,10,10" width="10%" height="10%" />`},
127-
{ code: `<symbol id="myDot" width="10" height="10" viewBox="0 0 2 2" />`},
128-
{ code: `<view id="one" viewBox="0 0 100 100" />`},
126+
{ code: '<pattern id="pattern" viewBox="0,0,10,10" width="10%" height="10%" />' },
127+
{ code: '<symbol id="myDot" width="10" height="10" viewBox="0 0 2 2" />' },
128+
{ code: '<view id="one" viewBox="0 0 100 100" />' },
129129
{
130130
code: `
131131
<table>

0 commit comments

Comments
 (0)