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

Commit 2701eeb

Browse files
committed
fix(exports): Export default objects
1 parent 475833c commit 2701eeb

6 files changed

Lines changed: 12 additions & 6 deletions

File tree

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.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/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.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.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",

src/config/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"exclude": ["node_modules", "src/**/*.test.ts"],
2+
"exclude": ["node_modules", "src/*.test.ts", "dist"],
33
"compilerOptions": {
44
/* Visit https://aka.ms/tsconfig.json to read more about this file */
55

0 commit comments

Comments
 (0)