Skip to content

Commit f755c17

Browse files
committed
fix: resolve linting errors in componentLocalPreview.nut.ts
- Changed dotenv import pattern from default to star import for better ESM compatibility - Added .nut.ts files to test tsconfig.json includes - Removed eslint-disable comments and fixed TypeScript type issues - Installed missing dependencies
1 parent 9c62c47 commit f755c17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"exports": "./lib/index.js",
262262
"type": "module",
263263
"volta": {
264-
"node": "20.11.0",
264+
"node": "20.19.3",
265265
"yarn": "1.22.22"
266266
},
267267
"resolutions": {

test/commands/lightning/dev/componentLocalPreview.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import path from 'node:path';
99
import fs from 'node:fs';
1010
import { expect } from 'chai';
1111
import { TestSession } from '@salesforce/cli-plugins-testkit';
12-
import dotenv from 'dotenv';
12+
import * as dotenv from 'dotenv';
1313
import axios from 'axios';
1414
import { toKebabCase } from './helpers/utils.js';
1515
import { createSfdxProject, createLwcComponent } from './helpers/projectSetup.js';

test/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "@salesforce/dev-config/tsconfig-test-strict-esm",
3-
"include": ["./**/*.ts"],
3+
"include": ["./**/*.ts", "./**/*.nut.ts"],
44
"compilerOptions": {
55
"skipLibCheck": true
66
}

0 commit comments

Comments
 (0)