@diplodoc/lint 1.7.0 → 1.9.0

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/.gitattributes ADDED
@@ -0,0 +1,32 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+
4
+ # Explicitly declare text files you want to always be normalized and converted
5
+ # to native line endings on checkout.
6
+ *.js text eol=lf
7
+ *.mjs text eol=lf
8
+ *.cjs text eol=lf
9
+ *.jsx text eol=lf
10
+ *.ts text eol=lf
11
+ *.tsx text eol=lf
12
+ *.json text eol=lf
13
+ *.yml text eol=lf
14
+ *.yaml text eol=lf
15
+ *.md text eol=lf
16
+ *.css text eol=lf
17
+ *.scss text eol=lf
18
+ *.html text eol=lf
19
+ *.sh text eol=lf
20
+
21
+ # Denote all files that are truly binary and should not be modified.
22
+ *.png binary
23
+ *.jpg binary
24
+ *.jpeg binary
25
+ *.gif binary
26
+ *.ico binary
27
+ *.svg binary
28
+ *.woff binary
29
+ *.woff2 binary
30
+ *.ttf binary
31
+ *.eot binary
32
+
package/.lintstagedrc.js CHANGED
@@ -8,6 +8,7 @@ module.exports = {
8
8
  '.eslintrc.js',
9
9
  '.prettierrc.js',
10
10
  '.stylelintrc.js',
11
+ 'prettier-common-config.js',
11
12
  ];
12
13
  const filtered = filenames.filter(
13
14
  (f) =>
@@ -18,12 +19,18 @@ module.exports = {
18
19
  if (filtered.length === 0) {
19
20
  return [];
20
21
  }
21
- return ['prettier --write', 'eslint --max-warnings=0 --fix'];
22
+ return [
23
+ ...filtered.map((f) => `prettier --write ${f}`),
24
+ ...filtered.map((f) => `eslint --max-warnings=0 --fix ${f}`),
25
+ ];
22
26
  },
23
27
  // Handle .lintstagedrc.js separately (only prettier, no eslint)
24
- '.lintstagedrc.js': ['prettier --write'],
25
- '**/*.{css,scss}': ['prettier --write', 'stylelint --fix'],
26
- '**/*.{json,yaml,yml,md}': ['prettier --write'],
28
+ '.lintstagedrc.js': (filenames) => filenames.map((f) => `prettier --write ${f}`),
29
+ '**/*.{css,scss}': (filenames) => [
30
+ ...filenames.map((f) => `prettier --write ${f}`),
31
+ ...filenames.map((f) => `stylelint --fix ${f}`),
32
+ ],
33
+ '**/*.{json,yaml,yml,md}': (filenames) => filenames.map((f) => `prettier --write ${f}`),
27
34
  '**/*.{svg,svgx}': ['svgo'],
28
35
  // Run unit tests when test files or source files change
29
36
  '**/*.{ts,tsx}': (filenames) => {
@@ -3,7 +3,7 @@
3
3
  "packages": {
4
4
  ".": {
5
5
  "release-type": "node",
6
- "package-name": "@diplodoc/lint",
6
+ "include-component-in-tag": false,
7
7
  "changelog-path": "CHANGELOG.md",
8
8
  "version-file": "package.json",
9
9
  "changelog-types": [
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.7.0"
2
+ ".": "1.9.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,126 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.0](https://github.com/diplodoc-platform/lint/compare/v1.8.0...v1.9.0) (2025-12-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * add dependabot.yml and improve security.yml in scaffolding ([baecc39](https://github.com/diplodoc-platform/lint/commit/baecc390e6d1f7d7916da74580c1c61b50f6017c))
9
+ * add update-deps and package-lock workflows to scaffolding ([20b1064](https://github.com/diplodoc-platform/lint/commit/20b106400f83b035d225377d101b082168140d80))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * remove trailing newlines from release-please-manifest template ([cea4d8c](https://github.com/diplodoc-platform/lint/commit/cea4d8c79b9d2a476a4bc75e68135cf6aa83e9b9))
15
+ * Skip scripts for package-lock update ([7cda090](https://github.com/diplodoc-platform/lint/commit/7cda0902140bcf0ec4f78c9f3ec95e11cb247e40))
16
+
17
+ ## [1.8.0](https://github.com/diplodoc-platform/lint/compare/v1.7.2...v1.8.0) (2025-12-27)
18
+
19
+
20
+ ### Features
21
+
22
+ * add .editorconfig to scaffolding ([876ac1d](https://github.com/diplodoc-platform/lint/commit/876ac1de0e48f99b607608c87a63a2dd25ff0f5e))
23
+ * add @typescript-eslint/consistent-type-imports rule ([797126d](https://github.com/diplodoc-platform/lint/commit/797126d02acfff1202cb413b4d4f5cf83cbd918a))
24
+ * add GitHub Actions workflows to scaffolding ([315614e](https://github.com/diplodoc-platform/lint/commit/315614eb288a448ffe45953b4294226b394bcfb3))
25
+ * add release-please configuration files ([22d84c7](https://github.com/diplodoc-platform/lint/commit/22d84c73fe12fe02213a47e390da881a2336fba5))
26
+ * add typecheck and build scripts to package.json ([be00b2f](https://github.com/diplodoc-platform/lint/commit/be00b2f6e003870e444fde48148bdb0b348fe7b0))
27
+ * add unit tests to pre-commit hook and fix ESLint config ([3b063db](https://github.com/diplodoc-platform/lint/commit/3b063dbfd6feb382fcab2990cd6cea04b9f0d113))
28
+ * Handle svgx extension ([56b3242](https://github.com/diplodoc-platform/lint/commit/56b3242d8fb93f2265dd2c63e8e993b21dd81cab))
29
+ * Parse import asserts ([8f314eb](https://github.com/diplodoc-platform/lint/commit/8f314ebec4ede6d48f77ea8258f2c3dfc16247a8))
30
+ * Split init and update phase ([b0e6a87](https://github.com/diplodoc-platform/lint/commit/b0e6a872624fe8c3af56ed815dee5224b7da5434))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * add --no-warn-ignored flag to ESLint to suppress ignored file warnings ([06685b6](https://github.com/diplodoc-platform/lint/commit/06685b6d037d03607138836c110d7995b82a34f2))
36
+ * add error handling to copy-scaffolding script ([03be5a8](https://github.com/diplodoc-platform/lint/commit/03be5a8829d19675ca36cd0e93b61d94ecdffaf0))
37
+ * add eslint-env node comment to lint-staged config files ([c7516d9](https://github.com/diplodoc-platform/lint/commit/c7516d99f90b39b02ae7c788a4224da21a844fe6))
38
+ * add ignorePatterns to scaffolding/.eslintrc.js ([3a12425](https://github.com/diplodoc-platform/lint/commit/3a124252b3e41fcd4e1da337fe65305b2d252d19))
39
+ * add include-component-in-tag: false to release-please config ([30ebbd3](https://github.com/diplodoc-platform/lint/commit/30ebbd31eff2e7c3dffaa295ace02855d89adc62))
40
+ * add override for .mjs/.cjs files in ESLint config ([f494b66](https://github.com/diplodoc-platform/lint/commit/f494b661e377c0e21be86aab1f26c0d9e550fb6e))
41
+ * add releases write permission and force file overwrite on update ([c5b8684](https://github.com/diplodoc-platform/lint/commit/c5b868416e58031dded6515d06d685c3710886b0))
42
+ * Add special rules for eslintrc.json ([bb4b615](https://github.com/diplodoc-platform/lint/commit/bb4b615e75c5099f343871fb6fcbea4ab119d14a))
43
+ * add Windows .cmd wrapper for lint script ([130a79c](https://github.com/diplodoc-platform/lint/commit/130a79c468a39af31aa758a9a774a3668ed83d6a))
44
+ * always update workflows from scaffolding to ensure consistency ([ad82373](https://github.com/diplodoc-platform/lint/commit/ad823739d81624a8eb5c705650219e19960556e7))
45
+ * Change init staps sequence ([7f8aaa5](https://github.com/diplodoc-platform/lint/commit/7f8aaa54f758dbfe58adbbda6ec0a9e5cb556baa))
46
+ * configure prettier and gitattributes for cross-platform line endings ([e1dd209](https://github.com/diplodoc-platform/lint/commit/e1dd209d91f62aa8f7cabf7da02a13404bb67276))
47
+ * correct path resolution in Windows .cmd wrapper ([04fb89d](https://github.com/diplodoc-platform/lint/commit/04fb89d911449d7c693c0a1b95bfd9504f98f01e))
48
+ * Do not rewrite husky npm script ([f0b1b85](https://github.com/diplodoc-platform/lint/commit/f0b1b85e2ba86cafc85d91f844ebb09c081c8ed2))
49
+ * explicitly set GITHUB_REPOSITORY env for release-please ([7aa30a5](https://github.com/diplodoc-platform/lint/commit/7aa30a597387bd000c0729862c2cf8e216843303))
50
+ * Extend lint-staged files lists ([b0229aa](https://github.com/diplodoc-platform/lint/commit/b0229aa0bb779d26a66717326c53a620e258d277))
51
+ * Fix bin resolution for metapackage structure ([ab75994](https://github.com/diplodoc-platform/lint/commit/ab759946f7aad0cba84458bcbf3404e09c239dec))
52
+ * Fix dummy error in packages init ([a2c34f4](https://github.com/diplodoc-platform/lint/commit/a2c34f475f9463ad0dc065a64825257aa72600ba))
53
+ * Fix install script ([9ea0d07](https://github.com/diplodoc-platform/lint/commit/9ea0d07cba75b0ef736477280ce92528726e2e5a))
54
+ * Fix packagelock ([149b4d9](https://github.com/diplodoc-platform/lint/commit/149b4d94b42c7c8c667f5c6e73236b3590a87e1e))
55
+ * Fix prettier errors ([cc2ce97](https://github.com/diplodoc-platform/lint/commit/cc2ce97f2c94fed02849f99f5f2d8b13b7655e76))
56
+ * Fix release actions ([926b7bf](https://github.com/diplodoc-platform/lint/commit/926b7bf0a0c36d657e0a990a6b1488994b2680a7))
57
+ * Fix shell script ([8743493](https://github.com/diplodoc-platform/lint/commit/8743493d09b067dd06d4d16e53288a9d2f1a7763))
58
+ * Fix windows specific ([c96a28c](https://github.com/diplodoc-platform/lint/commit/c96a28c10b393ff19000e4db37ce8d3ad7cdb11a))
59
+ * Fix Windows specific ([e4531c4](https://github.com/diplodoc-platform/lint/commit/e4531c46aaae4d3d27d4f1d2ecc4e8baab373730))
60
+ * Force update prepare script ([67ee6d2](https://github.com/diplodoc-platform/lint/commit/67ee6d26718085e124b9feba50f2a04e685f7d17))
61
+ * handle .lintstagedrc.js separately in lint-staged config ([fee8678](https://github.com/diplodoc-platform/lint/commit/fee8678ae67784c2372f21f470d4aeeaa195f7f4))
62
+ * Handle jest config ([8df332d](https://github.com/diplodoc-platform/lint/commit/8df332d2c4ec1f44b01ab9b7955df23ca784cad8))
63
+ * improve cross-platform compatibility for integration tests ([d00f796](https://github.com/diplodoc-platform/lint/commit/d00f7964d4f284f727aa9ca78c0acbb9138d2a63))
64
+ * improve scaffolding path resolution in copy-scaffolding ([993fa40](https://github.com/diplodoc-platform/lint/commit/993fa4049edd79eaf621a0d8ec5d45798667b7cd))
65
+ * improve SRCDIR path resolution in bin/lint ([08b9451](https://github.com/diplodoc-platform/lint/commit/08b945135f88693c30541483cb82c90048d2108e))
66
+ * improve Windows .cmd wrapper with sh fallback ([6187a52](https://github.com/diplodoc-platform/lint/commit/6187a52cfc4f797af21fab5fa4a481bbb264e765))
67
+ * improve workflow copying to avoid overwriting existing workflows ([2245114](https://github.com/diplodoc-platform/lint/commit/224511473f253283a29868fdd0669554f823146f))
68
+ * install @diplodoc/lint in test directory for npm script test ([d0bd5f1](https://github.com/diplodoc-platform/lint/commit/d0bd5f1e3c68a918b4d828309d2c14a0401592ef))
69
+ * make integration tests cross-platform compatible ([cc59464](https://github.com/diplodoc-platform/lint/commit/cc59464eb65e3cfc0589fff68a972df45cbd2305))
70
+ * Make internal bins force executable ([d69f85e](https://github.com/diplodoc-platform/lint/commit/d69f85e1e60e0cd6fb9f7c3b0648785191eb065d))
71
+ * prevent overwriting existing workflows during scaffolding copy ([777a7ad](https://github.com/diplodoc-platform/lint/commit/777a7ade09b8af8d43ef789cc213147c9ae9626e))
72
+ * Proxy all lint binary ([e9615cd](https://github.com/diplodoc-platform/lint/commit/e9615cdba5394b5433a3e523e2468754a04724a8))
73
+ * Proxy husky bin ([3ff236a](https://github.com/diplodoc-platform/lint/commit/3ff236a6561721e769b4b242f17ede10f115de61))
74
+ * remove incorrectly copied files with absolute paths ([e1ac063](https://github.com/diplodoc-platform/lint/commit/e1ac06358c54504632e0482ca21e69aafc349508))
75
+ * remove invalid --no-warn-ignored flag from ESLint command ([1fc9a67](https://github.com/diplodoc-platform/lint/commit/1fc9a670056054dbedce90613f8c52111a1350ea))
76
+ * remove invalid --no-warn-ignored flag from ESLint commands ([644e271](https://github.com/diplodoc-platform/lint/commit/644e27123985ea2c078ffd4f632b9e4252f1a24c))
77
+ * remove invalid releases permission from workflow ([243d68e](https://github.com/diplodoc-platform/lint/commit/243d68e05434da1b05bd0fdb307be933945378b6))
78
+ * Remove overrides for [@typescript-eslint](https://github.com/typescript-eslint) ([c1f017a](https://github.com/diplodoc-platform/lint/commit/c1f017a44a0fb82609b61b75eb50ef9154180d26))
79
+ * remove package-name from release-please config ([69d9cef](https://github.com/diplodoc-platform/lint/commit/69d9cefc9309164bb1fed16e2d07bb42da6a5795))
80
+ * remove release.yml and add release-please.yml to scaffolding ([2fa48fd](https://github.com/diplodoc-platform/lint/commit/2fa48fd9e7a1facffac9af33360899c1ee2e7d4c))
81
+ * remove typecheck and build steps from lint tests workflow ([7e3a418](https://github.com/diplodoc-platform/lint/commit/7e3a418ee8a2a938119ed530630375b8ad8796ac))
82
+ * remove typecheck and build steps from lint tests workflow ([fc004b1](https://github.com/diplodoc-platform/lint/commit/fc004b1722bd845ae6e70f8d4e7347bcfbe23f95))
83
+ * Remove useless install command ([c9fce40](https://github.com/diplodoc-platform/lint/commit/c9fce40c67482ac04a145d0920c0bd1fc9edaf97))
84
+ * rename release.yml to publish.yml and update workflow ([9c29a35](https://github.com/diplodoc-platform/lint/commit/9c29a35f85dfb2b2bd2cf68d10cf460921d54bd7))
85
+ * simplify SRCDIR resolution using node realpathSync ([ab5ec97](https://github.com/diplodoc-platform/lint/commit/ab5ec9780e87cab991c2fde5cfa35433f7297326))
86
+ * simplify workflow copying logic ([0d6cb67](https://github.com/diplodoc-platform/lint/commit/0d6cb67cfb22273ed84d23dc387e4510a5e9e39c))
87
+ * Skip useless css linting for node projects ([603d093](https://github.com/diplodoc-platform/lint/commit/603d09384f40e514acd795e708ca987845c52e5c))
88
+ * Unignore rc configs ([cf201c6](https://github.com/diplodoc-platform/lint/commit/cf201c694ee4de91d6c7a98326ec07ee52254fb8))
89
+ * Update @typescript-eslint/parser ([60cf215](https://github.com/diplodoc-platform/lint/commit/60cf215e7bea2fd50953ea1f8ce1fe234b5bc75a))
90
+ * Update ignore list ([7a68c87](https://github.com/diplodoc-platform/lint/commit/7a68c87ef9f0bd5950343e1d1ee22c235ffbb242))
91
+ * Update release script ([f2a5b13](https://github.com/diplodoc-platform/lint/commit/f2a5b13ec792bab090fb70b0dd6d5504ae4cb3f5))
92
+ * Update release script ([80d6a60](https://github.com/diplodoc-platform/lint/commit/80d6a6008b9375fe3aba8a3d4d5df126a89b3053))
93
+ * Update release script ([cb2cd4d](https://github.com/diplodoc-platform/lint/commit/cb2cd4d50f7699659e9fc79cbadc59498d2a0302))
94
+ * update release-please action and add scaffolding support ([e10a1eb](https://github.com/diplodoc-platform/lint/commit/e10a1ebc3489963e0d0bdb63229db362e2f57124))
95
+ * update release.yml to publish only on release events ([024dc38](https://github.com/diplodoc-platform/lint/commit/024dc38cfcd2a7338fabcb5d43d88edfca00b15e))
96
+ * update scaffolding/.lintstagedrc.js with test execution and ESLint fixes ([b065de0](https://github.com/diplodoc-platform/lint/commit/b065de0b39daa27fc1aa7bd8e2396571e887310e))
97
+ * update version actions, node 22 ([1427e52](https://github.com/diplodoc-platform/lint/commit/1427e521eaaf762f506913bd7272233ef73225f9))
98
+ * update workflow and package-lock for standalone mode ([7fe3390](https://github.com/diplodoc-platform/lint/commit/7fe33909a55bc77ff0ba4abbae77bb936a4a2ca4))
99
+ * Use @typescript-eslint/parser ([d2ab743](https://github.com/diplodoc-platform/lint/commit/d2ab743ff63bfa8f5bbb38e6b61c632909254d16))
100
+ * use `project: true` for @typescript-eslint/parser ([7ff1cad](https://github.com/diplodoc-platform/lint/commit/7ff1cadb73841072cdc48acb5ca151db2b5af82d))
101
+ * use cross-platform file copying in bin/lint ([3cad582](https://github.com/diplodoc-platform/lint/commit/3cad582177f900fe8fcdb50cff9f825904dae7f3))
102
+ * use find + grep to filter files before ESLint to respect .eslintignore ([edc7d90](https://github.com/diplodoc-platform/lint/commit/edc7d9047f2f902b05e708af7d1fa474b6418c0d))
103
+ * use Node.js for cross-platform file copying ([44b282e](https://github.com/diplodoc-platform/lint/commit/44b282eead131564c5be25cb4504d956e2495eb2))
104
+ * use readlink for more reliable path resolution ([09def99](https://github.com/diplodoc-platform/lint/commit/09def99b70d0dbda62917e9d3eb6c792032d29f3))
105
+ * use sh-compatible syntax instead of bash-specific ([3200da0](https://github.com/diplodoc-platform/lint/commit/3200da05c6febd5d2dcbd8206ace73d11da6d37c))
106
+ * use token in checkout step for release-please workflow ([4398b00](https://github.com/diplodoc-platform/lint/commit/4398b0064d638ff02ac0a0b63ae394a5152d4a83))
107
+ * Use update instead of init on lint run ([ec23ed1](https://github.com/diplodoc-platform/lint/commit/ec23ed1392c5ccba58318f5a975e28baef6a3458))
108
+ * use YC_UI_BOT_GITHUB_TOKEN for release-please workflow ([04b4d8e](https://github.com/diplodoc-platform/lint/commit/04b4d8eefd78b3eea83a87df980fe794adc3747b))
109
+
110
+ ## [1.7.2](https://github.com/diplodoc-platform/lint/compare/lint-v1.7.1...lint-v1.7.2) (2025-12-27)
111
+
112
+
113
+ ### Bug Fixes
114
+
115
+ * remove package-name from release-please config ([69d9cef](https://github.com/diplodoc-platform/lint/commit/69d9cefc9309164bb1fed16e2d07bb42da6a5795))
116
+
117
+ ## [1.7.1](https://github.com/diplodoc-platform/lint/compare/lint-v1.7.0...lint-v1.7.1) (2025-12-26)
118
+
119
+
120
+ ### Bug Fixes
121
+
122
+ * configure prettier and gitattributes for cross-platform line endings ([e1dd209](https://github.com/diplodoc-platform/lint/commit/e1dd209d91f62aa8f7cabf7da02a13404bb67276))
123
+
3
124
  ## [1.7.0](https://github.com/diplodoc-platform/lint/compare/lint-v1.6.0...lint-v1.7.0) (2025-12-26)
4
125
 
5
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint.js",
@@ -61,5 +61,19 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "fs-extra": "^11.3.3"
64
+ },
65
+ "overrides": {
66
+ "js-yaml": "^4.1.1",
67
+ "brace-expansion": "^2.0.2",
68
+ "minimatch": "^10.0.1",
69
+ "eslint-plugin-import": {
70
+ "minimatch": "^10.0.1"
71
+ },
72
+ "eslint-plugin-jsx-a11y": {
73
+ "minimatch": "^10.0.1"
74
+ },
75
+ "eslint-plugin-react": {
76
+ "minimatch": "^10.0.1"
77
+ }
64
78
  }
65
79
  }
@@ -1 +1,6 @@
1
- module.exports = require('@gravity-ui/prettier-config');
1
+ const baseConfig = require('@gravity-ui/prettier-config');
2
+
3
+ module.exports = {
4
+ ...baseConfig,
5
+ endOfLine: 'auto', // Automatically detect line endings (LF/CRLF) for cross-platform compatibility
6
+ };
@@ -0,0 +1,32 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+
4
+ # Explicitly declare text files you want to always be normalized and converted
5
+ # to native line endings on checkout.
6
+ *.js text eol=lf
7
+ *.mjs text eol=lf
8
+ *.cjs text eol=lf
9
+ *.jsx text eol=lf
10
+ *.ts text eol=lf
11
+ *.tsx text eol=lf
12
+ *.json text eol=lf
13
+ *.yml text eol=lf
14
+ *.yaml text eol=lf
15
+ *.md text eol=lf
16
+ *.css text eol=lf
17
+ *.scss text eol=lf
18
+ *.html text eol=lf
19
+ *.sh text eol=lf
20
+
21
+ # Denote all files that are truly binary and should not be modified.
22
+ *.png binary
23
+ *.jpg binary
24
+ *.jpeg binary
25
+ *.gif binary
26
+ *.ico binary
27
+ *.svg binary
28
+ *.woff binary
29
+ *.woff2 binary
30
+ *.ttf binary
31
+ *.eot binary
32
+
@@ -8,6 +8,7 @@ module.exports = {
8
8
  '.eslintrc.js',
9
9
  '.prettierrc.js',
10
10
  '.stylelintrc.js',
11
+ 'prettier-common-config.js',
11
12
  ];
12
13
  const filtered = filenames.filter(
13
14
  (f) =>
@@ -18,12 +19,18 @@ module.exports = {
18
19
  if (filtered.length === 0) {
19
20
  return [];
20
21
  }
21
- return ['prettier --write', 'eslint --max-warnings=0 --fix'];
22
+ return [
23
+ ...filtered.map((f) => `prettier --write ${f}`),
24
+ ...filtered.map((f) => `eslint --max-warnings=0 --fix ${f}`),
25
+ ];
22
26
  },
23
27
  // Handle .lintstagedrc.js separately (only prettier, no eslint)
24
- '.lintstagedrc.js': ['prettier --write'],
25
- '**/*.{css,scss}': ['prettier --write', 'stylelint --fix'],
26
- '**/*.{json,yaml,yml,md}': ['prettier --write'],
28
+ '.lintstagedrc.js': (filenames) => filenames.map((f) => `prettier --write ${f}`),
29
+ '**/*.{css,scss}': (filenames) => [
30
+ ...filenames.map((f) => `prettier --write ${f}`),
31
+ ...filenames.map((f) => `stylelint --fix ${f}`),
32
+ ],
33
+ '**/*.{json,yaml,yml,md}': (filenames) => filenames.map((f) => `prettier --write ${f}`),
27
34
  '**/*.{svg,svgx}': ['svgo'],
28
35
  // Run unit tests when test files or source files change
29
36
  '**/*.{ts,tsx}': (filenames) => {
@@ -3,7 +3,7 @@
3
3
  "packages": {
4
4
  ".": {
5
5
  "release-type": "node",
6
- "package-name": "{{PACKAGE_NAME}}",
6
+ "include-component-in-tag": false,
7
7
  "changelog-path": "CHANGELOG.md",
8
8
  "version-file": "package.json",
9
9
  "changelog-types": [
@@ -1,5 +1,3 @@
1
1
  {
2
2
  ".": "{{PACKAGE_VERSION}}"
3
3
  }
4
-
5
-
@@ -31,7 +31,8 @@ const configContent = configTemplate
31
31
  .replace(/\{\{PACKAGE_NAME\}\}/g, packageName);
32
32
 
33
33
  const manifestContent = manifestTemplate
34
- .replace(/\{\{PACKAGE_VERSION\}\}/g, packageVersion);
34
+ .replace(/\{\{PACKAGE_VERSION\}\}/g, packageVersion)
35
+ .trimEnd(); // Remove trailing whitespace/newlines
35
36
 
36
37
  // Write files
37
38
  const configOutputPath = join(process.cwd(), '.release-please-config.json');