@virmator/lint 13.3.2 → 13.3.4

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.
@@ -87,25 +87,27 @@ export function defineEslintConfig(repoDir) {
87
87
  '@typescript-eslint/no-unsafe-enum-comparison': 'off',
88
88
  '@typescript-eslint/no-unsafe-member-access': 'off',
89
89
  '@typescript-eslint/no-unsafe-return': 'off',
90
+ '@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
90
91
  '@typescript-eslint/prefer-reduce-type-parameter': 'off',
91
92
  '@typescript-eslint/unified-signatures': 'off', // this rule is always wrong
92
- '@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
93
93
 
94
94
  'sonarjs/cognitive-complexity': 'off',
95
- 'sonarjs/no-empty-test-file': 'off', // this rule is wrong
96
- 'sonarjs/no-misused-promises': 'off', // this rule is wrong
97
95
  'sonarjs/different-types-comparison': 'off', // this rule is wrong
98
- 'sonarjs/no-useless-constructor': 'off', // this rule is wrong
99
- 'sonarjs/no-nested-functions': 'off',
96
+ 'sonarjs/function-return-type': 'off',
100
97
  'sonarjs/no-alphabetical-sort': 'off',
98
+ 'sonarjs/no-duplicate-string': 'off',
99
+ 'sonarjs/no-empty-test-file': 'off', // this rule is wrong
100
+ 'sonarjs/no-misused-promises': 'off', // this rule is wrong
101
101
  'sonarjs/no-nested-conditional': 'off',
102
+ 'sonarjs/no-nested-functions': 'off',
102
103
  'sonarjs/no-redundant-optional': 'off',
103
- 'sonarjs/publicly-writable-directories': 'off',
104
+ 'sonarjs/no-undefined-argument': 'off',
105
+ 'sonarjs/no-useless-constructor': 'off', // this rule is wrong
104
106
  'sonarjs/prefer-nullish-coalescing': 'off',
105
- 'sonarjs/void-use': 'off',
106
- 'sonarjs/function-return-type': 'off',
107
+ 'sonarjs/publicly-writable-directories': 'off',
108
+ 'sonarjs/sonar-prefer-regexp-exec': 'off',
107
109
  'sonarjs/use-type-alias': 'off',
108
- 'sonarjs/no-duplicate-string': 'off',
110
+ 'sonarjs/void-use': 'off',
109
111
 
110
112
  'no-async-promise-executor': 'off',
111
113
  'no-prototype-builtins': 'off',
@@ -228,10 +230,14 @@ export function defineEslintConfig(repoDir) {
228
230
  '**/*.test.ts',
229
231
  ],
230
232
  rules: {
231
- '@typescript-eslint/no-unused-vars': 'off',
232
233
  '@typescript-eslint/no-unused-expressions': 'off',
233
- 'sonarjs/redundant-type-aliases': 'off',
234
+ '@typescript-eslint/no-unused-vars': 'off',
235
+ 'no-sparse-arrays': 'off',
234
236
  'sonarjs/no-dead-store': 'off',
237
+ 'sonarjs/no-empty-function': 'off',
238
+ 'sonarjs/no-unused-expressions': 'off',
239
+ 'sonarjs/pseudo-random': 'off',
240
+ 'sonarjs/redundant-type-aliases': 'off',
235
241
  'sonarjs/sonar-no-unused-vars': 'off',
236
242
  },
237
243
  },
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.2",
3
+ "version": "13.3.4",
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.2",
35
+ "@virmator/core": "^13.3.4",
36
36
  "mri": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {