mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
feat: Add eslint/turbo rule (#27317)
* Add all apps to the turbo config. Sort the configs by name. * Add eslint-config-turbo to all apps. * Add environment vars to all apps in the turbo configs. These were reported by the eslint-turbo config.
This commit is contained in:
1 parent
3738cebbd7
commit
865072ff8b
4 files changed
+70
-27
No files matched your search
Generated
+32
-1
@@ -20093,6 +20093,17 @@
|
||||
"resolved": "packages/eslint-config-supabase",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/eslint-config-turbo": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-turbo/-/eslint-config-turbo-2.0.4.tgz",
|
||||
"integrity": "sha512-zGvU+bxoNWVvSl0prGItrnH9FgeNzKEAjRmv8ruqql1psI37T8IoLF/XeOzT3CzzYzJxuI3wW1yb2agDFYQdHQ==",
|
||||
"dependencies": {
|
||||
"eslint-plugin-turbo": "2.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">6.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-node": {
|
||||
"version": "0.3.9",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz",
|
||||
@@ -20336,6 +20347,25 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-turbo": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-turbo/-/eslint-plugin-turbo-2.0.4.tgz",
|
||||
"integrity": "sha512-Ozn//vTXJeqIEvEkThM2vuuldMckPqAne7vg/S3GxF+BBY516cjdp7+dYpCU5Q0083hVm638c8542ubccNE+8w==",
|
||||
"dependencies": {
|
||||
"dotenv": "16.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">6.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-turbo/node_modules/dotenv": {
|
||||
"version": "16.0.3",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz",
|
||||
"integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-scope": {
|
||||
"version": "7.2.2",
|
||||
"license": "BSD-2-Clause",
|
||||
@@ -42664,7 +42694,8 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eslint-config-next": "^14.2.3",
|
||||
"eslint-config-prettier": "^9.1.0"
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-turbo": "^2.0.4"
|
||||
}
|
||||
},
|
||||
"packages/icons": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
extends: ['prettier', 'next/core-web-vitals'],
|
||||
extends: ['prettier', 'next/core-web-vitals', 'eslint-config-turbo'],
|
||||
rules: {
|
||||
'@next/next/no-html-link-for-pages': 'off',
|
||||
'react/jsx-key': 'off',
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eslint-config-next": "^14.2.3",
|
||||
"eslint-config-prettier": "^9.1.0"
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-turbo": "^2.0.4"
|
||||
}
|
||||
}
|
||||
+35
-24
@@ -5,45 +5,56 @@
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
},
|
||||
"www#build": {
|
||||
"database-design#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": [
|
||||
"SUPABASE_SERVICE_ROLE_SECRET",
|
||||
"EMAIL_TO_ID_SECRET",
|
||||
"SUPABASE_URL",
|
||||
"GITHUB_OAUTH_CLIENT_SECRET"
|
||||
],
|
||||
"env": ["NEXT_PUBLIC_*", "OPENAI_API_KEY", "VERCEL_URL"],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
},
|
||||
"design-system#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": ["NEXT_PUBLIC_*"],
|
||||
"outputs": [".next/**", "!.next/cache/**", ".contentlayer/**"]
|
||||
},
|
||||
"docs#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": ["OPENAI_API_KEY"],
|
||||
"env": ["NEXT_PUBLIC_*", "NODE_ENV", "OPENAI_API_KEY", "SKIP_BUILD_STATIC_GENERATION"],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
},
|
||||
"studio#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": [
|
||||
"SITE_URL",
|
||||
"AUTH0_AUDIENCE",
|
||||
"AUTH0_CLIENT_ID",
|
||||
"AUTH0_CLIENT_SECRET",
|
||||
"AUTH0_DOMAIN",
|
||||
"COOKIE_DOMAIN",
|
||||
"INTERCOM_API_KEY",
|
||||
"AUTH_JWT_SECRET",
|
||||
"DEFAULT_ORGANIZATION_NAME",
|
||||
"DEFAULT_PROJECT_NAME",
|
||||
"LOGFLARE_API_KEY",
|
||||
"LOGFLARE_URL",
|
||||
"NEXT_PUBLIC_*",
|
||||
"OPENAI_API_KEY",
|
||||
"PLATFORM_PG_META_URL",
|
||||
"READ_ONLY_API_KEY",
|
||||
"READ_ONLY_URL",
|
||||
"SENTRY_AUTH_TOKEN",
|
||||
"SENTRY_ORG",
|
||||
"SENTRY_PROJECT",
|
||||
"SENTRY_URL",
|
||||
"SESSION_COOKIE_SECRET",
|
||||
"SUPABASE_ENCRYPTION_KEY",
|
||||
"PLATFORM_PG_META_URL",
|
||||
"NEXT_PUBLIC_VERCEL_ENV",
|
||||
"NEXT_PUBLIC_SITE_URL"
|
||||
"STUDIO_PG_META_URL",
|
||||
"SUPABASE_ANON_KEY",
|
||||
"SUPABASE_PUBLIC_URL",
|
||||
"SUPABASE_SERVICE_KEY",
|
||||
"SUPABASE_URL",
|
||||
"VERCEL_GIT_COMMIT_SHA",
|
||||
"VERCEL_URL"
|
||||
],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
},
|
||||
"www#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": [
|
||||
"GITHUB_CHANGELOG_APP_*",
|
||||
"MISC_USE_SERVICE_ROLE_KEY",
|
||||
"NEXT_PUBLIC_*",
|
||||
"NODE_ENV",
|
||||
"OPENAI_API_KEY",
|
||||
"npm_lifecycle_event"
|
||||
],
|
||||
"outputs": [".next/**", "!.next/cache/**", ".contentlayer/**"]
|
||||
},
|
||||
"lint": {
|
||||
"outputs": []
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user