-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linting fails due to upstream configuration difference #11
Comments
Ah let me have a look at this. Is your SST app installed one directory inside your project root? |
Yes, so my project looks a bit like this:
I'm using that ESLint config for other files in the same repo. I suppose it's worth it to mention that I'm using Yarn workspaces and the # patch file named @serverless-stack+cli+0.4.2.patch
diff --git a/node_modules/@serverless-stack/cli/scripts/config/cdkHelpers.js b/node_modules/@serverless-stack/cli/scripts/config/cdkHelpers.js
index f473dba..ddc8b4a 100644
--- a/node_modules/@serverless-stack/cli/scripts/config/cdkHelpers.js
+++ b/node_modules/@serverless-stack/cli/scripts/config/cdkHelpers.js
@@ -128,6 +128,8 @@ function lint() {
".js,.ts",
"--fix",
"lib/**",
+ "--resolve-plugins-relative-to",
+ ".",
],
{ stdio: "inherit", cwd: paths.appPath }
);
|
Yup makes sense. Thanks for sharing the patch. Just pushed out a new release with it: https://github.com/serverless-stack/serverless-stack/releases/tag/v0.4.3 |
this corresponds to commit ca8571e
Hello! I'm getting the following error after a basic
yarn create serverless-stack resources
. I installed the stack into a subdirectory of a project which has it's own ESLint configuration. I get the following error duringyarn build
:Seems this can be resolved by making sure the CLI's ESLint process treats itself as the root via
--resolve-plugins-relative-to .
This could also be solved by allowing me to specify my own ESLint config tosst
, or by letting end users skip linting altogether.The text was updated successfully, but these errors were encountered: