Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 1d80925

Browse files
authored
Merge pull request #4 from inpyjamas/fix/exports
2 parents 475833c + abee4ed commit 1d80925

11 files changed

Lines changed: 42 additions & 6 deletions

src/config/eslint/eslint.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("eslint tests", () => {
2+
it("should export an object", async () => {
3+
const module = await import("./typescript");
4+
expect(module).toBeDefined();
5+
});
6+
});

src/config/eslint/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export = {
22
parser: "@typescript-eslint/parser",
33
root: true,
44
env: {

src/config/husky.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("husky tests", () => {
2+
it("should export an object", async () => {
3+
const module = await import("./husky");
4+
expect(module).toBeDefined();
5+
});
6+
});

src/config/husky.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ const commands = [
33
"cross-env NODE_ENV=test npm run test:ci -- --coverage=false",
44
"lint-staged",
55
];
6-
module.exports = {
6+
7+
export = {
78
hooks: {
89
"pre-commit": commands.join(" && "),
910
},
1011
};
12+
// module.exports = {
13+
// hooks: {
14+
// "pre-commit": commands.join(" && "),
15+
// },
16+
// };

src/config/jest/jest.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("jest tests", () => {
2+
it("should export an object", async () => {
3+
const module = await import("./typescript");
4+
expect(module).toBeDefined();
5+
});
6+
});

src/config/jest/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export = {
22
preset: "ts-jest",
33
testEnvironment: "node",
44
collectCoverage: true,

src/config/lint-staged.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("lint staged tests", () => {
2+
it("should export an object", async () => {
3+
const module = await import("./lint-staged");
4+
expect(module).toBeDefined();
5+
});
6+
});

src/config/lint-staged.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export = {
22
// '*.ts?(x)': () => 'tslint "./src*/**/*.ts?(x)"',
33
// '*.tsx': () => 'tslint',
44
"**/*.+(js|jsx|json|ts|tsx)": [" eslint --cache --fix"],

src/config/prettier.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("prettier tests", () => {
2+
it("should export an object", async () => {
3+
const module = await import("./prettier");
4+
expect(module).toBeDefined();
5+
});
6+
});

src/config/prettier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export = {
22
printWidth: 80,
33
semi: true,
44
trailingComma: "all",

0 commit comments

Comments
 (0)