@open-turo/eslint-config-react 15.0.0-pr-320.4.1.1 → 15.0.0-pr-320.5.1.1

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.
package/index.cjs CHANGED
@@ -46,6 +46,20 @@ module.exports = function config(options = {}) {
46
46
  "sonarjs/no-unstable-nested-components": "off",
47
47
  // Allow file names to match a component name
48
48
  "unicorn/filename-case": "off",
49
+ /**
50
+ * Prescriptive rule about only using `undefined`, never `null`, to avoid `null`-specific errors.
51
+ * Not compatible with React because `null` is a valid JSX return.
52
+ */
53
+ "unicorn/no-null": 0,
54
+ // Allow common React abbreviations
55
+ "unicorn/prevent-abbreviations": [
56
+ "error",
57
+ {
58
+ replacements: {
59
+ props: false,
60
+ },
61
+ },
62
+ ],
49
63
  },
50
64
  },
51
65
  {
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "repository": "https://github.com/open-turo/eslint-config-react",
52
- "version": "15.0.0-pr-320.4.1.1"
52
+ "version": "15.0.0-pr-320.5.1.1"
53
53
  }
package/recommended.cjs CHANGED
@@ -86,6 +86,20 @@ module.exports = {
86
86
  "sonarjs/no-unstable-nested-components": "off",
87
87
  // Allow file names to match a component name
88
88
  "unicorn/filename-case": "off",
89
+ /**
90
+ * Prescriptive rule about only using `undefined`, never `null`, to avoid `null`-specific errors.
91
+ * Not compatible with React because `null` is a valid JSX return.
92
+ */
93
+ "unicorn/no-null": 0,
94
+ // Allow common React abbreviations
95
+ "unicorn/prevent-abbreviations": [
96
+ "error",
97
+ {
98
+ replacements: {
99
+ props: false,
100
+ },
101
+ },
102
+ ],
89
103
  },
90
104
  settings: {
91
105
  react: {