Skip to content

Commit

Permalink
feat: update template with expresso/core and inversify
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Apr 27, 2024
1 parent b7b298c commit 48a1f92
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 53 deletions.
65 changes: 32 additions & 33 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
/* eslint-env node */
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.cjs.json", "./tsconfig.esm.json","./tsconfig.json"],
},
plugins: ["@typescript-eslint"],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [
"lib",
"node_modules",
".eslintrc.cjs",
"**/__tests__/*.spec.ts",
"vitest.config.ts",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/explicit-function-return-type": "error",
},
};

extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.cjs.json", "./tsconfig.esm.json", "./tsconfig.json"],
},
plugins: ["@typescript-eslint"],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [
"lib",
"node_modules",
".eslintrc.cjs",
"**/__tests__/*.spec.ts",
"vitest.config.ts",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/explicit-function-return-type": "error",
},
};
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@expressots/package-name",
"name": "@expressots/resend-provider",
"version": "0.0.1",
"description": "Expressots - modern, fast, lightweight nodejs web framework (@package-name)",
"author": "",
"description": "Expressots - Email using Resend Provider (@expressots/resend-provider)",
"author": "Richard Zampieri",
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/types/index.d.ts",
"exports": {
Expand Down Expand Up @@ -67,13 +67,14 @@
"lint:fix": "eslint \"src/**/*.ts\" --fix"
},
"dependencies": {
"@expressots/core": "latest",
"inversify": "6.0.2",
"reflect-metadata": "0.2.2"
},
"devDependencies": {
"@codecov/vite-plugin": "0.0.1-beta.6",
"@commitlint/cli": "18.0.0",
"@commitlint/config-conventional": "17.7.0",
"@expressots/core": "latest",
"@release-it/conventional-changelog": "7.0.1",
"@types/node": "20.4.9",
"@typescript-eslint/eslint-plugin": "6.6.0",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* export your provider here */
//export * from "./your-provider";
22 changes: 6 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames":true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"strictNullChecks": false,
"checkJs": true,
Expand All @@ -12,18 +12,8 @@
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"node",
"reflect-metadata",
"vitest/globals"
],
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"**/__tests__/*.spec.ts",
"scripts/**/*",
]
}
"types": ["node", "reflect-metadata", "vitest/globals"]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "**/__tests__/*.spec.ts", "scripts/**/*"]
}

0 comments on commit 48a1f92

Please sign in to comment.