@virmator/lint 13.3.1 → 13.3.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.
@@ -91,10 +91,25 @@ export function defineEslintConfig(repoDir) {
91
91
  '@typescript-eslint/unified-signatures': 'off', // this rule is always wrong
92
92
  '@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
93
93
 
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
+ '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',
100
+ 'sonarjs/no-alphabetical-sort': 'off',
101
+ 'sonarjs/no-nested-conditional': 'off',
102
+ 'sonarjs/no-redundant-optional': 'off',
103
+ 'sonarjs/publicly-writable-directories': 'off',
104
+ 'sonarjs/prefer-nullish-coalescing': 'off',
105
+ 'sonarjs/void-use': 'off',
106
+ 'sonarjs/function-return-type': 'off',
107
+ 'sonarjs/use-type-alias': 'off',
108
+ 'sonarjs/no-duplicate-string': 'off',
109
+
94
110
  'no-async-promise-executor': 'off',
95
111
  'no-prototype-builtins': 'off',
96
112
  'prettier/prettier': 'off',
97
- 'sonarjs/no-duplicate-string': 'off',
98
113
 
99
114
  'unicorn/new-for-builtins': 'error',
100
115
  'unicorn/no-array-push-push': 'error',
@@ -209,11 +224,15 @@ export function defineEslintConfig(repoDir) {
209
224
  },
210
225
  {
211
226
  files: [
227
+ /** Be much more lenient with test files. */
212
228
  '**/*.test.ts',
213
229
  ],
214
230
  rules: {
215
231
  '@typescript-eslint/no-unused-vars': 'off',
216
232
  '@typescript-eslint/no-unused-expressions': 'off',
233
+ 'sonarjs/redundant-type-aliases': 'off',
234
+ 'sonarjs/no-dead-store': 'off',
235
+ 'sonarjs/sonar-no-unused-vars': 'off',
217
236
  },
218
237
  },
219
238
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/lint",
3
- "version": "13.3.1",
3
+ "version": "13.3.2",
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.2",
36
36
  "mri": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {