@w5s/mrm-preset 3.0.0 → 3.2.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.
@@ -1,6 +1,4 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.11.6 build:tsc
4
- > tsc
5
-
6
- ⠙⠙
1
+
2
+ > @w5s/mrm-preset@3.1.0 build:tsc
3
+ > tsc
4
+
@@ -0,0 +1,6 @@
1
+
2
+ 
3
+ > @w5s/mrm-preset@3.1.0 clean:tsc
4
+ > rm -rf dist
5
+
6
+ ⠙⠙
@@ -1,4 +1,29 @@
1
-
2
- > @w5s/mrm-preset@2.11.5 format:src
3
- > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
4
-
1
+
2
+ 
3
+ > @w5s/mrm-preset@3.1.0 format:src
4
+ > eslint . --fix
5
+
6
+ 
7
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/ci/gitlab.js
8
+  5:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
9
+ 
10
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/githubCI.js
11
+  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
12
+  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
13
+  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
14
+  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
15
+ 
16
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/npm.js
17
+  50:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
18
+  90:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
19
+  116:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
20
+  132:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
21
+ 
22
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/vscode.js
23
+  41:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
24
+  82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
25
+  82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
26
+ 
27
+ ✖ 12 problems (0 errors, 12 warnings)
28
+ 
29
+ ⠙⠙
@@ -1,42 +1,27 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.11.6 lint:src
4
- > eslint .
5
-
6
- 
7
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/ci/gitlab.js
8
-  5:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
9
- 
10
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/githooks.js
11
-  1:1 warning Unused eslint-disable directive (no problems were reported from 'node/no-sync')
12
- 
13
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/githubCI.js
14
-  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
15
-  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
16
-  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
17
-  20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
18
- 
19
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/npm.js
20
-  47:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
21
-  87:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
22
-  113:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
23
-  129:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
24
- 
25
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/vscode.js
26
-  41:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
27
-  82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
28
-  82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
29
- 
30
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/githooks/index.js
31
-  33:7 warning Unused eslint-disable directive (no problems were reported from 'no-template-curly-in-string')
32
- 
33
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/post-configure/index.js
34
-  19:5 warning Unused eslint-disable directive (no problems were reported from 'no-console')
35
- 
36
- /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/release/index.js
37
-  14:9 warning Unused eslint-disable directive (no problems were reported from 'no-template-curly-in-string')
38
- 
39
- ✖ 16 problems (0 errors, 16 warnings)
40
-  0 errors and 4 warnings potentially fixable with the `--fix` option.
41
- 
42
- ⠙⠙
1
+
2
+ > @w5s/mrm-preset@3.1.0 lint:src
3
+ > eslint .
4
+
5
+
6
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/ci/gitlab.js
7
+ 5:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
8
+
9
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/githubCI.js
10
+ 20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
11
+ 20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
12
+ 20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
13
+ 20:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
14
+
15
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/npm.js
16
+ 50:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
17
+ 90:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
18
+ 116:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
19
+ 132:1 warning Prefer a more specific type to `Function` jsdoc/reject-function-type
20
+
21
+ /Users/julienpolo/Code/w5s/project-config/packages/mrm-preset/core/vscode.js
22
+ 41:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
23
+ 82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
24
+ 82:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
25
+
26
+ 12 problems (0 errors, 12 warnings)
27
+
@@ -1,4 +1,4 @@
1
1
 
2
- > @w5s/mrm-preset@3.0.0 prepare:empty
2
+ > @w5s/mrm-preset@3.2.0 prepare:empty
3
3
  > :
4
4
 
