File tree 7 files changed +1158
-33
lines changed 7 files changed +1158
-33
lines changed Original file line number Diff line number Diff line change
1
+ /coverage /
2
+ /test-build /
3
+
4
+ node_modules /
5
+ dist /
6
+ dist-cjs /
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line node/no-process-env
2
+ const isQuick = process . env . LINT_QUICK !== "false" ;
3
+
4
+ const tsProject = [ "./packages/*/tsconfig-cjs.json" , "./tsconfig-test.json" ] ;
5
+
6
+ module . exports = {
7
+ root : true ,
8
+ extends : [
9
+ "@gcangussu/eslint-config" ,
10
+ "@gcangussu/eslint-config/node" ,
11
+ ...( isQuick ? [ "@gcangussu/eslint-config/quick" ] : [ ] ) ,
12
+ ] ,
13
+ parserOptions : {
14
+ tsconfigRootDir : __dirname ,
15
+ project : tsProject ,
16
+ } ,
17
+ settings : {
18
+ "import/resolver" : {
19
+ typescript : {
20
+ project : tsProject ,
21
+ } ,
22
+ } ,
23
+ } ,
24
+ } ;
Original file line number Diff line number Diff line change 1
1
// For a detailed explanation regarding each configuration property, visit:
2
2
// https://jestjs.io/docs/en/configuration.html
3
3
4
+ // eslint-disable-next-line import/no-anonymous-default-export
4
5
export default {
5
6
// All imported modules in your tests should be mocked automatically
6
7
// automock: false,
Original file line number Diff line number Diff line change 16
16
],
17
17
"scripts" : {
18
18
"build" : " tsc --build" ,
19
+ "build-pkgs" : " tsc --build tsconfig-pkgs.json" ,
19
20
"build-tests" : " tsc --build tsconfig-test.json" ,
21
+ "lint" : " LINT_QUICK=false eslint --max-warnings 0 --report-unused-disable-directives --format codeframe ." ,
20
22
"test" : " jest"
21
23
},
22
24
"husky" : {
31
33
"@babel/plugin-proposal-optional-chaining" : " ^7.11.0" ,
32
34
"@babel/plugin-transform-modules-commonjs" : " ^7.10.4" ,
33
35
"@babel/preset-typescript" : " ^7.10.4" ,
36
+ "@gcangussu/eslint-config" : " ^6.1.4" ,
34
37
"@gcangussu/proto-parser" : " 0.1.1" ,
35
38
"@types/jest" : " ^26.0.10" ,
36
39
"@types/node" : " ^14.6.2" ,
40
+ "eslint" : " ^7.7.0" ,
41
+ "eslint-import-resolver-typescript" : " ^2.2.1" ,
37
42
"husky" : " ^4.2.5" ,
38
43
"jest" : " ^26.4.2" ,
39
44
"prettier" : " ^2.1.1" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "files" : [],
3
+ "include" : [],
4
+ "references" : [
5
+ { "path" : " packages/proto-parser/tsconfig.json" },
6
+ { "path" : " packages/proto-parser/tsconfig-cjs.json" },
7
+ { "path" : " packages/grpc-frame/tsconfig.json" },
8
+ { "path" : " packages/grpc-frame/tsconfig-cjs.json" }
9
+ ]
10
+ }
Original file line number Diff line number Diff line change 2
2
"files" : [],
3
3
"include" : [],
4
4
"references" : [
5
- { "path" : " packages/proto-parser/tsconfig.json" },
6
- { "path" : " packages/proto-parser/tsconfig-cjs.json" },
7
- { "path" : " packages/grpc-frame/tsconfig.json" },
8
- { "path" : " packages/grpc-frame/tsconfig-cjs.json" }
5
+ { "path" : " ./tsconfig-pkgs.json" },
6
+ { "path" : " ./tsconfig-test.json" }
9
7
]
10
8
}
You can’t perform that action at this time.
0 commit comments