Pål Brattberg
01/26/2021, 5:02 AM.eslintignore
file with just a single *
in, but lines like these spam my screen on `sst start`:
/Users/pal/dev/peasy/node_modules/@aws-cdk/cx-api/lib/cloud-assembly.js
0:0 warning File ignored by default. Use "--ignore-pattern '!node_modules/*'" to override
That a file is (correctly) ignored seems like TMI. Any ideas on how to supress this?Jay
sst build
? or is it just for sst start
?Pål Brattberg
01/26/2021, 2:44 PMstart
& build
lib/
index.js
logger.js
db-util.js
etc.js
sst/
stack-a-definition.js
stack-b-definition.js
common.js
services/
service-a/
serverless.yml
service-a-handler.js
service-a-handler.test.js
service-b/
...
service-z/
...
package.json
sst.json
.eslintignore
yarn.lock
...
Pål Brattberg
01/26/2021, 3:00 PM.eslintignore
file disrupts those settings, but I have removed standard for nowPål Brattberg
01/26/2021, 4:12 PM/Users/pal/dev/peasy/services/analysis/profiler.js
46:24 error 'process' is not defined no-undef
58:21 error 'console' is not defined no-undef
/Users/pal/dev/peasy/lib/db.js
11:23 error 'process' is not defined no-undef
370:12 error 'Promise' is not defined no-undef
425:12 error 'Promise' is not defined no-undef
502:51 error 'Set' is not defined no-undef
Jay
process
and console
not being defaulted on the way. But let me look at the other errors you are getting today.Jay
Pål Brattberg
01/26/2021, 4:28 PMPål Brattberg
01/26/2021, 4:31 PMyarn add standard
I think you might see some error, checking more nowPål Brattberg
01/26/2021, 4:32 PMyarn sst build 17:30:57
yarn run v1.22.10
$ /Users/pal/temp/sst-eu-example/node_modules/.bin/sst build
Preparing your SST app
Transpiling source
Linting source
Error: Failed to load plugin '@typescript-eslint' declared in 'BaseConfig#overrides[0]': Cannot find module '@typescript-eslint/eslint-plugin'
Require stack:
- /Users/pal/temp/sst-eu-example/__placeholder__.js
Referenced from: BaseConfig#overrides[0]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.resolve (internal/modules/cjs/helpers.js:94:19)
at Object.resolve (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js:28:50)
at ConfigArrayFactory._loadPlugin (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/config-array-factory.js:1011:39)
at ConfigArrayFactory._loadExtendedPluginConfig (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/config-array-factory.js:831:29)
at ConfigArrayFactory._loadExtends (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/config-array-factory.js:778:29)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/config-array-factory.js:719:25)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (/Users/pal/temp/sst-eu-example/node_modules/@eslint/eslintrc/lib/config-array-factory.js:664:20)
at _normalizeObjectConfigData.next (<anonymous>) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/pal/temp/sst-eu-example/__placeholder__.js' ],
messageTemplate: 'plugin-missing',
messageData: {
pluginName: '@typescript-eslint/eslint-plugin',
resolvePluginsRelativeTo: '/Users/pal/temp/sst-eu-example',
importerName: 'BaseConfig#overrides[0]'
}
}
There was a problem linting the source.
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Pål Brattberg
01/26/2021, 4:33 PMyarn add standard -D
is more correct, but either will lead to the error shown AFAIKPål Brattberg
01/26/2021, 4:36 PMJay
Jay
Pål Brattberg
01/26/2021, 8:45 PMJay
Jay
Jay
Jay
Pål Brattberg
01/27/2021, 8:37 AM