From 4a4fabb82ef2db5659521574490cc53a4f05931f Mon Sep 17 00:00:00 2001 From: Leah Date: Fri, 21 Oct 2022 01:23:06 +0200 Subject: [PATCH] eslint fixes (#40) --- .eslintignore | 19 ++++++++++--------- .eslintrc.js | 16 ---------------- docs/theme.config.js | 2 +- pnpm-lock.yaml | 14 ++++++++++++-- 4 files changed, 23 insertions(+), 28 deletions(-) diff --git a/.eslintignore b/.eslintignore index 0f5d0a4d4d22a..3817794984ecf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -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 diff --git a/.eslintrc.js b/.eslintrc.js index 642869dda22ee..af97d78b71743 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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/"], @@ -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: { diff --git a/docs/theme.config.js b/docs/theme.config.js index db6ec38eb7853..021601f538311 100644 --- a/docs/theme.config.js +++ b/docs/theme.config.js @@ -30,7 +30,7 @@ const theme = { }, logo: HeaderLogo, logoLink: false, - head: function () { + head: function Head() { const router = useRouter(); const { frontMatter, title } = useConfig(); const fullUrl = diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29ce7f565546c..84f898cc7f5bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6720,7 +6720,7 @@ packages: /axios/0.26.1_debug@4.3.4: resolution: {integrity: sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==} dependencies: - follow-redirects: 1.15.1_debug@4.3.4 + follow-redirects: 1.15.1 transitivePeerDependencies: - debug dev: true @@ -6728,7 +6728,7 @@ packages: /axios/0.27.2: resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==} dependencies: - follow-redirects: 1.15.1_debug@4.3.4 + follow-redirects: 1.15.1 form-data: 4.0.0 transitivePeerDependencies: - debug @@ -11648,6 +11648,15 @@ packages: resolution: {integrity: sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ==} dev: false + /follow-redirects/1.15.1: + resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + /follow-redirects/1.15.1_debug@4.3.4: resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==} engines: {node: '>=4.0'} @@ -11658,6 +11667,7 @@ packages: optional: true dependencies: debug: 4.3.4 + dev: true /fontkit/1.9.0: resolution: {integrity: sha512-HkW/8Lrk8jl18kzQHvAw9aTHe1cqsyx5sDnxncx652+CIfhawokEPkeM3BoIC+z/Xv7a0yMr0f3pRRwhGH455g==}