File tree Expand file tree Collapse file tree 3 files changed +437
-15
lines changed Expand file tree Collapse file tree 3 files changed +437
-15
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "env" : {
3
+ "node" : true ,
4
+ "es2021" : true
5
+ },
6
+ "extends" : [
7
+ " eslint:recommended" ,
8
+ " plugin:@typescript-eslint/recommended"
9
+ ],
10
+ "parser" : " @typescript-eslint/parser" ,
11
+ "parserOptions" : {
12
+ "ecmaVersion" : " latest"
13
+ },
14
+ "plugins" : [
15
+ " @typescript-eslint"
16
+ ],
17
+ "rules" : {
18
+ "@typescript-eslint/no-explicit-any" : " off"
19
+ },
20
+ "overrides" : [
21
+ {
22
+ "files" : [
23
+ " *.spec.ts"
24
+ ],
25
+ "env" : {
26
+ "jest" : true
27
+ },
28
+ "rules" : {
29
+ "no-unused-vars" : " off" ,
30
+ "@typescript-eslint/no-unused-vars" : " off" ,
31
+ "import/no-extraneous-dependencies" : " off"
32
+ }
33
+ }
34
+ ],
35
+ "ignorePatterns" : [
36
+ " dist" ,
37
+ " node_modules" ,
38
+ " gen"
39
+ ]
40
+ }
Original file line number Diff line number Diff line change 23
23
"build" : " run-p build:*" ,
24
24
"build:main" : " tsc -p tsconfig.main.json" ,
25
25
"build:module" : " tsc -p tsconfig.module.json" ,
26
+ "lint" : " eslint --ext .ts ." ,
26
27
"generate" : " run-p build:* && graphql-codegen" ,
27
28
"prepublish" : " run-p build:*"
28
29
},
47
48
"@graphql-codegen/typescript" : " ^2.4.2" ,
48
49
"@tsconfig/recommended" : " ^1.0.1" ,
49
50
"@types/jest" : " ^27.4.0" ,
51
+ "@typescript-eslint/eslint-plugin" : " ^5.10.0" ,
52
+ "@typescript-eslint/parser" : " ^5.10.0" ,
53
+ "eslint" : " ^8.7.0" ,
50
54
"jest" : " ^27.4.7" ,
51
55
"npm-run-all" : " ^4.1.5" ,
52
56
"ts-jest" : " ^27.1.3" ,
You can’t perform that action at this time.
0 commit comments