@newsteam/eslint-config 0.0.102 → 0.0.105

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.
@@ -45,12 +45,14 @@ declare const _default: {
45
45
  "unicorn/no-thenable": string;
46
46
  "unicorn/no-this-assignment": string;
47
47
  "unicorn/no-unreadable-array-destructuring": string;
48
+ "unicorn/no-unreadable-iife": string;
48
49
  "unicorn/no-unsafe-regex": string;
49
50
  "unicorn/no-unused-properties": string;
50
51
  "unicorn/no-useless-fallback-in-spread": string;
51
52
  "unicorn/no-useless-length-check": string;
52
53
  "unicorn/no-useless-promise-resolve-reject": string;
53
54
  "unicorn/no-useless-spread": string;
55
+ "unicorn/no-useless-switch-case": string;
54
56
  "unicorn/no-useless-undefined": string;
55
57
  "unicorn/no-zero-fractions": string;
56
58
  "unicorn/number-literal-case": string;
@@ -75,7 +77,9 @@ declare const _default: {
75
77
  "unicorn/prefer-keyboard-event-key": string;
76
78
  "unicorn/prefer-math-trunc": string;
77
79
  "unicorn/prefer-modern-dom-apis": string;
80
+ "unicorn/prefer-modern-math-apis": string;
78
81
  "unicorn/prefer-module": string;
82
+ "unicorn/prefer-native-coercion-functions": string;
79
83
  "unicorn/prefer-negative-index": string;
80
84
  "unicorn/prefer-node-protocol": string;
81
85
  "unicorn/prefer-number-properties": string;
@@ -264,6 +264,12 @@ module.exports = {
264
264
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-array-destructuring.md
265
265
  */
266
266
  "unicorn/no-unreadable-array-destructuring": "error",
267
+ /*
268
+ * Disallow unreadable IIFEs
269
+ *
270
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-iife.md
271
+ */
272
+ "unicorn/no-unreadable-iife": "error",
267
273
  /*
268
274
  * Disallow unsafe regular expressions.
269
275
  *
@@ -302,6 +308,12 @@ module.exports = {
302
308
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-spread.md
303
309
  */
304
310
  "unicorn/no-useless-spread": "error",
311
+ /*
312
+ * Disallow useless case in switch statements
313
+ *
314
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-switch-case.md
315
+ */
316
+ "unicorn/no-useless-switch-case": "error",
305
317
  /*
306
318
  * Disallow useless undefined
307
319
  *
@@ -450,6 +462,12 @@ module.exports = {
450
462
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-modern-dom-apis.md
451
463
  */
452
464
  "unicorn/prefer-modern-dom-apis": "error",
465
+ /*
466
+ * Prefer modern Math APIs over legacy patterns
467
+ *
468
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-modern-math-apis.md
469
+ */
470
+ "unicorn/prefer-modern-math-apis": "error",
453
471
  /*
454
472
  * Prefer JavaScript modules (ESM) over CommonJS
455
473
  *
@@ -458,6 +476,12 @@ module.exports = {
458
476
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-module.md
459
477
  */
460
478
  "unicorn/prefer-module": "off",
479
+ /*
480
+ * Prefer using String, Number, BigInt, Boolean, and Symbol directly
481
+ *
482
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-native-coercion-functions.md
483
+ */
484
+ "unicorn/prefer-native-coercion-functions": "error",
461
485
  /*
462
486
  * Prefer negative index over .length - index for {String,Array,TypedArray}#slice() and Array#splice()
463
487
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.102",
3
+ "version": "0.0.105",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -45,17 +45,17 @@
45
45
  "dependencies": {
46
46
  "@types/modernizr": "3.5.3",
47
47
  "confusing-browser-globals": "1.0.11",
48
- "eslint-import-resolver-typescript": "2.5.0",
49
- "eslint-plugin-import-newlines": "^1.2.1"
48
+ "eslint-import-resolver-typescript": "2.7.1",
49
+ "eslint-plugin-import-newlines": "^1.2.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@newsteam/jasmine": "0.0.40",
53
53
  "@types/eslint": "8.4.1",
54
- "@types/node": "17.0.22",
55
- "@types/react": "17.0.41",
56
- "@typescript-eslint/eslint-plugin": "5.16.0",
57
- "@typescript-eslint/parser": "5.16.0",
58
- "eslint": "8.11.0",
54
+ "@types/node": "17.0.23",
55
+ "@types/react": "17.0.43",
56
+ "@typescript-eslint/eslint-plugin": "5.17.0",
57
+ "@typescript-eslint/parser": "5.17.0",
58
+ "eslint": "8.12.0",
59
59
  "eslint-find-rules": "4.1.0",
60
60
  "eslint-plugin-array-func": "3.1.7",
61
61
  "eslint-plugin-css-modules": "2.11.0",
@@ -72,21 +72,21 @@
72
72
  "eslint-plugin-prefer-object-spread": "1.2.1",
73
73
  "eslint-plugin-promise": "6.0.0",
74
74
  "eslint-plugin-react": "7.29.4",
75
- "eslint-plugin-react-hooks": "4.3.0",
75
+ "eslint-plugin-react-hooks": "4.4.0",
76
76
  "eslint-plugin-react-native": "4.0.0",
77
77
  "eslint-plugin-react-perf": "3.3.1",
78
78
  "eslint-plugin-security": "1.4.0",
79
79
  "eslint-plugin-sort-keys-fix": "1.1.2",
80
- "eslint-plugin-unicorn": "41.0.1",
80
+ "eslint-plugin-unicorn": "42.0.0",
81
81
  "eslint-plugin-webassembly": "1.11.1",
82
82
  "json-schema": "0.4.0",
83
- "react": "17.0.2",
84
- "typescript": "4.6.2"
83
+ "react": "18.0.0",
84
+ "typescript": "4.6.3"
85
85
  },
86
86
  "peerDependencies": {
87
- "@typescript-eslint/eslint-plugin": "5.16.0",
88
- "@typescript-eslint/parser": "5.16.0",
89
- "eslint": "8.11.0",
87
+ "@typescript-eslint/eslint-plugin": "5.17.0",
88
+ "@typescript-eslint/parser": "5.17.0",
89
+ "eslint": "8.12.0",
90
90
  "eslint-plugin-array-func": "3.1.7",
91
91
  "eslint-plugin-css-modules": "2.11.0",
92
92
  "eslint-plugin-es": "4.1.0",
@@ -102,15 +102,15 @@
102
102
  "eslint-plugin-prefer-object-spread": "1.2.1",
103
103
  "eslint-plugin-promise": "6.0.0",
104
104
  "eslint-plugin-react": "7.29.4",
105
- "eslint-plugin-react-hooks": "4.3.0",
105
+ "eslint-plugin-react-hooks": "4.4.0",
106
106
  "eslint-plugin-react-native": "4.0.0",
107
107
  "eslint-plugin-react-perf": "3.3.1",
108
108
  "eslint-plugin-security": "1.4.0",
109
109
  "eslint-plugin-sort-keys-fix": "1.1.2",
110
- "eslint-plugin-unicorn": "41.0.1",
110
+ "eslint-plugin-unicorn": "42.0.0",
111
111
  "eslint-plugin-webassembly": "1.11.1",
112
112
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
113
113
  "json-schema": "0.4.0",
114
- "typescript": "4.6.2"
114
+ "typescript": "4.6.3"
115
115
  }
116
116
  }