Skip to content

Commit

Permalink
Error handling, export-index.html, and ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
invpt committed Mar 11, 2024
1 parent 828dc80 commit c9ca2cd
Show file tree
Hide file tree
Showing 31 changed files with 4,079 additions and 622 deletions.
49 changes: 49 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"plugins": ["import"],
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard-with-typescript",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": { "delimiter": "comma", "requireLast": true },
"singleline": { "delimiter": "comma", "requireLast": false },
"multilineDetection": "brackets"
}
],
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"import/no-unresolved": "error",
"import/order": ["error", {
"newlines-between": "always"
}]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [

]
}
Loading

0 comments on commit c9ca2cd

Please sign in to comment.