Enable arrow-spacing linting rule and fix issues (#8584)

This commit is contained in:
Jon Koops
2022-10-16 17:57:07 +02:00
committed by GitHub
parent 6a6d7d0fea
commit 8fa1b18f04
2 changed files with 1 additions and 2 deletions

View File

@ -40,7 +40,6 @@ module.exports = {
'strict': 'off',
'wrap-iife': 'off',
// TODO: Re-enable the rules below and fix the linting issues.
'arrow-spacing': 'off',
'func-name-matching': 'off',
'no-duplicate-imports': 'off',
'no-invalid-this': 'off',

View File

@ -77,7 +77,7 @@ if (toc) {
var elem = document.querySelector(currentHash);
if (elem.tagName === 'H2' || elem.tagName === 'H4') {
setTimeout(()=>{
setTimeout(() => {
scrollToHeader(elem, true);
}, 10);
}