@bigbinary/neeto-commons-frontend 3.4.1 → 3.4.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.
@@ -41,13 +41,7 @@ module.exports = {
41
41
  },
42
42
  ],
43
43
  // auto-fixable: Components without children can be self-closed to avoid unnecessary extra closing tag.
44
- "react/self-closing-comp": [
45
- "error",
46
- {
47
- component: true,
48
- html: true,
49
- },
50
- ],
44
+ "react/self-closing-comp": ["error", { component: true, html: true }],
51
45
  // auto-fixable: Wrapping multiline JSX in parentheses can improve readability and/or convenience.
52
46
  "react/jsx-wrap-multilines": [
53
47
  "error",
@@ -88,5 +82,7 @@ module.exports = {
88
82
  propElementValues: "always",
89
83
  },
90
84
  ],
85
+ // not-auto-fixable: Disallow creating unstable components inside components.
86
+ "react/no-unstable-nested-components": ["error", { allowAsProps: true }],
91
87
  },
92
88
  };
@@ -41,13 +41,7 @@ module.exports = {
41
41
  },
42
42
  ],
43
43
  // auto-fixable: Components without children can be self-closed to avoid unnecessary extra closing tag.
44
- "react/self-closing-comp": [
45
- "error",
46
- {
47
- component: true,
48
- html: true,
49
- },
50
- ],
44
+ "react/self-closing-comp": ["error", { component: true, html: true }],
51
45
  // auto-fixable: Wrapping multiline JSX in parentheses can improve readability and/or convenience.
52
46
  "react/jsx-wrap-multilines": [
53
47
  "error",
@@ -88,5 +82,7 @@ module.exports = {
88
82
  propElementValues: "always",
89
83
  },
90
84
  ],
85
+ // not-auto-fixable: Disallow creating unstable components inside components.
86
+ "react/no-unstable-nested-components": ["error", { allowAsProps: true }],
91
87
  },
92
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",