File tree Expand file tree Collapse file tree 5 files changed +1147
-5
lines changed Expand file tree Collapse file tree 5 files changed +1147
-5
lines changed Original file line number Diff line number Diff line change
1
+ ** /dist /**
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line no-undef
2
+ module . exports = {
3
+ env : {
4
+ es2021 : true ,
5
+ } ,
6
+ extends : [
7
+ "eslint:recommended" ,
8
+ "plugin:@typescript-eslint/recommended" ,
9
+ "plugin:prettier/recommended" ,
10
+ ] ,
11
+ overrides : [ ] ,
12
+ parser : "@typescript-eslint/parser" ,
13
+ parserOptions : {
14
+ ecmaVersion : "latest" ,
15
+ sourceType : "module" ,
16
+ } ,
17
+ plugins : [ "@typescript-eslint" ] ,
18
+ rules : {
19
+ "@typescript-eslint/no-unused-vars" : "off" ,
20
+ "@typescript-eslint/no-explicit-any" : "off" ,
21
+ "@typescript-eslint/no-non-null-assertion" : "off" ,
22
+ "@typescript-eslint/ban-ts-comment" : "off" ,
23
+ "@typescript-eslint/ban-types" : "off" ,
24
+ "@typescript-eslint/no-this-alias" : "off" ,
25
+ "@typescript-eslint/no-empty-function" : "off" ,
26
+ "no-self-assign" : "off" ,
27
+ } ,
28
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "tabWidth": 4,
3
+ "useTabs": true,
4
+ "endOfLine": "auto"
5
+ }
Original file line number Diff line number Diff line change 8
8
"dev" : " unbuild --stub" ,
9
9
"build" : " unbuild" ,
10
10
"typecheck" : " tsc --noEmit" ,
11
- "prepublishOnly" : " npm run build"
11
+ "prepublishOnly" : " npm run build" ,
12
+ "lint" : " eslint ."
13
+ },
14
+ "husky" : {
15
+ "hooks" : {
16
+ "pre-commit" : " exit 0"
17
+ }
12
18
},
13
19
"keywords" : [
14
20
" jwcjs"
30
36
"@types/minimist" : " ^1.2.2" ,
31
37
"@types/node" : " ^18.11.17" ,
32
38
"@types/prompts" : " ^2.4.2" ,
39
+ "@typescript-eslint/eslint-plugin" : " ^5.47.0" ,
40
+ "@typescript-eslint/parser" : " ^5.47.0" ,
33
41
"cross-spawn" : " ^7.0.3" ,
42
+ "eslint" : " ^8.30.0" ,
43
+ "eslint-config-prettier" : " ^8.5.0" ,
44
+ "eslint-plugin-prettier" : " ^4.2.1" ,
45
+ "husky" : " ^8.0.2" ,
34
46
"kolorist" : " ^1.6.0" ,
47
+ "lint-staged" : " ^13.1.0" ,
35
48
"minimist" : " ^1.2.7" ,
49
+ "prettier" : " ^2.8.1" ,
36
50
"prompts" : " ^2.4.2" ,
51
+ "rimraf" : " ^3.0.2" ,
37
52
"ts-node" : " ^10.9.1" ,
38
53
"typescript" : " ^4.9.4" ,
39
54
"unbuild" : " ^1.0.2"
55
+ },
56
+ "lint-staged" : {
57
+ "*.{js,ts,css,json}" : [
58
+ " prettier --write"
59
+ ]
40
60
}
41
61
}
You can’t perform that action at this time.
0 commit comments