From 38d8f33036d9a62ac498a089fe176d31ecb0b45a Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Fri, 22 Nov 2024 14:08:52 -0700 Subject: [PATCH] WIP --- examples/basic/packages/eslint-config/base.js | 12 +++- examples/basic/packages/eslint-config/next.js | 1 - .../basic/packages/eslint-config/package.json | 1 + examples/basic/pnpm-lock.yaml | 67 +++++++++++-------- 4 files changed, 48 insertions(+), 33 deletions(-) diff --git a/examples/basic/packages/eslint-config/base.js b/examples/basic/packages/eslint-config/base.js index 14e6056f11ca8..31f5f43d5c368 100644 --- a/examples/basic/packages/eslint-config/base.js +++ b/examples/basic/packages/eslint-config/base.js @@ -2,6 +2,7 @@ import js from "@eslint/js"; import eslintConfigPrettier from "eslint-config-prettier"; import turboPlugin from "eslint-plugin-turbo"; import tseslint from "typescript-eslint"; +import onlyWarn from "eslint-plugin-only-warn"; /** * A shared ESLint configuration for the repository. @@ -12,9 +13,6 @@ export const config = [ js.configs.recommended, eslintConfigPrettier, ...tseslint.configs.recommended, - { - ignores: ["dist/**"], - }, { plugins: { turbo: turboPlugin, @@ -23,4 +21,12 @@ export const config = [ "turbo/no-undeclared-env-vars": "warn", }, }, + { + plugins: { + onlyWarn, + }, + }, + { + ignores: ["dist/**"], + }, ]; diff --git a/examples/basic/packages/eslint-config/next.js b/examples/basic/packages/eslint-config/next.js index 458b03f7d5616..43fbd8ebcd73d 100644 --- a/examples/basic/packages/eslint-config/next.js +++ b/examples/basic/packages/eslint-config/next.js @@ -39,7 +39,6 @@ export const config = [ plugins: { "react-hooks": pluginReactHooks, }, - settings: { react: { version: "detect" } }, rules: { ...pluginReactHooks.configs.recommended.rules, diff --git a/examples/basic/packages/eslint-config/package.json b/examples/basic/packages/eslint-config/package.json index 8b7599639a846..1a167ecd78138 100644 --- a/examples/basic/packages/eslint-config/package.json +++ b/examples/basic/packages/eslint-config/package.json @@ -14,6 +14,7 @@ "@typescript-eslint/parser": "^7.1.0", "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-turbo": "^2.3.0", diff --git a/examples/basic/pnpm-lock.yaml b/examples/basic/pnpm-lock.yaml index 1671f41fb4825..c01e2f58be72f 100644 --- a/examples/basic/pnpm-lock.yaml +++ b/examples/basic/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^3.2.5 version: 3.3.3 turbo: - specifier: ^2.3.2-canary.0 - version: 2.3.2-canary.0 + specifier: ^2.3.0 + version: 2.3.1 typescript: specifier: 5.5.4 version: 5.5.4 @@ -115,6 +115,9 @@ importers: eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@9.15.0) + eslint-plugin-only-warn: + specifier: ^1.1.0 + version: 1.1.0 eslint-plugin-react: specifier: ^7.37.2 version: 7.37.2(eslint@9.15.0) @@ -1117,6 +1120,10 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 + eslint-plugin-only-warn@1.1.0: + resolution: {integrity: sha512-2tktqUAT+Q3hCAU0iSf4xAN1k9zOpjK5WO8104mB0rT/dGhOa09582HN5HlbxNbPRZ0THV7nLGvzugcNOSjzfA==} + engines: {node: '>=6'} + eslint-plugin-react-hooks@5.0.0: resolution: {integrity: sha512-hIOwI+5hYGpJEc4uPRmz2ulCjAGD/N13Lukkh8cLV0i2IRk/bdZDYjgLVHj+U9Z704kLIdIO6iueGvxNur0sgw==} engines: {node: '>=10'} @@ -2210,38 +2217,38 @@ packages: tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - turbo-darwin-64@2.3.2-canary.0: - resolution: {integrity: sha512-c4ant02zc2JVAixTQopmC6L4fUNe+QrbbSKjZjPEbEvV4sDXjSIkk+a7wNKJ7iM89qXg+x7ujaWvNwxi22aSOw==} + turbo-darwin-64@2.3.1: + resolution: {integrity: sha512-tjHfjW/Gs8Q9IO+9gPdIsSStZ8I09QYDRT/SyhFTPLnc7O2ZlxHPBVFfjUkHUjanHNYO8CpRGt+zdp1PaMCruw==} cpu: [x64] os: [darwin] - turbo-darwin-arm64@2.3.2-canary.0: - resolution: {integrity: sha512-XaADvYl5l/u48tPqRlFQ8wep221qegf3uJL8agTjAwfSjhrHfxYHi5rYTqiE8nFXb6+SasPw5C0vYYGAgi4v4A==} + turbo-darwin-arm64@2.3.1: + resolution: {integrity: sha512-At1WStnxCfrBQ4M2g6ynre8WsusGwA11okhVolBxyFUemYozDTtbZwelr+IqNggjT251vviokxOkcFzzogbiFw==} cpu: [arm64] os: [darwin] - turbo-linux-64@2.3.2-canary.0: - resolution: {integrity: sha512-snk78ZJIQxJIpYbL/9GuYEGIOP/znRn19VF3gPx8rkmv8pyCbQOc9xNz148VcepWf4pYnJq/bBUU0chIc8RWAA==} + turbo-linux-64@2.3.1: + resolution: {integrity: sha512-COwEev7s9fsxLM2eoRCyRLPj+BXvZjFIS+GxzdAubYhoSoZit8B8QGKczyDl6448xhuFEWKrpHhcR9aBuwB4ag==} cpu: [x64] os: [linux] - turbo-linux-arm64@2.3.2-canary.0: - resolution: {integrity: sha512-TeztMD8FkNOE4+M6ODIXKqFTsHco23+8lvp2KkK2n03Raq8hwjcu8Q4E5qdDjyFJkH3YlYkxyAY4Jzb196G/OA==} + turbo-linux-arm64@2.3.1: + resolution: {integrity: sha512-AP0uE15Rhxza2Jl+Q3gxdXRA92IIeFAYaufz6CMcZuGy9yZsBlLt9w6T47H6g7XQPzWuw8pzfjM1omcTKkkDpQ==} cpu: [arm64] os: [linux] - turbo-windows-64@2.3.2-canary.0: - resolution: {integrity: sha512-snElT/wT/WefwxHEvtvWJny2YuaVIWxmbLEKj6PPE+7qbxGiF82ybdtKjVStUdjmWkauH5HxsX/fSbBnil15EA==} + turbo-windows-64@2.3.1: + resolution: {integrity: sha512-HDSneq0dNZYZch74c2eygq+OiJE/JYDs7OsGM0yRYVj336383xkUnxz6W2I7qiyMCQXzp4UVUDZXvZhUYcX3BA==} cpu: [x64] os: [win32] - turbo-windows-arm64@2.3.2-canary.0: - resolution: {integrity: sha512-qierxuJ+oFNO4wF0AzUg2t55J93rAIfMTLcMPl01zbAs1XxAzp8kvc1n8LLEdD1mhVgz8ysaEty3XxLZEKtCxg==} + turbo-windows-arm64@2.3.1: + resolution: {integrity: sha512-7/2/sJZiquwoT/jWBCfV0qKq4NarsJPmDRjMcR9dDMIwCYsGM8ljomkDRTCtkNeFcUvYw54MiRWHehWgbcRPsw==} cpu: [arm64] os: [win32] - turbo@2.3.2-canary.0: - resolution: {integrity: sha512-QEwvfMUZxSYCQFL5e959fHq7Qqol/Sdy5XJ4YKA2kT3HewW1W1I2WttEw2AN5tim80QDkAJQIWPqaOdP58hKTg==} + turbo@2.3.1: + resolution: {integrity: sha512-vHZe/e6k1HZVKiMQPQ1BWFn53vjVQDFKdkjUq/pBKlRWi1gw9LQO6ntH4qZCcHY1rH6TXgsRmexXdgWl96YvVQ==} hasBin: true type-check@0.4.0: @@ -3496,6 +3503,8 @@ snapshots: safe-regex-test: 1.0.3 string.prototype.includes: 2.0.0 + eslint-plugin-only-warn@1.1.0: {} + eslint-plugin-react-hooks@5.0.0(eslint@9.15.0): dependencies: eslint: 9.15.0 @@ -4782,32 +4791,32 @@ snapshots: tslib@2.7.0: {} - turbo-darwin-64@2.3.2-canary.0: + turbo-darwin-64@2.3.1: optional: true - turbo-darwin-arm64@2.3.2-canary.0: + turbo-darwin-arm64@2.3.1: optional: true - turbo-linux-64@2.3.2-canary.0: + turbo-linux-64@2.3.1: optional: true - turbo-linux-arm64@2.3.2-canary.0: + turbo-linux-arm64@2.3.1: optional: true - turbo-windows-64@2.3.2-canary.0: + turbo-windows-64@2.3.1: optional: true - turbo-windows-arm64@2.3.2-canary.0: + turbo-windows-arm64@2.3.1: optional: true - turbo@2.3.2-canary.0: + turbo@2.3.1: optionalDependencies: - turbo-darwin-64: 2.3.2-canary.0 - turbo-darwin-arm64: 2.3.2-canary.0 - turbo-linux-64: 2.3.2-canary.0 - turbo-linux-arm64: 2.3.2-canary.0 - turbo-windows-64: 2.3.2-canary.0 - turbo-windows-arm64: 2.3.2-canary.0 + turbo-darwin-64: 2.3.1 + turbo-darwin-arm64: 2.3.1 + turbo-linux-64: 2.3.1 + turbo-linux-arm64: 2.3.1 + turbo-windows-64: 2.3.1 + turbo-windows-arm64: 2.3.1 type-check@0.4.0: dependencies: