File tree Expand file tree Collapse file tree 3 files changed +41
-9
lines changed Expand file tree Collapse file tree 3 files changed +41
-9
lines changed Original file line number Diff line number Diff line change
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [* ]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [* .md ]
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile ]
16
+ indent_style = tab
Original file line number Diff line number Diff line change 1
1
{
2
- "parserOptions" : {
3
- "ecmaVersion" : 6 ,
4
- "sourceType" : " module" ,
5
- "ecmaFeatures" : {
6
- "jsx" : true
7
- }
8
- },
9
- "rules" : {
10
- "semi" : 2
2
+ "parserOptions" : {
3
+ "ecmaVersion" : 6 ,
4
+ "sourceType" : " module" ,
5
+ "ecmaFeatures" : {
6
+ "jsx" : true
11
7
}
8
+ },
9
+ "rules" : {
10
+ "semi" : 2
11
+ },
12
+ "extends" : [" plugin:prettier/recommended" ]
12
13
}
Original file line number Diff line number Diff line change 34
34
"del" : " ^4.1.1" ,
35
35
"electron" : " 1.8.4" ,
36
36
"electron-packager" : " 7.1.0" ,
37
+ "eslint" : " ^6.8.0" ,
38
+ "eslint-config-prettier" : " ^6.10.1" ,
39
+ "eslint-plugin-prettier" : " ^3.1.2" ,
37
40
"font-awesome" : " ^4.7.0" ,
38
41
"gulp" : " ~3.5.5" ,
39
42
"gulp-angular-templatecache" : " ^1.1.0" ,
42
45
"gulp-connect" : " ^1.0.7" ,
43
46
"gulp-jshint" : " ~1.5.0" ,
44
47
"gulp-load-plugins" : " ~0.4.0" ,
48
+ "husky" : " ^4.2.3" ,
45
49
"jquery" : " ^2.2.3" ,
46
50
"jquery.qrcode" : " ^1.0.3" ,
47
51
"karma" : " ^0.12.1" ,
48
52
"karma-chrome-launcher" : " ^0.1.2" ,
49
53
"karma-jasmine" : " ^0.1.5" ,
54
+ "lint-staged" : " ^10.1.2" ,
50
55
"minimist" : " ^1.2.0" ,
51
56
"mocha" : " ~2.4.5" ,
52
57
"moment" : " ^2.19.2" ,
53
58
"npm-run-all" : " ^4.0.2" ,
59
+ "prettier" : " ^2.0.4" ,
54
60
"shelljs" : " ~0.7.0" ,
55
61
"should" : " ~9.0.0" ,
56
62
"showdown" : " ^1.4.2" ,
68
74
"nodemailer" : " 4.0.1" ,
69
75
"nodemailer-smtp-transport" : " 2.7.4" ,
70
76
"request" : " ^2.83.0"
77
+ },
78
+ "husky" : {
79
+ "hooks" : {
80
+ "pre-commit" : " lint-staged"
81
+ }
82
+ },
83
+ "lint-staged" : {
84
+ "*.js" : " eslint --fix" ,
85
+ "*.{js,css,md}" : " prettier --write"
71
86
}
72
87
}
You can’t perform that action at this time.
0 commit comments