@bigbinary/neeto-commons-frontend 2.1.17 → 2.1.19
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/README.md +1 -0
- package/configs/eslint/index.js +5 -9
- package/cypress-utils.cjs.js +1 -1
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.js +1 -1
- package/cypress-utils.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,3 +212,4 @@ them to read more:
|
|
|
212
212
|
- [Development instructions](./docs/general/development-instructions.md)
|
|
213
213
|
- [Building and releasing](./docs/general/building-and-releasing.md)
|
|
214
214
|
- [Migrating from v1 to v2](./docs/general/migrating-from-1-to-2.md)
|
|
215
|
+
- [API documentation logistics](./docs/general/api-documentation-logistics.md)
|
package/configs/eslint/index.js
CHANGED
|
@@ -26,9 +26,7 @@ module.exports = {
|
|
|
26
26
|
"prettier",
|
|
27
27
|
],
|
|
28
28
|
settings: {
|
|
29
|
-
react: {
|
|
30
|
-
version: "detect",
|
|
31
|
-
},
|
|
29
|
+
react: { version: "detect" },
|
|
32
30
|
// We need this for the import/extensions rule to work: https://github.com/import-js/eslint-plugin-import#importextensions
|
|
33
31
|
"import/resolver": {
|
|
34
32
|
node: {
|
|
@@ -37,9 +35,7 @@ module.exports = {
|
|
|
37
35
|
},
|
|
38
36
|
},
|
|
39
37
|
parserOptions: {
|
|
40
|
-
ecmaFeatures: {
|
|
41
|
-
jsx: true,
|
|
42
|
-
},
|
|
38
|
+
ecmaFeatures: { jsx: true },
|
|
43
39
|
ecmaVersion: 2018,
|
|
44
40
|
sourceType: "module",
|
|
45
41
|
},
|
|
@@ -103,9 +99,7 @@ module.exports = {
|
|
|
103
99
|
// not-auto-fixable: Prevent un-sanitized dangerouslySetInnerHTML.
|
|
104
100
|
"jam3/no-sanitizer-with-danger": [
|
|
105
101
|
2,
|
|
106
|
-
{
|
|
107
|
-
wrapperName: ["dompurify", "sanitizer", "sanitize"],
|
|
108
|
-
},
|
|
102
|
+
{ wrapperName: ["dompurify", "sanitizer", "sanitize"] },
|
|
109
103
|
],
|
|
110
104
|
// auto-fixable: Requires trailing commas when the last element or property is in a different line than the closing ] or }
|
|
111
105
|
"comma-dangle": [
|
|
@@ -152,5 +146,7 @@ module.exports = {
|
|
|
152
146
|
"no-var": "error",
|
|
153
147
|
// auto-fixable: This rule conflicts with prettier rules. Thus we've NOT kept this rule in react file. This rule ensures we don't add blank lines in JSX.
|
|
154
148
|
"react/jsx-newline": ["error", { prevent: true }],
|
|
149
|
+
// not-auto-fixable: Disallow async functions which have no await expression
|
|
150
|
+
"require-await": "error",
|
|
155
151
|
},
|
|
156
152
|
};
|
package/cypress-utils.cjs.js
CHANGED
|
@@ -201,7 +201,7 @@ var commonSelectors = {
|
|
|
201
201
|
body: "body",
|
|
202
202
|
toastIcon: ".Toastify__toast-icon",
|
|
203
203
|
paneModalCrossIcon: ".neeto-ui-pane__close",
|
|
204
|
-
inputField: dataCy("input-field"),
|
|
204
|
+
inputField: dataCy("nui-input-field"),
|
|
205
205
|
alertConfirmationText: dataCy("alert-confirmation-text"),
|
|
206
206
|
alertCancelButton: dataCy("alert-cancel-button"),
|
|
207
207
|
alertModalCrossIcon: ".neeto-ui-modal__close",
|