Feature/grs 1955 change commonjs imports (#1995)

* GRS-1955: Using ES6 import/export in src files

* GRS-1955: Using ES6 import/export in test files

* GRS-1955: Using ES6 import/export in themes index.js

* GRS-1955: Readding blank line at end of top-languages-card.js

* feat: fix test es6 import errors

This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.

* test: update test node version

This commit makes sure node 16 is used in the github actions.

* refactor: run prettier

Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
rsk2
2022-09-24 13:50:54 +05:30
committed by GitHub
parent 40735124ed
commit 107f7ca52c
49 changed files with 338 additions and 475 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
const { clampValue } = require("../common/utils");
import { clampValue } from "../common/utils";
const createProgressNode = ({
x,
@@ -16,7 +16,7 @@ const createProgressNode = ({
<rect
height="8"
fill="${color}"
rx="5" ry="5" x="0" y="0"
rx="5" ry="5" x="0" y="0"
data-testid="lang-progress"
width="${progressPercentage}%"
>
@@ -25,4 +25,5 @@ const createProgressNode = ({
`;
};
exports.createProgressNode = createProgressNode;
export { createProgressNode };
export default createProgressNode;