Skip to content

Commit 83ee94d

Browse files
committed
Fix formatting issues
1 parent 211ff3b commit 83ee94d

8 files changed

Lines changed: 24 additions & 24 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Workflow-Testing
1+
# Workflow-Testing

eslint.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ module.exports = [
88
parser: parserTs,
99
parserOptions: {
1010
ecmaVersion: 'latest',
11-
sourceType: 'module'
12-
}
11+
sourceType: 'module',
12+
},
1313
},
1414
plugins: {
15-
'@typescript-eslint': eslintPluginTs
15+
'@typescript-eslint': eslintPluginTs,
1616
},
1717
rules: {
1818
// Add or tweak rules here
19-
}
20-
}
19+
},
20+
},
2121
];

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'node',
4-
testMatch: ['**/tests/**/*.test.ts'],
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testMatch: ['**/tests/**/*.test.ts'],
55
};

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
1+
'use strict';
2+
Object.defineProperty(exports, '__esModule', { value: true });
33
exports.add = add;
44
function add(a, b) {
5-
return a + b;
5+
return a + b;
66
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function add(a: number, b: number): number {
2-
return a + b;
2+
return a + b;
33
}

tests/index.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
3-
const index_1 = require("../src/index");
1+
'use strict';
2+
Object.defineProperty(exports, '__esModule', { value: true });
3+
const index_1 = require('../src/index');
44
test('adds 2 + 2 to equal 4', () => {
5-
expect((0, index_1.add)(2, 2)).toBe(4);
5+
expect((0, index_1.add)(2, 2)).toBe(4);
66
});

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { add } from '../src/index';
22

33
test('adds 2 + 2 to equal 4', () => {
4-
expect(add(2, 2)).toBe(4);
4+
expect(add(2, 2)).toBe(4);
55
});

tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "libReplacement": true, /* Enable lib replacement. */
@@ -26,7 +26,7 @@
2626
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2727

2828
/* Modules */
29-
"module": "commonjs", /* Specify what module code is generated. */
29+
"module": "commonjs" /* Specify what module code is generated. */,
3030
// "rootDir": "./", /* Specify the root folder within your source files. */
3131
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
3232
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
@@ -80,12 +80,12 @@
8080
// "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
8181
// "erasableSyntaxOnly": true, /* Do not allow runtime constructs that are not part of ECMAScript. */
8282
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
83-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
83+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8484
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
85-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
85+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
8686

8787
/* Type Checking */
88-
"strict": true, /* Enable all strict type-checking options. */
88+
"strict": true /* Enable all strict type-checking options. */,
8989
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
9090
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
9191
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -108,6 +108,6 @@
108108

109109
/* Completeness */
110110
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
111-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
111+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
112112
}
113113
}

0 commit comments

Comments
 (0)