chore: Eslint ignore unused `_` variables
This commit is contained in:
parent
8aaf9bc854
commit
b7156d0c93
|
@ -15,4 +15,15 @@ export default [
|
|||
},
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
rules: {
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^_",
|
||||
"varsIgnorePattern": "^_",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
@ -12,7 +12,7 @@ const alertRegex = /^:>(NOTE|TIP|IMPORTANT|WARNING|CAUTION)/i;
|
|||
*/
|
||||
function remarkAlert/*: Plugin<[Option?], Root> = */() /*=>*/ {
|
||||
return (tree) => {
|
||||
visit(tree, "blockquote", (node, index, parent) => {
|
||||
visit(tree, "blockquote", (node, _index, _parent) => {
|
||||
let alertType = '';
|
||||
let title = '';
|
||||
let isNext = true;
|
||||
|
|
Loading…
Reference in New Issue