Unverified Commit 5571c146 authored by Pavel Ševčík's avatar Pavel Ševčík
Browse files

Updated dependencies, download scripts synchronously

parent 267c81e9
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
warnOnUnsupportedTypeScriptVersion: true,
},
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true,
},
plugins: ["@typescript-eslint", "react", "react-hooks"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
rules: {
// https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules
"react/forbid-foreign-prop-types": ["warn", { allowInPropTypes: true }],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-target-blank": "warn",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": [
"warn",
{
allowAllCaps: true,
ignore: [],
},
],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/no-danger-with-children": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-typos": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/style-prop-object": "warn",
// https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
"react-hooks/rules-of-hooks": "error",
},
};
{
"extends": "next/core-web-vitals"
}
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
......@@ -10,7 +10,7 @@
"build": "next build && next export",
"postbuild": "next-sitemap",
"start": "next start",
"lint:js": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:js": "next lint",
"lint:css": "stylelint src/css/*.css",
"lint": "yarn lint:js && yarn lint:css",
"typescript": "tsc --noEmit",
......@@ -18,42 +18,24 @@
},
"dependencies": {
"gray-matter": "^4.0.3",
"next": "^10.2.0",
"next": "^11.1.2",
"next-sitemap": "^1.6.111",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "^13.0.0",
"remark-html": "^13.0.1",
"remark": "^14.0.1",
"remark-html": "^14.0.1",
"rss": "^1.2.2"
},
"devDependencies": {
"@types/node": "^15.12.2",
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.7",
"@types/rss": "^0.0.28",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"@types/rss": "^0.0.29",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": ">=4.3.0",
"lint-staged": ">=10.5.4",
"prettier": "^2.3.1",
"eslint-config-next": "11.1.2",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"typescript": "^4.3.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.--write": [
"yarn run lint --",
"yarn run format --"
]
}
}
import remark from "remark";
import { remark } from "remark";
import html from "remark-html";
export const markdownToHtml = async (markdown: string): Promise<string> => {
......
......@@ -12,7 +12,7 @@ const description =
const MyApp = ({ Component, pageProps }) => {
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery(".sidenav").sidenav();
}, []);
......@@ -45,8 +45,10 @@ const MyApp = ({ Component, pageProps }) => {
/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js" defer />
<script src="/js/materialize.js" defer />
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js" />
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
<script src="/js/materialize.js" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png" />
......
......@@ -4,13 +4,13 @@ import Head from "next/head";
const HomePage: NextPage = () => {
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery(".parallax").parallax();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery(".materialboxed").materialbox(); // centers the image and enlarges
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery(".carousel.carousel-slider").carousel({
fullWidth: true,
......@@ -67,7 +67,7 @@ const HomePage: NextPage = () => {
RoninDojo is a Samourai Wallet Community-driven Bitcoin full node stack optimized for Single Board
Computers, like the Raspberry Pi 4. Our user interfaces and powerful features are fit for any level
Bitcoiner. RoninDojo is focused on providing the tools you need to safely and securely use your Samourai
Wallet and Hardware Wallet so you can "Be your own Master!".
Wallet and Hardware Wallet so you can &quot;Be your own Master!&quot;.
</p>
</div>
<div className="col s12 center carousel carousel-slider z-depth-5">
......@@ -93,7 +93,7 @@ const HomePage: NextPage = () => {
<div className="section no-pad-bot">
<div className="container">
<div className="row center">
<h5 className="header col s12 light">"The ultimate aim of martial arts is not having to use them."</h5>
<h5 className="header col s12 light">&quot;The ultimate aim of martial arts is not having to use them.&quot;</h5>
</div>
</div>
</div>
......@@ -230,7 +230,7 @@ const HomePage: NextPage = () => {
<div className="section no-pad-bot">
<div className="container">
<div className="row center">
<h5 className="header col s12 light">"Even if a man has no natural ability, he can be a warrior."</h5>
<h5 className="header col s12 light">&quot;Even if a man has no natural ability, he can be a warrior.&quot;</h5>
</div>
</div>
</div>
......@@ -369,7 +369,7 @@ const HomePage: NextPage = () => {
<div className="section no-pad-bot">
<div className="container">
<div className="row center">
<h5 className="header col s12 light">"Know your enemy, know his sword."</h5>
<h5 className="header col s12 light">&quot;Know your enemy, know his sword.&quot;</h5>
</div>
</div>
</div>
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment