eslint-config-silverwind 50.0.2 → 51.0.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.
Files changed (2) hide show
  1. package/index.json +99 -3
  2. package/package.json +3 -2
package/index.json CHANGED
@@ -2,8 +2,9 @@
2
2
  "root": true,
3
3
  "reportUnusedDisableDirectives": true,
4
4
  "plugins": [
5
- "unicorn",
6
- "import"
5
+ "eslint-plugin-unicorn",
6
+ "eslint-plugin-import",
7
+ "eslint-plugin-sonarjs"
7
8
  ],
8
9
  "parserOptions": {
9
10
  "sourceType": "module",
@@ -55,7 +56,6 @@
55
56
  "isFinite",
56
57
  "isNaN",
57
58
  "length",
58
- "location",
59
59
  "locationbar",
60
60
  "menubar",
61
61
  "moveBy",
@@ -1167,6 +1167,102 @@
1167
1167
  2,
1168
1168
  "always"
1169
1169
  ],
1170
+ "sonarjs/cognitive-complexity": [
1171
+ 0
1172
+ ],
1173
+ "sonarjs/elseif-without-else": [
1174
+ 0
1175
+ ],
1176
+ "sonarjs/max-switch-cases": [
1177
+ 0
1178
+ ],
1179
+ "sonarjs/no-all-duplicated-branches": [
1180
+ 2
1181
+ ],
1182
+ "sonarjs/no-collapsible-if": [
1183
+ 0
1184
+ ],
1185
+ "sonarjs/no-collection-size-mischeck": [
1186
+ 2
1187
+ ],
1188
+ "sonarjs/no-duplicate-string": [
1189
+ 0
1190
+ ],
1191
+ "sonarjs/no-duplicated-branches": [
1192
+ 0
1193
+ ],
1194
+ "sonarjs/no-element-overwrite": [
1195
+ 2
1196
+ ],
1197
+ "sonarjs/no-empty-collection": [
1198
+ 2
1199
+ ],
1200
+ "sonarjs/no-extra-arguments": [
1201
+ 0
1202
+ ],
1203
+ "sonarjs/no-gratuitous-expressions": [
1204
+ 2
1205
+ ],
1206
+ "sonarjs/no-identical-conditions": [
1207
+ 2
1208
+ ],
1209
+ "sonarjs/no-identical-expressions": [
1210
+ 0
1211
+ ],
1212
+ "sonarjs/no-identical-functions": [
1213
+ 0
1214
+ ],
1215
+ "sonarjs/no-ignored-return": [
1216
+ 2
1217
+ ],
1218
+ "sonarjs/no-inverted-boolean-check": [
1219
+ 2
1220
+ ],
1221
+ "sonarjs/no-nested-switch": [
1222
+ 0
1223
+ ],
1224
+ "sonarjs/no-nested-template-literals": [
1225
+ 0
1226
+ ],
1227
+ "sonarjs/no-one-iteration-loop": [
1228
+ 2
1229
+ ],
1230
+ "sonarjs/no-redundant-boolean": [
1231
+ 2
1232
+ ],
1233
+ "sonarjs/no-redundant-jump": [
1234
+ 0
1235
+ ],
1236
+ "sonarjs/no-same-line-conditional": [
1237
+ 2
1238
+ ],
1239
+ "sonarjs/no-small-switch": [
1240
+ 0
1241
+ ],
1242
+ "sonarjs/no-unused-collection": [
1243
+ 2
1244
+ ],
1245
+ "sonarjs/no-use-of-empty-return-value": [
1246
+ 2
1247
+ ],
1248
+ "sonarjs/no-useless-catch": [
1249
+ 0
1250
+ ],
1251
+ "sonarjs/non-existent-operator": [
1252
+ 2
1253
+ ],
1254
+ "sonarjs/prefer-immediate-return": [
1255
+ 0
1256
+ ],
1257
+ "sonarjs/prefer-object-literal": [
1258
+ 2
1259
+ ],
1260
+ "sonarjs/prefer-single-boolean-return": [
1261
+ 0
1262
+ ],
1263
+ "sonarjs/prefer-while": [
1264
+ 2
1265
+ ],
1170
1266
  "sort-imports": [
1171
1267
  0
1172
1268
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-silverwind",
3
- "version": "50.0.2",
3
+ "version": "51.0.2",
4
4
  "description": "Personal ESLint configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/eslint-config-silverwind",
@@ -14,7 +14,8 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "eslint-plugin-import": "^2.26.0",
17
- "eslint-plugin-unicorn": "^43.0.1"
17
+ "eslint-plugin-sonarjs": "0.14.0",
18
+ "eslint-plugin-unicorn": "^43.0.2"
18
19
  },
19
20
  "devDependencies": {
20
21
  "eslint": "8.20.0",