@tomei/media 0.7.7 → 0.7.9

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.
@@ -0,0 +1,49 @@
1
+ import eslintPlugin from "@typescript-eslint/eslint-plugin";
2
+ import parser from "@typescript-eslint/parser";
3
+ import importPlugin from 'eslint-plugin-import'
4
+
5
+ export default [
6
+ {
7
+ languageOptions: {
8
+ parser: parser,
9
+ ecmaVersion: "latest", // Allows modern ECMAScript features
10
+ sourceType: "module", // Allows for the use of imports
11
+ },
12
+ plugins: {
13
+ "@typescript-eslint": eslintPlugin,
14
+ import: importPlugin
15
+ },
16
+ rules: {
17
+ "no-console": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/explicit-module-boundary-types": "off",
21
+ "import/prefer-default-export": "off",
22
+ "@typescript-eslint/no-unused-vars": "warn",
23
+ "no-useless-catch": "off",
24
+ "@typescript-eslint/no-non-null-assertion": "off",
25
+ "@typescript-eslint/no-empty-function": "off",
26
+ "@typescript-eslint/no-empty-interface": "off",
27
+ "@typescript-eslint/no-inferrable-types": "off",
28
+ "@typescript-eslint/no-namespace": "off",
29
+ "@typescript-eslint/no-use-before-define": "off",
30
+ "@typescript-eslint/no-unsafe-assignment": "off",
31
+ "@typescript-eslint/no-unsafe-call": "off",
32
+ "@typescript-eslint/no-unsafe-member-access": "off",
33
+ "@typescript-eslint/no-unsafe-return": "off",
34
+ "@typescript-eslint/restrict-template-expressions": "off",
35
+ "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
+ ],
46
+ },
47
+ ignores: ["node_modules", "dist"],
48
+ },
49
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/media",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "description": "NestJS package for media module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -30,11 +30,11 @@
30
30
  "@nestjs/platform-express": "^10.2.7",
31
31
  "@nestjs/sequelize": "^10.0.1",
32
32
  "@nestjs/swagger": "^8.0.7",
33
- "@tomei/activity-history": "^0.2.21",
34
- "@tomei/config": "^0.3.19",
35
- "@tomei/general": "^0.21.0",
36
- "@tomei/mailer": "^0.5.19",
37
- "@tomei/sso": "^0.51.3",
33
+ "@tomei/activity-history": "^0.2.22",
34
+ "@tomei/config": "^0.3.20",
35
+ "@tomei/general": "^0.21.2",
36
+ "@tomei/mailer": "^0.5.20",
37
+ "@tomei/sso": "^0.51.5",
38
38
  "axios": "^1.7.7",
39
39
  "class-transformer": "^0.5.1",
40
40
  "class-validator": "^0.14.1",
@@ -45,6 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@commitlint/config-conventional": "^19.6.0",
48
+ "@eslint/js": "^9.15.0",
48
49
  "@types/express": "^5.0.0",
49
50
  "@types/multer": "^1.4.12",
50
51
  "@types/node": "^22.9.3",
@@ -52,7 +53,9 @@
52
53
  "@typescript-eslint/eslint-plugin": "^8.15.0",
53
54
  "eslint": "^9.15.0",
54
55
  "eslint-config-prettier": "^9.1.0",
56
+ "eslint-plugin-import": "^2.31.0",
55
57
  "eslint-plugin-prettier": "^5.2.1",
58
+ "globals": "^15.12.0",
56
59
  "husky": "^9.1.7",
57
60
  "lint-staged": "^15.2.10",
58
61
  "prettier": "^3.3.3",
@@ -60,7 +63,8 @@
60
63
  "tsc-watch": "^6.2.1",
61
64
  "tsconfig-paths": "^4.2.0",
62
65
  "tslint": "^6.1.3",
63
- "typescript": "^5.7.2"
66
+ "typescript": "^5.7.2",
67
+ "typescript-eslint": "^8.16.0"
64
68
  },
65
69
  "publishConfig": {
66
70
  "access": "public"
package/.eslintrc.js DELETED
@@ -1,66 +0,0 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: 'tsconfig.json',
5
- sourceType: 'module',
6
- },
7
- plugins: ['@typescript-eslint/eslint-plugin'],
8
- extends: [
9
- 'plugin:@typescript-eslint/recommended',
10
- 'plugin:prettier/recommended',
11
- ],
12
- root: true,
13
- env: {
14
- node: true,
15
- jest: true,
16
- },
17
- ignorePatterns: ['.eslintrc.js', 'db/config.js'],
18
- rules: {
19
- "no-unused-vars": "off",
20
- "@typescript-eslint/no-unused-vars": ["error"],
21
- '@typescript-eslint/interface-name-prefix': 'off',
22
- '@typescript-eslint/explicit-function-return-type': 'off',
23
- '@typescript-eslint/explicit-module-boundary-types': 'off',
24
- '@typescript-eslint/no-explicit-any': 'off',
25
- '@typescript-eslint/naming-convention': [
26
- "error",
27
- {
28
- "selector": ["variable", "function"],
29
- "format": ["camelCase"],
30
- "leadingUnderscore": "forbid",
31
- "trailingUnderscore": "forbid",
32
- },
33
- {
34
- "selector": ["class"],
35
- "format": ["PascalCase"],
36
- "leadingUnderscore": "forbid",
37
- "trailingUnderscore": "forbid",
38
- },
39
- {
40
- "selector": "variable",
41
- "types": ["boolean"],
42
- "format": ["PascalCase"],
43
- "leadingUnderscore": "forbid",
44
- "trailingUnderscore": "forbid",
45
- "prefix": ["is", "should", "has", "can", "did", "will"]
46
- },
47
- {
48
- "selector": "interface",
49
- "format": ["PascalCase"],
50
- "leadingUnderscore": "forbid",
51
- "trailingUnderscore": "forbid",
52
- "custom": {
53
- "regex": "^I[A-Z]",
54
- "match": true
55
- }
56
- },
57
- {
58
- "selector": "variable",
59
- "modifiers": ["const"],
60
- "format": ["camelCase","UPPER_CASE", "PascalCase"],
61
- "leadingUnderscore": "forbid",
62
- "trailingUnderscore": "forbid",
63
- }
64
- ]
65
- },
66
- };