Skip to content

Commit c3936a9

Browse files
committed
fix(types): prefix unused variables with underscore
1 parent 6fe85de commit c3936a9

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/QuillEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const QuillEditor = () => {
8989
bindings: {
9090
'keep-font': {
9191
key: 'Enter',
92-
handler: function (range, context) {
92+
handler: function (_range, context) {
9393
setTimeout(() => {
9494
// keep font style on new lines
9595
this.quill.format('font', context.format.font, Quill.sources.USER);

src/quill-markdown.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class MarkdownShortcuts {
1919
{
2020
name: 'blockquote',
2121
pattern: /^(>)\s/g,
22-
action: (text, selection) => {
22+
action: (_text, selection) => {
2323
// Need to defer this action https://github.com/quilljs/quill/issues/1134
2424
setTimeout(() => {
2525
this.quill.formatLine(selection.index, 1, 'blockquote', true);
@@ -30,7 +30,7 @@ export class MarkdownShortcuts {
3030
{
3131
name: 'bolditalic',
3232
pattern: /(?:\*|_){3}(.+?)(?:\*|_){3}/g,
33-
action: (text, selection, pattern, lineStart) => {
33+
action: (text, _selection, pattern, lineStart) => {
3434
let match = pattern.exec(text);
3535

3636
const annotatedText = match[0];
@@ -51,7 +51,7 @@ export class MarkdownShortcuts {
5151
{
5252
name: 'bold',
5353
pattern: /(?:\*|_){2}(.+?)(?:\*|_){2}/g,
54-
action: (text, selection, pattern, lineStart) => {
54+
action: (text, _selection, pattern, lineStart) => {
5555
let match = pattern.exec(text);
5656

5757
const annotatedText = match[0];
@@ -72,7 +72,7 @@ export class MarkdownShortcuts {
7272
{
7373
name: 'italic',
7474
pattern: /(?:\*|_){1}(.+?)(?:\*|_){1}/g,
75-
action: (text, selection, pattern, lineStart) => {
75+
action: (text, _selection, pattern, lineStart) => {
7676
let match = pattern.exec(text);
7777

7878
const annotatedText = match[0];
@@ -93,7 +93,7 @@ export class MarkdownShortcuts {
9393
{
9494
name: 'strikethrough',
9595
pattern: /(?:~~)(.+?)(?:~~)/g,
96-
action: (text, selection, pattern, lineStart) => {
96+
action: (text, _selection, pattern, lineStart) => {
9797
let match = pattern.exec(text);
9898

9999
const annotatedText = match[0];
@@ -128,7 +128,7 @@ export class MarkdownShortcuts {
128128
{
129129
name: 'code',
130130
pattern: /(?:`)(.+?)(?:`)/g,
131-
action: (text, selection, pattern, lineStart) => {
131+
action: (text, _selection, pattern, lineStart) => {
132132
let match = pattern.exec(text);
133133

134134
const annotatedText = match[0];

0 commit comments

Comments
 (0)