@virmator/lint 13.3.1 → 13.3.3

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,14 +87,31 @@ 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
+
94
+ 'sonarjs/cognitive-complexity': 'off',
95
+ 'sonarjs/different-types-comparison': 'off', // this rule is wrong
96
+ 'sonarjs/function-return-type': 'off',
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
+ 'sonarjs/no-nested-conditional': 'off',
102
+ 'sonarjs/no-nested-functions': 'off',
103
+ 'sonarjs/no-redundant-optional': 'off',
104
+ 'sonarjs/no-undefined-argument': 'off',
105
+ 'sonarjs/no-useless-constructor': 'off', // this rule is wrong
106
+ 'sonarjs/prefer-nullish-coalescing': 'off',
107
+ 'sonarjs/publicly-writable-directories': 'off',
108
+ 'sonarjs/sonar-prefer-regexp-exec': 'off',
109
+ 'sonarjs/use-type-alias': 'off',
110
+ 'sonarjs/void-use': 'off',
93
111
 
94
112
  'no-async-promise-executor': 'off',
95
113
  'no-prototype-builtins': 'off',
96
114
  'prettier/prettier': 'off',
97
- 'sonarjs/no-duplicate-string': 'off',
98
115
 
99
116
  'unicorn/new-for-builtins': 'error',
100
117
  'unicorn/no-array-push-push': 'error',
@@ -209,11 +226,19 @@ export function defineEslintConfig(repoDir) {
209
226
  },
210
227
  {
211
228
  files: [
229
+ /** Be much more lenient with test files. */
212
230
  '**/*.test.ts',
213
231
  ],
214
232
  rules: {
215
- '@typescript-eslint/no-unused-vars': 'off',
216
233
  '@typescript-eslint/no-unused-expressions': 'off',
234
+ '@typescript-eslint/no-unused-vars': 'off',
235
+ 'no-sparse-arrays': 'off',
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',
241
+ 'sonarjs/sonar-no-unused-vars': 'off',
217
242
  },
218
243
  },
219
244
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/lint",
3
- "version": "13.3.1",
3
+ "version": "13.3.3",
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.1",
35
+ "@virmator/core": "^13.3.3",
36
36
  "mri": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {