@vijayhardaha/dev-config 1.1.2 → 1.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vijayhardaha/dev-config",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Reusable development configurations for Next.js + TypeScript projects",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -12,7 +12,6 @@
12
12
  "test": "vitest run",
13
13
  "test:watch": "vitest",
14
14
  "test:coverage": "vitest run --coverage",
15
- "gc": "read -p 'Execute git commands from .tmp/git.txt? [Y/n] ' ans; [ \"$ans\" = \"n\" ] || [ \"$ans\" = \"N\" ] && echo 'Aborted.' || source .tmp/git.txt",
16
15
  "prepare": "husky"
17
16
  },
18
17
  "files": [
@@ -59,22 +58,23 @@
59
58
  "typescript"
60
59
  ],
61
60
  "devDependencies": {
62
- "@commitlint/cli": "^20.5.3",
63
- "@commitlint/config-conventional": "^20.5.3",
64
- "@commitlint/types": "^20.5.0",
61
+ "@commitlint/cli": "^21.0.1",
62
+ "@commitlint/config-conventional": "^21.0.1",
63
+ "@commitlint/types": "^21.0.1",
65
64
  "@prettier/plugin-xml": "^3.4.2",
66
- "@vitest/coverage-v8": "^4.1.5",
65
+ "@vijayhardaha/dev-config": "^1.1.2",
66
+ "@vitest/coverage-v8": "^4.1.7",
67
67
  "eslint-plugin-jsx-a11y": "^6.10.2",
68
68
  "eslint-plugin-react": "^7.37.5",
69
69
  "eslint-plugin-react-hooks": "^7.1.1",
70
70
  "next-sitemap": "^4.2.3",
71
71
  "release-it": "^20.0.1",
72
- "stylelint": "^17.11.0",
72
+ "stylelint": "^17.12.0",
73
73
  "stylelint-config-property-sort-order-smacss": "^11.2.0",
74
74
  "stylelint-config-standard-scss": "^17.0.0",
75
75
  "stylelint-order": "^8.1.1",
76
76
  "typescript": "^6.0.3",
77
- "vitest": "^4.1.5"
77
+ "vitest": "^4.1.7"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@eslint/compat": ">=2",
@@ -91,7 +91,7 @@
91
91
  "eslint": ">=9",
92
92
  "globals": ">=17",
93
93
  "husky": ">=9",
94
- "prettier": ">=3",
94
+ "prettier": "^3.8.3",
95
95
  "typescript": ">=6"
96
96
  },
97
97
  "peerDependenciesMeta": {
@@ -73,7 +73,12 @@ export const buildConfig = ({
73
73
  ...languageOptions,
74
74
  ...(typescript && { parserOptions: { tsconfigRootDir: process.cwd(), ...parserOptions } }),
75
75
  },
76
- settings: { ...(importOrder && { 'import/resolver': { typescript: {} } }), ...extraSettings, ...settings },
76
+ settings: {
77
+ ...(importOrder && { 'import/resolver': { typescript: {} } }),
78
+ ...(jsdoc && { jsdoc: { mode: 'typescript' } }),
79
+ ...extraSettings,
80
+ ...settings,
81
+ },
77
82
  rules: { ...commonRules({ prettier, importOrder, typescript, jsdoc }), ...extraRules, ...rules },
78
83
  ...extend,
79
84
  };
@@ -53,7 +53,15 @@ const jsdocRules = (jsdoc = true) =>
53
53
  // Optional but powerful for large teams
54
54
  'jsdoc/sort-tags': [
55
55
  'warn',
56
- { tagSequence: [{ tags: ['description'] }, { tags: ['param'] }, { tags: ['returns'] }] },
56
+ {
57
+ tagSequence: [
58
+ { tags: ['description'] },
59
+ { tags: ['template'] },
60
+ { tags: ['param'] },
61
+ { tags: ['returns'] },
62
+ { tags: ['example'] },
63
+ ],
64
+ },
57
65
  ],
58
66
 
59
67
  // Avoid useless docs
@@ -39,7 +39,7 @@ const config = {
39
39
  // Collapse object literals
40
40
  objectWrap: 'collapse',
41
41
  // Ensures that whitespace in XML is preserved as-is
42
- xmlWhitespaceSensitivity: 'strict',
42
+ xmlWhitespaceSensitivity: 'preserve',
43
43
 
44
44
  // ---- Plugins ----
45
45
  plugins: ['@prettier/plugin-xml'],