Skip to content

Commit

Permalink
eslint fixes (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony authored Oct 20, 2022
1 parent 5ecbff6 commit 4a4fabb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
19 changes: 10 additions & 9 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
node_modules/
.next
build
dist
*.tsbuildinfo
*.gitignore
*.svg
*.lock
*.npmignore
examples/**
target/
.next/
build/
dist/

/examples/

packages/create-turbo/templates
packages/turbo-tracing-next-plugin/test/with-mongodb-mongoose
crates/*/tests/**
crates/next-core/js/src/compiled
16 changes: 0 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
module.exports = {
root: true,
extends: ["next", "prettier"],
ignorePatterns: [
".yarn",
"target",
"dist",
"node_modules",
"crates/*/tests",
"crates/*/benches",
"packages/create-turbo/templates",
"packages/turbo-tracing-next-plugin/test/with-mongodb-mongoose",
],
settings: {
next: {
rootDir: ["docs/", "create-turbo/"],
Expand All @@ -20,12 +10,6 @@ module.exports = {
"@next/next/no-html-link-for-pages": "off",
},
overrides: [
{
files: ["docs/theme.config.js"],
rules: {
"react-hooks/rules-of-hooks": "off",
},
},
{
files: "crates/*/js/**",
rules: {
Expand Down
2 changes: 1 addition & 1 deletion docs/theme.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const theme = {
},
logo: HeaderLogo,
logoLink: false,
head: function () {
head: function Head() {
const router = useRouter();
const { frontMatter, title } = useConfig();
const fullUrl =
Expand Down
14 changes: 12 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a4fabb

Please sign in to comment.