Skip to content

Commit

Permalink
Merge pull request #10 from wethegit/feature/typescript
Browse files Browse the repository at this point in the history
feature: Typescript
  • Loading branch information
marlonmarcello authored Mar 4, 2024
2 parents 77d516b + 9da7f7f commit 2782bb9
Show file tree
Hide file tree
Showing 41 changed files with 6,272 additions and 8,409 deletions.
36 changes: 33 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,46 @@
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "preact", "prettier"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"preact",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"rules": {
// "@typescript-eslint/explicit-function-return-type": "off",
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./",
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
}
}
],
"rules": {
"no-duplicate-imports": "off"
},
"settings": {
"jest": { "version": 26 }
"jest": { "version": "latest" }
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.14.2
v20.10.0
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true
"singleQuote": false
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 2782bb9

Please sign in to comment.