Skip to content

Commit 41d8ef0

Browse files
committed
fix: We need to process typescript now.
Some upstream projects now have tsx files in them that we need to be able to process. In particular the StudioHeader file from frontend-component-header. We add tsconfig support and fix eslint to now throw errors now that the typescript-eslint rules are running.
1 parent 95eb4d2 commit 41d8ef0

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
coverage/*
22
dist/
33
node_modules/
4-
jest.config.js
4+
jest.config.js
5+
*.config.js
6+
.eslintrc.js

src/index.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
} from '@edx/frontend-platform';
44

55
// Jest needs this for module resolution
6-
import * as app from '.'; // eslint-disable-line no-unused-vars
6+
import * as app from '.'; // eslint-disable-line @typescript-eslint/no-unused-vars
77

88
// These need to be var not let so they get hoisted
99
// and can be used by jest.mock (which is also hoisted)

tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "@edx/typescript-config",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "dist"
6+
},
7+
"include": ["src/**/*"],
8+
"exclude": ["*.js", ".eslintrc.js", "dist", "node_modules"]
9+
}

0 commit comments

Comments
 (0)