@virmator/lint 13.5.1 → 13.5.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.
@@ -93,6 +93,7 @@ export function defineEslintConfig(repoDir) {
93
93
  '@typescript-eslint/no-unsafe-return': 'off',
94
94
  '@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
95
95
  '@typescript-eslint/prefer-reduce-type-parameter': 'off',
96
+ '@typescript-eslint/return-await': 'off',
96
97
  '@typescript-eslint/unified-signatures': 'off', // this rule is always wrong
97
98
 
98
99
  'sonarjs/cognitive-complexity': 'off',
@@ -105,7 +106,9 @@ export function defineEslintConfig(repoDir) {
105
106
  'sonarjs/no-misused-promises': 'off', // this rule is wrong
106
107
  'sonarjs/no-nested-conditional': 'off',
107
108
  'sonarjs/no-nested-functions': 'off',
109
+ 'sonarjs/no-redeclare': 'off', // this rule is wrong and will get caught by TS anyway
108
110
  'sonarjs/no-redundant-optional': 'off',
111
+ 'sonarjs/no-selector-parameter': 'off',
109
112
  'sonarjs/no-undefined-argument': 'off',
110
113
  'sonarjs/no-useless-constructor': 'off', // this rule is wrong
111
114
  'sonarjs/prefer-nullish-coalescing': 'off',
@@ -207,6 +210,23 @@ export function defineEslintConfig(repoDir) {
207
210
  '@typescript-eslint/restrict-template-expressions': [
208
211
  'error',
209
212
  {
213
+ allow: [
214
+ {
215
+ from: 'package',
216
+ name: 'CSSResult',
217
+ package: 'element-vir',
218
+ },
219
+ {
220
+ from: 'package',
221
+ name: 'CSSResult',
222
+ package: 'lit',
223
+ },
224
+ {
225
+ from: 'package',
226
+ name: 'CSSResult',
227
+ package: '@lit/reactive-element',
228
+ },
229
+ ],
210
230
  allowNumber: true,
211
231
  },
212
232
  ],
@@ -220,6 +240,12 @@ export function defineEslintConfig(repoDir) {
220
240
  ],
221
241
  },
222
242
  ],
243
+ 'prefer-const': [
244
+ 'error',
245
+ {
246
+ ignoreReadBeforeAssign: true,
247
+ },
248
+ ],
223
249
  },
224
250
  },
225
251
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/lint",
3
- "version": "13.5.1",
3
+ "version": "13.5.3",
4
4
  "description": "Default ESLint linting plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@augment-vir/assert": "^30.2.0",
35
35
  "@augment-vir/common": "^30.2.0",
36
- "@virmator/core": "^13.5.1",
36
+ "@virmator/core": "^13.5.3",
37
37
  "mri": "^1.2.0"
38
38
  },
39
39
  "devDependencies": {