obsidian-plugin-config 1.4.7 → 1.4.8

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/.editorconfig CHANGED
@@ -1,14 +1,14 @@
1
- # top-most EditorConfig file
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- end_of_line = lf
7
- insert_final_newline = true
8
- indent_style = tab
9
- indent_size = 4
10
- tab_width = 4
11
-
12
- [*.json]
13
- indent_style = space
1
+ # top-most EditorConfig file
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ indent_style = tab
9
+ indent_size = 4
10
+ tab_width = 4
11
+
12
+ [*.json]
13
+ indent_style = space
14
14
  indent_size = 2
@@ -1,5 +1,5 @@
1
- {
2
- "injectorVersion": "1.1.20",
3
- "injectionDate": "2025-07-18T22:04:30.392Z",
4
- "injectorName": "obsidian-plugin-config"
5
- }
1
+ {
2
+ "injectorVersion": "1.1.20",
3
+ "injectionDate": "2025-07-18T22:04:30.392Z",
4
+ "injectorName": "obsidian-plugin-config"
5
+ }
@@ -1,11 +1,11 @@
1
- {
2
- "npm.packageManager": "yarn",
3
- "js/ts.preferences.includePackageJsonAutoImports": "off",
4
- "[typescript]": {
5
- "editor.defaultFormatter": "esbenp.prettier-vscode"
6
- },
7
- "[markdown]": {
8
- "editor.defaultFormatter": "yzhang.markdown-all-in-one"
9
- },
10
- "editor.formatOnSave": true
11
- }
1
+ {
2
+ "npm.packageManager": "yarn",
3
+ "js/ts.preferences.includePackageJsonAutoImports": "off",
4
+ "[typescript]": {
5
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
6
+ },
7
+ "[markdown]": {
8
+ "editor.defaultFormatter": "yzhang.markdown-all-in-one"
9
+ },
10
+ "editor.formatOnSave": true
11
+ }
@@ -1,118 +1,118 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "label": "Build",
6
- "type": "shell",
7
- "command": "yarn build",
8
- "group": { "kind": "build", "isDefault": true },
9
- "presentation": { "reveal": "always", "panel": "shared" },
10
- "problemMatcher": ["$tsc"]
11
- },
12
- {
13
- "label": "Dev (watch)",
14
- "type": "shell",
15
- "command": "yarn dev",
16
- "group": "build",
17
- "presentation": { "reveal": "always", "panel": "shared" },
18
- "problemMatcher": ["$tsc-watch"],
19
- "isBackground": true
20
- },
21
- {
22
- "label": "Real (build to vault)",
23
- "type": "shell",
24
- "command": "yarn real",
25
- "group": "build",
26
- "presentation": { "reveal": "always", "panel": "shared" },
27
- "problemMatcher": ["$tsc"]
28
- },
29
- {
30
- "label": "Lint",
31
- "type": "shell",
32
- "command": "yarn lint",
33
- "group": "test",
34
- "presentation": { "reveal": "always", "panel": "shared" },
35
- "problemMatcher": ["$eslint-stylish"]
36
- },
37
- {
38
- "label": "Lint: Fix",
39
- "type": "shell",
40
- "command": "yarn lint:fix",
41
- "group": "test",
42
- "presentation": { "reveal": "always", "panel": "shared" },
43
- "problemMatcher": ["$eslint-stylish"]
44
- },
45
- {
46
- "label": "Prettier: Check",
47
- "type": "shell",
48
- "command": "yarn prettier",
49
- "group": "test",
50
- "presentation": { "reveal": "always", "panel": "shared" },
51
- "problemMatcher": []
52
- },
53
- {
54
- "label": "Prettier: Fix",
55
- "type": "shell",
56
- "command": "yarn prettier:fix",
57
- "group": "test",
58
- "presentation": { "reveal": "always", "panel": "shared" },
59
- "problemMatcher": []
60
- },
61
- {
62
- "label": "Update Exports",
63
- "type": "shell",
64
- "command": "yarn update-exports",
65
- "group": "build",
66
- "presentation": { "reveal": "always", "panel": "shared" },
67
- "problemMatcher": []
68
- },
69
- {
70
- "label": "ACP (add, commit, push)",
71
- "type": "shell",
72
- "command": "yarn acp",
73
- "group": "build",
74
- "presentation": { "reveal": "always", "panel": "shared" },
75
- "problemMatcher": []
76
- },
77
- {
78
- "label": "BACP (build + acp)",
79
- "type": "shell",
80
- "command": "yarn bacp",
81
- "group": "build",
82
- "presentation": { "reveal": "always", "panel": "shared" },
83
- "problemMatcher": []
84
- },
85
- {
86
- "label": "Version update",
87
- "type": "shell",
88
- "command": "yarn v",
89
- "group": "build",
90
- "presentation": { "reveal": "always", "panel": "shared" },
91
- "problemMatcher": []
92
- },
93
- {
94
- "label": "Upgrade All (yarn upgrade + sync templates)",
95
- "type": "shell",
96
- "command": "yarn upgrade-all",
97
- "group": "build",
98
- "presentation": { "reveal": "always", "panel": "shared" },
99
- "problemMatcher": []
100
- },
101
- {
102
- "label": "NPM Publish",
103
- "type": "shell",
104
- "command": "yarn npm-publish",
105
- "group": "build",
106
- "presentation": { "reveal": "always", "panel": "shared" },
107
- "problemMatcher": []
108
- },
109
- {
110
- "label": "Cleanup: Lint + Prettier + Build",
111
- "dependsOrder": "sequence",
112
- "dependsOn": ["Lint: Fix", "Prettier: Fix", "Build"],
113
- "group": "build",
114
- "presentation": { "reveal": "always", "panel": "shared" },
115
- "problemMatcher": []
116
- }
117
- ]
118
- }
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "Build",
6
+ "type": "shell",
7
+ "command": "yarn build",
8
+ "group": { "kind": "build", "isDefault": true },
9
+ "presentation": { "reveal": "always", "panel": "shared" },
10
+ "problemMatcher": ["$tsc"]
11
+ },
12
+ {
13
+ "label": "Dev (watch)",
14
+ "type": "shell",
15
+ "command": "yarn dev",
16
+ "group": "build",
17
+ "presentation": { "reveal": "always", "panel": "shared" },
18
+ "problemMatcher": ["$tsc-watch"],
19
+ "isBackground": true
20
+ },
21
+ {
22
+ "label": "Real (build to vault)",
23
+ "type": "shell",
24
+ "command": "yarn real",
25
+ "group": "build",
26
+ "presentation": { "reveal": "always", "panel": "shared" },
27
+ "problemMatcher": ["$tsc"]
28
+ },
29
+ {
30
+ "label": "Lint",
31
+ "type": "shell",
32
+ "command": "yarn lint",
33
+ "group": "test",
34
+ "presentation": { "reveal": "always", "panel": "shared" },
35
+ "problemMatcher": ["$eslint-stylish"]
36
+ },
37
+ {
38
+ "label": "Lint: Fix",
39
+ "type": "shell",
40
+ "command": "yarn lint:fix",
41
+ "group": "test",
42
+ "presentation": { "reveal": "always", "panel": "shared" },
43
+ "problemMatcher": ["$eslint-stylish"]
44
+ },
45
+ {
46
+ "label": "Prettier: Check",
47
+ "type": "shell",
48
+ "command": "yarn prettier",
49
+ "group": "test",
50
+ "presentation": { "reveal": "always", "panel": "shared" },
51
+ "problemMatcher": []
52
+ },
53
+ {
54
+ "label": "Prettier: Fix",
55
+ "type": "shell",
56
+ "command": "yarn prettier:fix",
57
+ "group": "test",
58
+ "presentation": { "reveal": "always", "panel": "shared" },
59
+ "problemMatcher": []
60
+ },
61
+ {
62
+ "label": "Update Exports",
63
+ "type": "shell",
64
+ "command": "yarn update-exports",
65
+ "group": "build",
66
+ "presentation": { "reveal": "always", "panel": "shared" },
67
+ "problemMatcher": []
68
+ },
69
+ {
70
+ "label": "ACP (add, commit, push)",
71
+ "type": "shell",
72
+ "command": "yarn acp",
73
+ "group": "build",
74
+ "presentation": { "reveal": "always", "panel": "shared" },
75
+ "problemMatcher": []
76
+ },
77
+ {
78
+ "label": "BACP (build + acp)",
79
+ "type": "shell",
80
+ "command": "yarn bacp",
81
+ "group": "build",
82
+ "presentation": { "reveal": "always", "panel": "shared" },
83
+ "problemMatcher": []
84
+ },
85
+ {
86
+ "label": "Version update",
87
+ "type": "shell",
88
+ "command": "yarn v",
89
+ "group": "build",
90
+ "presentation": { "reveal": "always", "panel": "shared" },
91
+ "problemMatcher": []
92
+ },
93
+ {
94
+ "label": "Upgrade All (yarn upgrade + sync templates)",
95
+ "type": "shell",
96
+ "command": "yarn upgrade-all",
97
+ "group": "build",
98
+ "presentation": { "reveal": "always", "panel": "shared" },
99
+ "problemMatcher": []
100
+ },
101
+ {
102
+ "label": "NPM Publish",
103
+ "type": "shell",
104
+ "command": "yarn npm-publish",
105
+ "group": "build",
106
+ "presentation": { "reveal": "always", "panel": "shared" },
107
+ "problemMatcher": []
108
+ },
109
+ {
110
+ "label": "Cleanup: Lint + Prettier + Build",
111
+ "dependsOrder": "sequence",
112
+ "dependsOn": ["Lint: Fix", "Prettier: Fix", "Build"],
113
+ "group": "build",
114
+ "presentation": { "reveal": "always", "panel": "shared" },
115
+ "problemMatcher": []
116
+ }
117
+ ]
118
+ }
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Obsidian Plugin Config - CLI Entry Point
5
5
  * Global command: obsidian-inject
6
- * Version: 1.4.7
6
+ * Version: 1.4.8
7
7
  */
8
8
 
9
9
  import { execSync } from 'child_process';
package/eslint.config.mts CHANGED
@@ -1,64 +1,64 @@
1
- import * as typescriptEslintParser from "@typescript-eslint/parser";
2
- import typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
3
- import "eslint-import-resolver-typescript";
4
- import type {
5
- Linter
6
- } from "eslint";
7
-
8
- const configs: Linter.Config[] = [
9
- {
10
- ignores: [
11
- "eslint.config.mts",
12
- "templates/**"
13
- ]
14
- },
15
- {
16
- files: ["**/*.ts"],
17
- ignores: [
18
- "dist/**",
19
- "node_modules/**",
20
- "main.js"
21
- ],
22
- languageOptions: {
23
- parser: typescriptEslintParser,
24
- sourceType: "module",
25
- parserOptions: {
26
- project: "./tsconfig.json",
27
- ecmaVersion: 2023
28
- }
29
- },
30
- plugins: {
31
- "@typescript-eslint": typescriptEslintPlugin as any // Type assertion to bypass type checking
32
- },
33
- rules: {
34
- // Base rules
35
- "no-unused-vars": "off",
36
- "@typescript-eslint/no-unused-vars": ["error", { "args": "none", "varsIgnorePattern": "^_" }],
37
- "@typescript-eslint/ban-ts-comment": "warn",
38
- "no-prototype-builtins": "off",
39
- "@typescript-eslint/no-empty-function": "off",
40
-
41
- // Useful rules but not too strict
42
- "semi": "error",
43
- "eqeqeq": ["error", "always"],
44
- "prefer-const": "error",
45
- "@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
46
- "@typescript-eslint/no-explicit-any": "warn",
47
- "@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }],
48
-
49
- // Disable overly strict rules
50
- "@typescript-eslint/no-unsafe-assignment": "off",
51
- "@typescript-eslint/no-unsafe-call": "off",
52
- "@typescript-eslint/no-unsafe-member-access": "off",
53
- "@typescript-eslint/no-unsafe-argument": "off"
54
- }
55
- },
56
- {
57
- files: ["src/**/*.ts"],
58
- rules: {
59
- "no-console": ["warn", { "allow": ["warn", "error", "debug"] }]
60
- }
61
- }
62
- ];
63
-
64
- export default configs;
1
+ import * as typescriptEslintParser from "@typescript-eslint/parser";
2
+ import typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
3
+ import "eslint-import-resolver-typescript";
4
+ import type {
5
+ Linter
6
+ } from "eslint";
7
+
8
+ const configs: Linter.Config[] = [
9
+ {
10
+ ignores: [
11
+ "eslint.config.mts",
12
+ "templates/**"
13
+ ]
14
+ },
15
+ {
16
+ files: ["**/*.ts"],
17
+ ignores: [
18
+ "dist/**",
19
+ "node_modules/**",
20
+ "main.js"
21
+ ],
22
+ languageOptions: {
23
+ parser: typescriptEslintParser,
24
+ sourceType: "module",
25
+ parserOptions: {
26
+ project: "./tsconfig.json",
27
+ ecmaVersion: 2023
28
+ }
29
+ },
30
+ plugins: {
31
+ "@typescript-eslint": typescriptEslintPlugin as any // Type assertion to bypass type checking
32
+ },
33
+ rules: {
34
+ // Base rules
35
+ "no-unused-vars": "off",
36
+ "@typescript-eslint/no-unused-vars": ["error", { "args": "none", "varsIgnorePattern": "^_" }],
37
+ "@typescript-eslint/ban-ts-comment": "warn",
38
+ "no-prototype-builtins": "off",
39
+ "@typescript-eslint/no-empty-function": "off",
40
+
41
+ // Useful rules but not too strict
42
+ "semi": "error",
43
+ "eqeqeq": ["error", "always"],
44
+ "prefer-const": "error",
45
+ "@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
46
+ "@typescript-eslint/no-explicit-any": "warn",
47
+ "@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }],
48
+
49
+ // Disable overly strict rules
50
+ "@typescript-eslint/no-unsafe-assignment": "off",
51
+ "@typescript-eslint/no-unsafe-call": "off",
52
+ "@typescript-eslint/no-unsafe-member-access": "off",
53
+ "@typescript-eslint/no-unsafe-argument": "off"
54
+ }
55
+ },
56
+ {
57
+ files: ["src/**/*.ts"],
58
+ rules: {
59
+ "no-console": ["warn", { "allow": ["warn", "error", "debug"] }]
60
+ }
61
+ }
62
+ ];
63
+
64
+ export default configs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-plugin-config",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "Système d'injection pour plugins Obsidian autonomes",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",