diff --git a/.eslintrc.js b/.eslintrc.js index 448e589e..5b15a85f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -50,16 +50,8 @@ module.exports = { }, globals: {}, rules: { - // FIXME - 'unicorn/prefer-dom-node-append': 'off', - - // TEMP - // FIXME - 'solid/reactivity': 'off', - - // Should be enabled - // 'promise/catch-or-return': 'off', - + // Solid + 'solid/reactivity': 'off', // FIXME 'solid/no-innerhtml': 'off', /** Unicorn **/ @@ -73,8 +65,12 @@ module.exports = { 'unicorn/import-style': 'off', 'unicorn/numeric-separators-style': 'off', 'unicorn/prefer-node-protocol': 'off', + 'unicorn/prefer-dom-node-append': 'off', // FIXME + 'unicorn/prefer-top-level-await': 'warn', 'unicorn/consistent-function-scoping': 'warn', + // Promise + // 'promise/catch-or-return': 'off', // Should be enabled 'promise/always-return': 'off', eqeqeq: 'error', diff --git a/public/icons/remove.svg b/public/icons/remove.svg new file mode 100644 index 00000000..a0723869 --- /dev/null +++ b/public/icons/remove.svg @@ -0,0 +1,6 @@ + diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index ecc3c51b..36d176e4 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -43,7 +43,6 @@ const formatDate = (date: Date) => { export const FullArticle = (props: ArticleProps) => { const { session } = useSession() const formattedDate = createMemo(() => formatDate(new Date(props.article.createdAt))) - const [isSharePopupVisible, setIsSharePopupVisible] = createSignal(false) const mainTopic = () => (props.article.topics?.find((topic) => topic?.slug === props.article.mainTopic)?.title || '').replace( @@ -127,9 +126,6 @@ export const FullArticle = (props: ArticleProps) => { {/**/}