@@ -1,2 +1 @@
1
-
2
- 
1
+ CSpell: Files checked: 53, Issues found: 0 in 0 files.
@@ -1,58 +1,34 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.11.6 test:script
4
- > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
5
-
6
- mkdir: _tester: File exists
7
- Running bootstrap...
8
- Running alias configure...
9
- Running gitignore...
10
- Running project...
11
- Running contributing...
12
- Running licenses...
13
- Running asdf...
14
- Running release...
15
- Running ci...
16
- Running lang...
17
- Running commitlint...
18
- Running editorconfig...
19
- Running eslint...
20
- Installing @w5s/eslint-config...
21
- [?25l(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) idealTree: timing arborist:ctor Completed in 0ms
22
- npm ERR! ERESOLVE could not resolve
23
- npm ERR!
24
- npm ERR! While resolving: @w5s/eslint-config@2.4.5
25
- npm ERR! Found: eslint@9.26.0
26
- npm ERR! node_modules/eslint
27
- npm ERR! peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.7.0
28
- npm ERR! node_modules/@eslint-community/eslint-utils
29
- npm ERR! @eslint-community/eslint-utils@"^4.2.0" from eslint@9.26.0
30
- npm ERR! dev eslint@"^9.26.0" from the root project
31
- npm ERR! 2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
32
- npm ERR!
33
- npm ERR! Could not resolve dependency:
34
- npm ERR! peerOptional eslint@"8.x" from @w5s/eslint-config@2.4.5
35
- npm ERR! node_modules/@w5s/eslint-config
36
- npm ERR! dev @w5s/eslint-config@"2.4.5" from the root project
37
- npm ERR!
38
- npm ERR! Conflicting peer dependency: eslint@8.57.1
39
- npm ERR! node_modules/eslint
40
- npm ERR! peerOptional eslint@"8.x" from @w5s/eslint-config@2.4.5
41
- npm ERR! node_modules/@w5s/eslint-config
42
- npm ERR! dev @w5s/eslint-config@"2.4.5" from the root project
43
- npm ERR!
44
- npm ERR! Fix the upstream dependency conflict, or retry
45
- npm ERR! this command with --force or --legacy-peer-deps
46
- npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
47
- npm ERR!
48
- npm ERR!
49
- npm ERR! For a full report see:
50
- npm ERR! /Users/julienpolo/.npm/_logs/2025-10-21T22_36_15_158Z-eresolve-report.txt
51
- 
52
- npm ERR! A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2025-10-21T22_36_15_158Z-debug-0.log
53
- Running cspell...
54
- Running vitest...
55
- Running renovate...
56
- Running githooks...
57
- Running post-configure...
58
- ⠙⠙
1
+
2
+ > @w5s/mrm-preset@3.1.0 test:script
3
+ > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
4
+
5
+ mkdir: _tester: File exists
6
+ Running bootstrap...
7
+ Running alias configure...
8
+ Running gitignore...
9
+ Running project...
10
+ Running contributing...
11
+ Running licenses...
12
+ Running asdf...
13
+ Running release...
14
+ Running ci...
15
+ Running lang...
16
+ Update tsconfig.settings.json
17
+ Installing @w5s/tsconfig...
18
+ npm ERR! code E404
19
+ npm ERR! 404 Not Found - GET https://registry.npmjs.org/@w5s%2ftsconfig - Not found
20
+ npm ERR! 404
21
+ npm ERR! 404 '@w5s/tsconfig@latest' is not in this registry.
22
+ npm ERR! 404
23
+ npm ERR! 404 Note that you can also install from a
24
+ npm ERR! 404 tarball, folder, http url, or git url.
25
+
26
+ npm ERR! A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2025-11-23T21_04_52_918Z-debug-0.log
27
+ Running commitlint...
28
+ Running editorconfig...
29
+ Running eslint...
30
+ Running cspell...
31
+ Running vitest...
32
+ Running renovate...
33
+ Running githooks...
34
+ Running post-configure...
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.2.0](github.com/w5s/project-config/compare/@w5s/mrm-preset@3.1.0...@w5s/mrm-preset@3.2.0) (2025-11-23)
7
+
8
+ ### ✨ Features
9
+
10
+ - Add ES6 and strict rules to ESLint configuration ([17dba9a](github.com/w5s/project-config/commits/17dba9a))
11
+
12
+ **Note:** Version bump only for package @w5s/mrm-preset
13
+
14
+ # [3.1.0](github.com/w5s/project-config/compare/@w5s/mrm-preset@3.0.0...@w5s/mrm-preset@3.1.0) (2025-10-27)
15
+
16
+ ### ✨ Features
17
+
18
+ - Enhance ESLint configuration with new rules and stylistic adjustments ([44d4bf3](github.com/w5s/project-config/commits/44d4bf3))
19
+
20
+ **Note:** Version bump only for package @w5s/mrm-preset
21
+
6
22
  # [3.0.0](github.com/w5s/project-config/compare/@w5s/mrm-preset@2.11.6...@w5s/mrm-preset@3.0.0) (2025-10-21)
