Skip to content

Commit

Permalink
style: add eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed May 28, 2024
1 parent faa898f commit 2063d8b
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
}
}
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ jobs:
VALIDATE_MARKDOWN: false
VALIDATE_GITLEAKS: false
VALIDATE_JSCPD: false
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc
9 changes: 9 additions & 0 deletions contracts/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"../.eslintrc"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
}
}
7 changes: 5 additions & 2 deletions contracts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"strict": true,
"skipLibCheck": true
},
"include": ["./scripts"]
}
"include": [
"./scripts",
"./test"
]
}
7 changes: 5 additions & 2 deletions json-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "es2020",
"module": "Node16",
"esModuleInterop": true,
"outDir": "./dest",
Expand All @@ -12,5 +12,8 @@
"./src/*"
]
}
}
},
"include": [
"./src"
]
}
5 changes: 4 additions & 1 deletion mint-backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"./src/*"
]
}
}
},
"include": [
"./src"
]
}
10 changes: 10 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}

0 comments on commit 2063d8b

Please sign in to comment.