Skip to content

Commit

Permalink
chore: add configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Apr 17, 2022
1 parent 81c1823 commit f327bb5
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"root": true,
"env": {
"browser": true,
"node": true,
"es2020": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
"eslint:recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"import",
"prettier"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"import/named": 0,
"@typescript-eslint/no-namespace": [
2,
{
"allowDeclarations": true
}
]
}
}
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"arrowParens": "always",
"singleQuote": true
}
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "CommonJS",
"noEmit": true,
"composite": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strictBindCallApply": true,
"strict": true,
},
}

0 comments on commit f327bb5

Please sign in to comment.