From f01fb2830a098b80aa59b003c22acae88ad0c5d3 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 4 Jul 2023 11:11:05 -0400 Subject: [PATCH 1/2] patch Eslint GetToken issue --- backend/.eslintrc | 35 +++++++++++++++++++++++++++++------ frontend/.eslintrc.js | 1 + 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/backend/.eslintrc b/backend/.eslintrc index 64b049ea7..172e72d4b 100644 --- a/backend/.eslintrc +++ b/backend/.eslintrc @@ -1,21 +1,44 @@ { "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint", "unused-imports"], + "plugins": [ + "@typescript-eslint", + "unused-imports" + ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended" ], "rules": { + "@typescript-eslint/no-empty-function": "off", "no-console": 2, - "quotes": ["error", "double", { "avoidEscape": true }], - "comma-dangle": ["error", "only-multiline"], + "quotes": [ + "error", + "double", + { + "avoidEscape": true + } + ], + "comma-dangle": [ + "error", + "only-multiline" + ], "@typescript-eslint/no-unused-vars": "off", "unused-imports/no-unused-imports": "error", "unused-imports/no-unused-vars": [ "warn", - { "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" } + { + "vars": "all", + "varsIgnorePattern": "^_", + "args": "after-used", + "argsIgnorePattern": "^_" + } ], - "sort-imports": ["error", { "ignoreDeclarationSort": true }] + "sort-imports": [ + "error", + { + "ignoreDeclarationSort": true + } + ] } -} +} \ No newline at end of file diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index e9cec0e24..8fe8e0cb9 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -70,6 +70,7 @@ module.exports = { ], "@typescript-eslint/no-non-null-assertion": "off", "simple-import-sort/exports": "warn", + "@typescript-eslint/no-empty-function": "off", "simple-import-sort/imports": [ "warn", { From ff2c9e98c07ed073a6b1e1ba834957e07a767cc8 Mon Sep 17 00:00:00 2001 From: Ray Keating Date: Tue, 4 Jul 2023 19:48:36 -0400 Subject: [PATCH 2/2] add --path flag to docs --- docs/cli/commands/run.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/cli/commands/run.mdx b/docs/cli/commands/run.mdx index b9995f82d..62d0c5104 100644 --- a/docs/cli/commands/run.mdx +++ b/docs/cli/commands/run.mdx @@ -113,4 +113,14 @@ Inject secrets from Infisical into your application process. By default, all secrets are fetched + + The `--path` flag indicates which project folder secrets will be injected from. + + ```bash + # Example + infisical run --path="/nextjs" -- npm run dev + ``` + + +