Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. "$(dirname -- "$0")/_/husky.sh"

pnpm fix-redirects
pnpm link-checker
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.1",
"description": "Optimism Docs",
"scripts": {
"lint": "eslint . --ext mdx --max-warnings 0 && pnpm spellcheck:lint && pnpm check-redirects && pnpm link-checker",
"prepare": "husky",
"lint": "eslint . --ext mdx --max-warnings 0 && pnpm spellcheck:lint && pnpm check-redirects",
"fix": "eslint . --ext mdx --fix && pnpm spellcheck:fix && pnpm breadcrumbs && pnpm fix-redirects",
"spellcheck:lint": "cspell lint \"**/*.mdx\"",
"spellcheck:fix": "cspell --words-only --unique \"**/*.mdx\" | sort --ignore-case | uniq > words.txt",
Expand All @@ -18,6 +19,16 @@
"start": "next start",
"postbuild": "next-sitemap"
},
"lint-staged": {
"**/*.mdx": [
"eslint --max-warnings 0",
"cspell lint"
],
"**/*": [
"pnpm fix-redirects",
"pnpm link-checker"
]
},
"dependencies": {
"@eth-optimism/contracts-ts": "^0.17.0",
"@eth-optimism/tokenlist": "^9.0.9",
Expand Down Expand Up @@ -51,6 +62,8 @@
"ethers": "^5",
"globby": "^11.0.4",
"gray-matter": "^4.0.3",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"remark": "^15.0.1",
"remark-code-import": "^1.2.0",
"remark-frontmatter": "^5.0.0",
Expand All @@ -76,4 +89,4 @@
"nextra@2.13.2": "patches/nextra@2.13.2.patch"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cd simple-optimism-node

## Configuration

Configuration for `simple-optimism-node` is handled through environment variables inside of an `.env` file.
Configuration for `simple-optimism-node` is handled through environment variables inside of an `.env` file

<Steps>
{<h3>Step-by-Step Guide to Creating an .env File</h3>}
Expand Down