Skip to content

Commit 1add4cd

Browse files
fix lint errors for react
1 parent e730fbe commit 1add4cd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/devextreme-cli/src/applications/application.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const addTemplate = (appPath, appName, templateOptions) => {
112112

113113
templateCreator.moveTemplateFilesToProject(applicationTemplatePath, appPath, templateOptions, getCorrectPath);
114114

115-
!templateOptions.isTypeScript && removeFile(path.join(appPath, 'src', 'types.js'));
115+
!templateOptions.isTypeScript && removeFile(path.join(appPath, 'src', 'types.jsx'));
116116

117117
if(!templateOptions.empty) {
118118
addSamplePages(appPath, templateOptions);

packages/devextreme-cli/src/templates/react/application/src/matchMediaMock.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { jest } from '@jest/globals';
2+
13
Object.defineProperty(window, 'matchMedia', {
24
writable: true,
35
value: jest.fn().mockImplementation(query => ({

packages/devextreme-cli/testing/env.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports.engine = 'react';
1616
exports.appPath = appPath;
1717
exports.deployPath = path.join(appPath, 'dist');
1818
exports.npmArgs = ['run', 'build'];
19-
exports.fileExtention = 'js';
19+
exports.fileExtention = 'jsx';
2020

2121
exports.createApp = async(toolingVersion) => {
2222
await rimraf(sandboxPath);

0 commit comments

Comments
 (0)