@virmator/lint 14.7.0 → 14.7.2

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.
@@ -234,7 +234,7 @@ export function defineEslintConfig(repoDir) {
234
234
  {
235
235
  ObjectExpression: {
236
236
  multiline: true,
237
- minProperties: 2,
237
+ minProperties: 1,
238
238
  consistent: true,
239
239
  },
240
240
  ObjectPattern: {
@@ -1,15 +1,16 @@
1
1
  import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base';
2
- import {join, resolve} from 'path';
2
+ import {dirname, join} from 'node:path';
3
+ import {fileURLToPath} from 'node:url';
3
4
  import {type TypeDocOptions} from 'typedoc';
4
5
 
5
- const repoRoot = resolve(import.meta.dirname, '..');
6
- const indexTsFile = join(repoRoot, 'src', 'lint.ts');
6
+ const indexTsFile = join(dirname(dirname(fileURLToPath(import.meta.url))), 'src', 'lint.ts');
7
+ const outDirPath = join(dirname(dirname(fileURLToPath(import.meta.url))), 'dist-docs');
7
8
 
8
9
  export const typeDocConfig: Partial<TypeDocOptions> = {
9
10
  ...baseTypedocConfig,
10
- out: join(repoRoot, 'dist-docs'),
11
+ out: outDirPath,
11
12
  entryPoints: [
12
- indexTsFile,
13
+ indexTsFile.replaceAll('\\', '/'),
13
14
  ],
14
15
  intentionallyNotExported: [],
15
16
  };
package/dist/lint.js CHANGED
@@ -252,5 +252,7 @@ export const virmatorLintPlugin = defineVirmatorPlugin(import.meta.dirname, {
252
252
  ]
253
253
  .filter(check.isTruthy)
254
254
  .join(' ');
255
- await runShellCommand(eslintCommand, { cwd: monoRepoRootPath });
255
+ await runShellCommand(eslintCommand, {
256
+ cwd: monoRepoRootPath,
257
+ });
256
258
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/lint",
3
- "version": "14.7.0",
3
+ "version": "14.7.2",
4
4
  "description": "Default ESLint linting plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -35,7 +35,7 @@
35
35
  "@augment-vir/assert": "^31.64.0",
36
36
  "@augment-vir/common": "^31.64.0",
37
37
  "@augment-vir/node": "^31.64.0",
38
- "@virmator/core": "^14.7.0",
38
+ "@virmator/core": "^14.7.2",
39
39
  "mri": "^1.2.0"
40
40
  },
41
41
  "devDependencies": {