Skip to content

Commit 5b7602a

Browse files
committed
fix(types): prefix unused variables with underscore
1 parent 4b0773d commit 5b7602a

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/QuillEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const QuillEditor = () => {
9494
bindings: {
9595
'keep-font': {
9696
key: 'Enter',
97-
handler: function (range, context) {
97+
handler: function (_range, context) {
9898
setTimeout(() => {
9999
// keep font style on new lines
100100
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];

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"baseUrl": "src",
2424
"forceConsistentCasingInFileNames": true,
2525
"esModuleInterop": true,
26-
"suppressImplicitAnyIndexErrors": true,
2726
"strictNullChecks": false,
2827
"allowSyntheticDefaultImports": true,
2928
"experimentalDecorators": true

0 commit comments

Comments
 (0)