File tree Expand file tree Collapse file tree 5 files changed +206
-101
lines changed Expand file tree Collapse file tree 5 files changed +206
-101
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,22 @@ are using it within `package.json` simply write `typescript-scripts [script name
18
18
19
19
- ` typescript-scripts init `
20
20
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.
23
23
24
24
- ` typescript-scripts lint [options] [files/dirs] `
25
25
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.
27
27
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:
34
31
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.
36
37
37
38
- compile (TODO)
38
39
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ switch (scriptName) {
22
22
23
23
case "lint" : {
24
24
const status = lint ( ) ;
25
- process . exit ( status )
25
+ process . exit ( status ) ;
26
26
break ;
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments