@virmator/lint 13.3.3 → 13.3.5
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/configs/typedoc.config.ts +1 -6
- package/dist/lint.js +2 -0
- package/package.json +2 -2
|
@@ -2,12 +2,7 @@ import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base';
|
|
|
2
2
|
import {join, resolve} from 'path';
|
|
3
3
|
import type {TypeDocOptions} from 'typedoc';
|
|
4
4
|
|
|
5
|
-
const repoRoot = resolve(
|
|
6
|
-
__dirname,
|
|
7
|
-
/** Go up two directories because this gets compiled into `node_modules/.virmator` */
|
|
8
|
-
'..',
|
|
9
|
-
'..',
|
|
10
|
-
);
|
|
5
|
+
const repoRoot = resolve(import.meta.dirname, '..');
|
|
11
6
|
const indexTsFile = join(repoRoot, 'src', 'lint.ts');
|
|
12
7
|
|
|
13
8
|
export const typeDocConfig: Partial<TypeDocOptions> = {
|
package/dist/lint.js
CHANGED
|
@@ -237,10 +237,12 @@ export const virmatorLintPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
237
237
|
},
|
|
238
238
|
}, async ({ package: { monoRepoRootPath }, runShellCommand, cliInputs: { usedCommands, filteredArgs }, }) => {
|
|
239
239
|
const args = mri(filteredArgs);
|
|
240
|
+
const dirPath = args._.length ? '' : '.';
|
|
240
241
|
const eslintCommand = [
|
|
241
242
|
'npx',
|
|
242
243
|
'eslint',
|
|
243
244
|
usedCommands.lint?.subCommands.fix && !args.fix ? '--fix' : '',
|
|
245
|
+
dirPath,
|
|
244
246
|
...filteredArgs,
|
|
245
247
|
]
|
|
246
248
|
.filter(isTruthy)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/lint",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.5",
|
|
4
4
|
"description": "Default ESLint linting plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@augment-vir/common": "^29.3.0",
|
|
35
|
-
"@virmator/core": "^13.3.
|
|
35
|
+
"@virmator/core": "^13.3.5",
|
|
36
36
|
"mri": "^1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|