Skip to content

Commit c010941

Browse files
authored
chore: eslint
1 parent 3a3a8ca commit c010941

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"rules": {
1313
"import/extensions": "off",
1414
"import/no-unresolved": "off",
15-
"github/no-inner-html": "off"
15+
"github/no-inner-html": "off",
16+
"eslint-comments/no-use": "off"
1617
}
1718
}
1819
]

test/test.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ describe('paste-markdown', function () {
174174
assert.equal(textarea.value, '')
175175
})
176176

177-
it("retains urls of special GitHub links", function () {
178-
// eslint-disable-next-line github/unescaped-html-literal
177+
it('retains urls of special GitHub links', function () {
179178
const href = 'https://github.com/octocat/repo/issues/1'
179+
// eslint-disable-next-line github/unescaped-html-literal
180180
const link = `<meta charset='utf-8'><a href=${href} data-hovercard-type="issue">#1</a>`
181181
const plaintextLink = '#1'
182182

@@ -192,8 +192,10 @@ describe('paste-markdown', function () {
192192
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><span>another link</span></a></p>
193193
<br /><a href="https://github.com/"><span>Link</span></a><span> at the beginning, link at the </span>
194194
<a href="https://github.com/"><span>https://github.com/</span></a></b>`
195-
// eslint-disable-next-line i18n-text/no-en
196-
const plaintextSentence = 'This is a https://github.com and another link\n\nLink at the beginning, link at the https://github.com/'
195+
/* eslint-disable i18n-text/no-en */
196+
const plaintextSentence =
197+
'This is a https://github.com and another link\n\nLink at the beginning, link at the https://github.com/'
198+
/* eslint-enable i18n-text/no-en */
197199
const markdownSentence =
198200
'This is a https://github.com/ and [another link](https://www.youtube.com/watch?v=dQw4w9WgXcQ)\n\n' +
199201
'[Link](https://github.com/) at the beginning, link at the https://github.com/'

0 commit comments

Comments
 (0)