linter-tuned
This commit is contained in:
parent
fdc721ebd0
commit
dc94c5bd8b
|
@ -23,7 +23,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
// 'plugin:@typescript-eslint/recommended-requiring-type-checking', // 23-01-2024 896 problems
|
// 'plugin:@typescript-eslint/recommended-requiring-type-checking', // 23-01-2024 681 problems
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
|
@ -59,7 +59,7 @@ module.exports = {
|
||||||
'unicorn/import-style': 'off',
|
'unicorn/import-style': 'off',
|
||||||
'unicorn/numeric-separators-style': 'off',
|
'unicorn/numeric-separators-style': 'off',
|
||||||
'unicorn/prefer-node-protocol': 'off',
|
'unicorn/prefer-node-protocol': 'off',
|
||||||
'unicorn/prefer-dom-node-append': 'off', // FIXME
|
'unicorn/prefer-dom-node-append': 'warn',
|
||||||
'unicorn/prefer-top-level-await': 'warn',
|
'unicorn/prefer-top-level-await': 'warn',
|
||||||
'unicorn/consistent-function-scoping': 'warn',
|
'unicorn/consistent-function-scoping': 'warn',
|
||||||
'unicorn/no-array-callback-reference': 'warn',
|
'unicorn/no-array-callback-reference': 'warn',
|
||||||
|
|
|
@ -208,9 +208,9 @@ export const FullArticle = (props: Props) => {
|
||||||
tooltipContent.classList.add(styles.tooltipContent)
|
tooltipContent.classList.add(styles.tooltipContent)
|
||||||
tooltipContent.innerHTML = element.dataset.originalTitle || element.dataset.value
|
tooltipContent.innerHTML = element.dataset.originalTitle || element.dataset.value
|
||||||
|
|
||||||
tooltip.appendChild(tooltipContent)
|
tooltip.append(tooltipContent)
|
||||||
|
|
||||||
document.body.appendChild(tooltip)
|
document.body.append(tooltip)
|
||||||
|
|
||||||
if (element.hasAttribute('href')) {
|
if (element.hasAttribute('href')) {
|
||||||
element.setAttribute('href', 'javascript: void(0)')
|
element.setAttribute('href', 'javascript: void(0)')
|
||||||
|
|
|
@ -66,7 +66,7 @@ export const Donate = () => {
|
||||||
script.src = 'https://widget.cloudpayments.ru/bundles/cloudpayments.js'
|
script.src = 'https://widget.cloudpayments.ru/bundles/cloudpayments.js'
|
||||||
script.async = true
|
script.async = true
|
||||||
script.addEventListener('load', initiated)
|
script.addEventListener('load', initiated)
|
||||||
document.head.appendChild(script)
|
document.head.append(script)
|
||||||
})
|
})
|
||||||
|
|
||||||
const show = () => {
|
const show = () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user