@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 +20 -11
- package/package.json +2 -2
- package/tsconfig.json +2 -1
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
|
-
//
|
|
37
|
-
"import/no-absolute-path": "error",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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.
|
|
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.
|
|
44
|
+
"@tomei/config": "^0.3.21",
|
|
45
45
|
"nodemailer": "^6.9.16"
|
|
46
46
|
}
|
|
47
47
|
}
|