From 0bddf6e8ade5e91efcb688d2f94a1fe60c5c8f00 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Tue, 11 Jun 2024 07:52:59 -0600 Subject: [PATCH] Remove root eslintrc from basic example. (#8423) ### Description Some small examples fixes: - `basic` to line up with best practices - `with-berry` because the lockfile somehow got broken? --- examples/basic/.eslintrc.js | 10 ---------- examples/basic/package.json | 2 -- examples/basic/pnpm-lock.yaml | 6 ------ examples/with-berry/yarn.lock | 22 +++++++++++----------- 4 files changed, 11 insertions(+), 29 deletions(-) delete mode 100644 examples/basic/.eslintrc.js diff --git a/examples/basic/.eslintrc.js b/examples/basic/.eslintrc.js deleted file mode 100644 index e928b8686408e..0000000000000 --- a/examples/basic/.eslintrc.js +++ /dev/null @@ -1,10 +0,0 @@ -// This configuration only applies to the package manager root. -/** @type {import("eslint").Linter.Config} */ -module.exports = { - ignorePatterns: ["apps/**", "packages/**"], - extends: ["@repo/eslint-config/library.js"], - parser: "@typescript-eslint/parser", - parserOptions: { - project: true, - }, -}; diff --git a/examples/basic/package.json b/examples/basic/package.json index b8cb912e7d136..34595f8ca205a 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -8,8 +8,6 @@ "format": "prettier --write \"**/*.{ts,tsx,md}\"" }, "devDependencies": { - "@repo/eslint-config": "workspace:*", - "@repo/typescript-config": "workspace:*", "prettier": "^3.2.5", "turbo": "^2.0.3", "typescript": "^5.4.5" diff --git a/examples/basic/pnpm-lock.yaml b/examples/basic/pnpm-lock.yaml index 28b41d9661f82..fdf24ce3139c5 100644 --- a/examples/basic/pnpm-lock.yaml +++ b/examples/basic/pnpm-lock.yaml @@ -8,12 +8,6 @@ importers: .: devDependencies: - '@repo/eslint-config': - specifier: workspace:* - version: link:packages/eslint-config - '@repo/typescript-config': - specifier: workspace:* - version: link:packages/typescript-config prettier: specifier: ^3.2.5 version: 3.2.5 diff --git a/examples/with-berry/yarn.lock b/examples/with-berry/yarn.lock index f214f298d1d16..3518ca38151bd 100644 --- a/examples/with-berry/yarn.lock +++ b/examples/with-berry/yarn.lock @@ -4424,17 +4424,6 @@ __metadata: languageName: node linkType: hard -"root-workspace-0b6124@workspace:.": - version: 0.0.0-use.local - resolution: "root-workspace-0b6124@workspace:." - dependencies: - eslint: 8.57.0 - eslint-config-custom: "*" - prettier: ^3.2.5 - turbo: ^2.0.3 - languageName: unknown - linkType: soft - "run-applescript@npm:^5.0.0": version: 5.0.0 resolution: "run-applescript@npm:5.0.0" @@ -5295,6 +5284,17 @@ __metadata: languageName: node linkType: hard +"with-berry@workspace:.": + version: 0.0.0-use.local + resolution: "with-berry@workspace:." + dependencies: + eslint: 8.57.0 + eslint-config-custom: "*" + prettier: ^3.2.5 + turbo: ^2.0.3 + languageName: unknown + linkType: soft + "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version: 7.0.0 resolution: "wrap-ansi@npm:7.0.0"