7
23
 
8
24
  ### 🎫 Chores
@@ -201,7 +201,7 @@ variables:
201
201
  # IMAGE_NAME: $CI_REGISTRY_IMAGE
202
202
 
203
203
  .autodevops_node_image:
204
- image: node:lts-alpine@sha256:3cede0390df539fee0ec4634ca957539b887528ce2824bb2b631aec414bfa06c
204
+ image: node:lts-alpine@sha256:2867d550cf9d8bb50059a0fff528741f11a84d985c732e60e19e8e75c7239c43
205
205
 
206
206
  .autodevops_node_install:
207
207
  extends:
@@ -13,7 +13,7 @@
13
13
  when: always
14
14
  - when: never
15
15
  image:
16
- name: renovate/renovate@sha256:913d93cfb1b10ca26156cfca1e551485e0bd94a1d446aafa58e91e8c283caeb5
16
+ name: renovate/renovate@sha256:0f129ba37673d828fd03de6a9dd548492bfb7a11da33245c43cbb5a1078a8bab
17
17
  entrypoint: ['']
18
18
  script:
19
19
  - >
package/core/githooks.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable node/no-sync */
2
1
  const path = require('node:path');
3
2
  const { blockSync, directorySync, fileSync } = require('@w5s/dev');
4
3
 
package/core/npm.js CHANGED
@@ -1,3 +1,6 @@
1
+ /* eslint-disable no-param-reassign */
2
+ /* eslint-disable consistent-return */
3
+ /* eslint-disable default-param-last */
1
4
  const { yarnVersion, yarnConfig } = require('@w5s/dev');
2
5
 
3
6
  /* cSpell: disable */
