@newsteam/eslint-config 0.0.130 → 0.0.131

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.
@@ -105,6 +105,7 @@ declare const _default: {
105
105
  "unicorn/prefer-type-error": string;
106
106
  "unicorn/prevent-abbreviations": (string | {
107
107
  checkProperties: boolean;
108
+ ignore: RegExp[];
108
109
  replacements: {
109
110
  args: {
110
111
  arguments: boolean;
@@ -597,9 +597,11 @@ module.exports = {
597
597
  /*
598
598
  * Prefer ternary expressions over simple if-else statements
599
599
  *
600
+ * This often makes very complicated ternaries and it turns out thats annoying
601
+ *
600
602
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-ternary.md
601
603
  */
602
- "unicorn/prefer-ternary": "error",
604
+ "unicorn/prefer-ternary": "off",
603
605
  /*
604
606
  * Prefer top-level await over top-level promises and async function calls
605
607
  *
@@ -630,6 +632,9 @@ module.exports = {
630
632
  * with third party code, and we don't want to eslint-ignore all of that.
631
633
  */
632
634
  checkProperties: false,
635
+ ignore: [
636
+ /^arg*/ui
637
+ ],
633
638
  replacements: {
634
639
  args: {
635
640
  // This is a reserved keyword in some cases - don't replace into this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "@newsteam/jasmine": "0.0.40",
50
50
  "@types/eslint": "8.4.5",
51
51
  "@types/modernizr": "^3.5.3",
52
- "@types/node": "18.6.3",
52
+ "@types/node": "18.6.4",
53
53
  "@types/react": "18.0.15",
54
54
  "@typescript-eslint/eslint-plugin": "5.32.0",
55
55
  "@typescript-eslint/parser": "5.32.0",