@tomei/mailer 0.5.20 → 0.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/eslint.config.mjs CHANGED
@@ -1,6 +1,11 @@
1
1
  import eslintPlugin from "@typescript-eslint/eslint-plugin";
2
2
  import parser from "@typescript-eslint/parser";
3
3
  import importPlugin from 'eslint-plugin-import'
4
+ import path from 'path';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
4
9
 
5
10
  export default [
6
11
  {
@@ -8,6 +13,10 @@ export default [
8
13
  parser: parser,
9
14
  ecmaVersion: "latest", // Allows modern ECMAScript features
10
15
  sourceType: "module", // Allows for the use of imports
16
+ parserOptions: {
17
+ tsconfigRootDir: __dirname,
18
+ project: './tsconfig.json'
19
+ },
11
20
  },
12
21
  plugins: {
13
22
  "@typescript-eslint": eslintPlugin,
@@ -33,17 +42,17 @@ export default [
33
42
  "@typescript-eslint/no-unsafe-return": "off",
34
43
  "@typescript-eslint/restrict-template-expressions": "off",
35
44
  "no-useless-escape": "off",
36
- // Disallow absolute paths
37
- "import/no-absolute-path": "error",
38
- // Enforce relative imports within the same parent directory
39
- 'no-restricted-imports': [
40
- 'error',
41
- {
42
- paths: [],
43
- patterns: ['*/src/*'], // Replace this with your base path if different
44
- },
45
- ],
45
+ "import/no-relative-parent-imports": "error", // Enforce relative imports only
46
+ "import/no-absolute-path": "error", // Block absolute imports outside aliases
47
+ "import/no-unresolved": ["error", { commonjs: true }],
48
+ },
49
+ settings: {
50
+ "import/resolver": {
51
+ typescript: {
52
+ alwaysTryTypes: true,
53
+ }
54
+ }
46
55
  },
47
- ignores: ["node_modules", "dist"],
56
+ ignores: ["node_modules", "dist/**/*", "eslint.config.mjs"],
48
57
  },
49
58
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/mailer",
3
- "version": "0.5.20",
3
+ "version": "0.5.21",
4
4
  "description": "Tomei Mailer Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "peerDependencies": {
44
- "@tomei/config": "^0.3.20",
44
+ "@tomei/config": "^0.3.21",
45
45
  "nodemailer": "^6.9.16"
46
46
  }
47
47
  }
package/tsconfig.json CHANGED
@@ -18,5 +18,6 @@
18
18
  "strictBindCallApply": false,
19
19
  "forceConsistentCasingInFileNames": false,
20
20
  "noFallthroughCasesInSwitch": false,
21
- }
21
+ },
22
+ "exclude": ["node_modules", "dist"]
22
23
  }