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 0a68d16 commit 5be8f0a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc.json
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.json
9 changes: 9 additions & 0 deletions contracts/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"../.eslintrc.json"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
}
}
2 changes: 1 addition & 1 deletion 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 Down
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 5be8f0a

Please sign in to comment.