Skip to content

Commit

Permalink
Update to ESM, packages, bootstrap, misc (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNovak authored Nov 23, 2022
1 parent a383d5d commit ab13798
Show file tree
Hide file tree
Showing 22 changed files with 5,556 additions and 2,020 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Folders
/.cache
/.git
/dist
/docs
/misc
/node_modules
/public
/temp
94 changes: 94 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import", "unicorn"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/return-await": ["error", "always"],
"@typescript-eslint/typedef": [
"error",
{
"parameter": true,
"propertyDeclaration": true
}
],
"import/extensions": ["error", "ignorePackages"],
"import/no-extraneous-dependencies": "error",
"import/no-unresolved": "off",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
},
"groups": [
["builtin", "external", "object", "type"],
["internal", "parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
"no-return-await": "off",
"no-unused-vars": "off",
"prefer-const": "off",
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"sort-imports": [
"error",
{
"allowSeparatedGroups": true,
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
],
"unicorn/prefer-node-protocol": "error"
}
}
13 changes: 8 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules
dist
docs
misc
.cache
# Folders
/.cache
/.git
/dist
/docs
/misc
/node_modules
/temp
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preLaunchTask": "build",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "node",
"args": ["--enable-source-maps", "${workspaceFolder}/dist/app.js"],
"args": ["--enable-source-maps", "${workspaceFolder}/dist/start.js"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart",
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
},
"cSpell.enabled": true,
"cSpell.words": ["Novak", "parens", "vrgamedeals"],
"typescript.preferences.importModuleSpecifierEnding": "js"
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Kevin Novak
Copyright (c) 2022 Kevin Novak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit ab13798

Please sign in to comment.