Skip to content

Commit b048972

Browse files
committed
Format with prettier and add pre-commit hook to do so automatically from now on
1 parent 93e2923 commit b048972

File tree

5 files changed

+206
-101
lines changed

5 files changed

+206
-101
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,22 @@ are using it within `package.json` simply write `typescript-scripts [script name
1818

1919
- `typescript-scripts init`
2020

21-
Initialises a repository for Typescript development. Currently it only checks that typescript
22-
is installed and creates a tsconfig.json file for you if it doesn't already exist.
21+
Initialises a repository for Typescript development. Currently it only checks that typescript
22+
is installed and creates a tsconfig.json file for you if it doesn't already exist.
2323

2424
- `typescript-scripts lint [options] [files/dirs]`
2525

26-
Lints the specified files and directories. Defaults to checking for .js and .ts extensions.
26+
Lints the specified files and directories. Defaults to checking for .js and .ts extensions.
2727

28-
Will use the default eslint configuration file in @cdimitroulas/typescript-scripts if
29-
your repository does not have an `.eslintrc` or `.eslintrc.json`. You can also choose to
30-
extend the eslint configuration by adding this to your config file:
31-
```
32-
{"extends": "./node_modules/@cdimitroulas/typescript-scripts/.eslintrc.json"}
33-
```
28+
Will use the default eslint configuration file in @cdimitroulas/typescript-scripts if
29+
your repository does not have an `.eslintrc` or `.eslintrc.json`. You can also choose to
30+
extend the eslint configuration by adding this to your config file:
3431

35-
All the usual eslint flags can be passed to this script, they will be passed on to eslint.
32+
```
33+
{"extends": "./node_modules/@cdimitroulas/typescript-scripts/.eslintrc.json"}
34+
```
35+
36+
All the usual eslint flags can be passed to this script, they will be passed on to eslint.
3637

3738
- compile (TODO)
3839

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ switch (scriptName) {
2222

2323
case "lint": {
2424
const status = lint();
25-
process.exit(status)
25+
process.exit(status);
2626
break;
2727
}
2828

0 commit comments

Comments
 (0)