File tree Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ version: 2
2
2
machine :
3
3
services :
4
4
- docker
5
-
6
5
jobs :
7
6
build :
8
7
docker :
Original file line number Diff line number Diff line change 1
1
# tscommons
2
2
3
- All you need to start your typescript project:
3
+ ![ GitHub tag (latest SemVer)] ( https://img.shields.io/github/tag/kube-js/tscommons.svg )
4
+
5
+ ## Available configs:
4
6
- tsconfig.json
5
7
- tslint.json
6
8
- jest.config.js
9
+ - prettier.config.js
10
+
11
+ ## Usage:
12
+
13
+ ### tsconfig.json
14
+
15
+ ``` json
16
+ {
17
+ "extends" : " ./node_modules/@kube-js/tscommons/configs/tsconfig.json" ,
18
+ // your overrides
19
+ }
20
+ ```
21
+
22
+ ### tslint.json
23
+
24
+ ``` json
25
+ {
26
+ "extends" : [
27
+ " ./node_modules/@kube-js/tscommons/configs/tslint.json" ,
28
+ " tslint-config-prettier"
29
+ ],
30
+ "rules" : {
31
+ // your overrides
32
+ }
33
+ }
34
+ ```
35
+
36
+ ### jest.config.js
37
+ ``` js
38
+ const baseConfig = require (" @kube-js/tscommons/configs/jest.config.js" );
39
+
40
+ module .exports = {
41
+ ... baseConfig
42
+ // your overrides
43
+ };
44
+ ```
45
+
46
+ ### prettier.config.js
47
+
48
+ ``` js
49
+ const baseConfig = require (" @kube-js/tscommons/configs/prettier.config.js" );
50
+
51
+ module .exports = {
52
+ ... baseConfig
53
+ // your overrides
54
+ };
55
+ ```
56
+
57
+ Also if you are using tslint install ` tslint-config-prettier `
58
+
59
+ ```
60
+ npm install --save-dev tslint-config-prettier
61
+ ```
62
+
63
+ Then in tslint.json add:
64
+ ``` json
65
+ {
66
+ "extends" : [
67
+ " ./node_modules/@kube-js/tscommons/configs/tslint.json" ,
68
+ " tslint-config-prettier"
69
+ ],
70
+ "rules" : {
71
+ // your overrides
72
+ }
73
+ }
74
+ ```
7
75
8
76
Credits:
9
77
[ ryansmith94] ( https://github.com/ryansmith94 )
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ trailingComma : "es5" ,
3
+ tabWidth : 2 ,
4
+ semi : true ,
5
+ singleQuote : true
6
+ } ;
Original file line number Diff line number Diff line change 64
64
"no-sparse-arrays" : true ,
65
65
"no-string-literal" : true ,
66
66
"no-string-throw" : true ,
67
- "no-submodule-imports" : true ,
67
+ "no-submodule-imports" : false ,
68
68
"no-switch-case-fall-through" : true ,
69
69
"no-this-assignment" : true ,
70
70
"no-unbound-method" : true ,
71
71
"no-unnecessary-class" : true ,
72
- "no-unsafe-any" : true ,
72
+ "no-unsafe-any" : false ,
73
73
"no-unsafe-finally" : true ,
74
74
"no-unused-expression" : true ,
75
75
"no-var-keyword" : true ,
You can’t perform that action at this time.
0 commit comments