package/core/vitest.js CHANGED
@@ -14,7 +14,7 @@ function vitest({ state }) {
14
14
  const hasWorkspace = pkg.hasWorkspaces(packageJson());
15
15
  const vitestScript = 'vitest run';
16
16
  const update = (/** @type {string|undefined} */ _) =>
17
- hasVitest ? vitestScript : _ === vitestScript ? pkg.emptyScript : _;
17
+ (hasVitest ? vitestScript : _ === vitestScript ? pkg.emptyScript : _);
18
18
 
19
19
  // Dependencies
20
20
  npm.dependency({
package/eslint/index.js CHANGED
@@ -101,9 +101,9 @@ function createESLint({ eslintPreset: eslintPresetDefault = 'eslint:recommended'
101
101
  });
102
102
  pkg.forEachWorkspace(({ packageFile }) => {
103
103
  const updater = (/** @type {boolean} */ format) => (/** @type {string} */ _) =>
104
- _ == null || _ === '' || _.trimStart().startsWith('eslint')
104
+ (_ == null || _ === '' || _.trimStart().startsWith('eslint')
105
105
  ? `eslint .${format ? ' --fix' : ''}${extOption}`
106
- : _;
106
+ : _);
107
107
  pkg.script(packageFile, {
108
108
  name: `${project.lint}:src`,
109
109
  update: updater(false),
package/githooks/index.js CHANGED
@@ -30,6 +30,7 @@ function task() {
30
30
  pkg.script(_packageFile, {
31
31
  name: `${project.prepare}:githooks`,
32
32
  state: gitSupported ? 'present' : 'absent',
33
+
33
34
  // eslint-disable-next-line no-template-curly-in-string
34
35
  update: (_) => 'if [ -z "${CI:-}" ]; then git config core.hooksPath .githooks; fi',
35
36
  });
@@ -50,11 +51,11 @@ function task() {
50
51
  path: 'CODEOWNERS',
51
52
  state: gitSupported ? 'present' : 'absent',
52
53
  update: (content) =>
53
- content.length === 0
54
+ (content.length === 0
54
55
  ? template('', path.join(__dirname, 'templates', 'CODEOWNERS'))
55
56
  .apply()
56
57
  .get()
57
- : undefined,
58
+ : undefined),
58
59
  });
59
60
  }
60
61
 
package/lang/index.js CHANGED
@@ -60,7 +60,7 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
60
60
  state: hasTypecript ? 'present' : 'absent',
61
61
  update: () => 'rm -rf dist',
62
62
  });
63
- if (hasTypecript && projectPackageFile.get('name') !== '@w5s/ts-config') {
63
+ if (hasTypecript && projectPackageFile.get('name') !== '@w5s/tsconfig') {
64
64
  projectTsConfig
65
65
  .merge({
66
66
  $schema: 'https://json.schemastore.org/tsconfig.json',
@@ -174,5 +174,5 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
174
174
 
175
175
  module.exports = createLang({
176
176
  language: 'typescript',
177
- tsConfig: '@w5s/ts-config',
177
+ tsConfig: '@w5s/tsconfig',
178
178
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -24,7 +24,7 @@
24
24
  "postpack": "npx clean-package restore"
25
25
  },
26
26
  "dependencies": {
27
- "@w5s/dev": "^3.0.0",
27
+ "@w5s/dev": "^3.1.1",
28
28
  "debug": "^4.3.3",
29
29
  "glob": "^11.0.0",
30
30
  "mrm-core": "^7.0.0",
@@ -38,5 +38,5 @@
38
38
  "access": "public"
39
39
  },
40
40
  "sideEffect": false,
41
- "gitHead": "e038232410218bd01be847ffe84bdb5f6261adc6"
41
+ "gitHead": "8338e5dded9a0bbed4fb84c69ee86d5eff743a12"
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -39,7 +39,7 @@
39
39
  "test:script": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
40
40
  },
41
41
  "dependencies": {
42
- "@w5s/dev": "^3.0.0",
42
+ "@w5s/dev": "^3.1.1",
43
43
  "debug": "^4.3.3",
44
44
  "glob": "^11.0.0",
45
45
  "mrm-core": "^7.0.0",
@@ -59,5 +59,5 @@
59
59
  "access": "public"
60
60
  },
61
61
  "sideEffect": false,
62
- "gitHead": "e038232410218bd01be847ffe84bdb5f6261adc6"
62
+ "gitHead": "8338e5dded9a0bbed4fb84c69ee86d5eff743a12"
63
63
  }
package/project/index.js CHANGED
@@ -182,12 +182,12 @@ function task() {
182
182
  path: 'repository',
183
183
  state: 'present',
184
184
  update: () =>
185
- gitRepository
185
+ (gitRepository
186
186
  ? {
187
187
  type: 'git',
188
188
  url: gitRepository,
189
189
  }
190
- : undefined,
190
+ : undefined),
191
191
  });
192
192
 
193
193
  setDefault(packageFile, false);
@@ -207,13 +207,13 @@ function task() {
207
207
  path: 'repository',
208
208
  state: 'present',
209
209
  update: () =>
210
- gitRepository
210
+ (gitRepository
211
211
  ? {
212
212
  type: 'git',
213
213
  url: gitRepository,
214
214
  directory: workspace.projectDir,
215
215
  }
216
- : undefined,
216
+ : undefined),
217
217
  });
218
218
  setDefault(workspace.packageFile, false);
219
219
  addScripts(workspace.packageFile, false);
@@ -269,6 +269,7 @@ function task() {
269
269
  state: 'present',
270
270
  update: (_) => ({
271
271
  ..._,
272
+ // eslint-disable-next-line unicorn/no-array-sort
272
273
  globalEnv: [...new Set([...(_.globalEnv ?? []), 'ASDF_*', 'CI', 'DATABASE_URL', 'NODE_ENV'])].sort(),
273
274
  globalDependencies: ['.tool-versions', 'tsconfig.settings.json', '**/.env.*local', '.env'],
274
275
  tasks: {