diff --git a/samples/react-graph-calendar/.eslintrc.js b/samples/react-graph-calendar/.eslintrc.js index 473df80cd..41f284e0a 100644 --- a/samples/react-graph-calendar/.eslintrc.js +++ b/samples/react-graph-calendar/.eslintrc.js @@ -79,13 +79,13 @@ module.exports = { // This rule should be suppressed only in very special cases such as JSON.stringify() // where the type really can be anything. Even if the type is flexible, another type // may be more appropriate such as "unknown", "{}", or "Record". - '@typescript-eslint/no-explicit-any': 1, + '@typescript-eslint/no-explicit-any': 0, // RATIONALE: The #1 rule of promises is that every promise chain must be terminated by a catch() // handler. Thus wherever a Promise arises, the code must either append a catch handler, // or else return the object to a caller (who assumes this responsibility). Unterminated // promise chains are a serious issue. Besides causing errors to be silently ignored, // they can also cause a NodeJS process to terminate unexpectedly. - '@typescript-eslint/no-floating-promises': 2, + '@typescript-eslint/no-floating-promises': 0, // RATIONALE: Catches a common coding mistake. '@typescript-eslint/no-for-in-array': 2, // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json diff --git a/samples/react-graph-calendar/.nvmrc b/samples/react-graph-calendar/.nvmrc new file mode 100644 index 000000000..b6fb44b88 --- /dev/null +++ b/samples/react-graph-calendar/.nvmrc @@ -0,0 +1 @@ +v18.17.1 \ No newline at end of file diff --git a/samples/react-graph-calendar/src/webparts/graphCalendar/GraphCalendarWebPart.ts b/samples/react-graph-calendar/src/webparts/graphCalendar/GraphCalendarWebPart.ts index fccd1d485..25388242b 100644 --- a/samples/react-graph-calendar/src/webparts/graphCalendar/GraphCalendarWebPart.ts +++ b/samples/react-graph-calendar/src/webparts/graphCalendar/GraphCalendarWebPart.ts @@ -117,7 +117,7 @@ export default class GraphCalendarWebPart extends BaseClientSideWebPart