feat: STRF-11903 Migrate to ESM #917
Annotations
11 errors and 10 warnings
|
Lint the code:
lib/BuildConfigManager.js#L47
Calls to require() should use string literals
|
Lint the code:
lib/BuildConfigManager.js#L48
Unnecessary 'else' after 'return'
|
Lint the code:
lib/BuildConfigManager.js#L50
Calls to require() should use string literals
|
Lint the code:
lib/BuildConfigManager.spec.js#L1
'@jest/globals' should be listed in the project's dependencies. Run 'npm i -S @jest/globals' to add it
|
Lint the code:
lib/BuildConfigManager.spec.js#L1
"@jest/globals" is extraneous
|
Lint the code:
lib/StencilConfigManager.spec.js#L1
'@jest/globals' should be listed in the project's dependencies. Run 'npm i -S @jest/globals' to add it
|
Lint the code:
lib/StencilConfigManager.spec.js#L1
"@jest/globals" is extraneous
|
Lint the code:
lib/StencilDebug.spec.js#L1
'@jest/globals' should be listed in the project's dependencies. Run 'npm i -S @jest/globals' to add it
|
Lint the code:
lib/StencilDebug.spec.js#L1
"@jest/globals" is extraneous
|
Lint the code:
lib/archiveManager.spec.js#L1
'@jest/globals' should be listed in the project's dependencies. Run 'npm i -S @jest/globals' to add it
|
Lint the code:
lib/BuildConfigManager.js#L5
Replace `"node:module"` with `'node:module'`
|
Lint the code:
lib/BuildConfigManager.spec.js#L1
Replace `jest` with `·jest·`
|
Lint the code:
lib/bundle-validator.js#L27
Delete `⏎`
|
Lint the code:
lib/bundle-validator.js#L29
Replace `⏎····fs.readFileSync(privateThemeConfigUrl),⏎` with `fs.readFileSync(privateThemeConfigUrl)`
|
Lint the code:
lib/lang-assembler.spec.js#L1
Replace `jest` with `·jest·`
|
Lint the code:
lib/stencil-start.spec.js#L1
Replace `jest` with `·jest·`
|
Lint the code:
lib/theme-config.spec.js#L13
Replace `fs.readFileSync(path.join(__dirname,·'../test/_mocks/themes/valid/schema.json'))` with `⏎····fs.readFileSync(path.join(__dirname,·'../test/_mocks/themes/valid/schema.json')),⏎`
|
Lint the code:
lib/validator/schema-translations.spec.js#L8
Replace `readFileSync(`${process.cwd()}/lib/schemas/schemaTranslations.json`)` with `⏎····readFileSync(`${process.cwd()}/lib/schemas/schemaTranslations.json`),⏎`
|
Lint the code:
server/index.js#L9
Delete `····`
|
Lint the code:
server/index.js#L24
Insert `⏎·······`
|
Loading