You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
26
-
'@typescript-eslint/ban-types': [
27
-
1,
28
-
{
29
-
'extendDefaults': false,
30
-
'types': {
31
-
'String': {
32
-
'message': 'Use \'string\' instead',
33
-
'fixWith': 'string'
34
-
},
35
-
'Boolean': {
36
-
'message': 'Use \'boolean\' instead',
37
-
'fixWith': 'boolean'
38
-
},
39
-
'Number': {
40
-
'message': 'Use \'number\' instead',
41
-
'fixWith': 'number'
42
-
},
43
-
'Object': {
44
-
'message': 'Use \'object\' instead, or else define a proper TypeScript type:'
45
-
},
46
-
'Symbol': {
47
-
'message': 'Use \'symbol\' instead',
48
-
'fixWith': 'symbol'
49
-
},
50
-
'Function': {
51
-
'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
52
-
}
53
-
}
54
-
}
55
-
],
56
23
// RATIONALE: Code is more readable when the type of every variable is immediately obvious.
57
24
// Even if the compiler may be able to infer a type, this inference will be unavailable
58
25
// to a person who is reviewing a GitHub diff. This rule makes writing code harder,
@@ -85,12 +52,7 @@ module.exports = {
85
52
// or else return the object to a caller (who assumes this responsibility). Unterminated
86
53
// promise chains are a serious issue. Besides causing errors to be silently ignored,
87
54
// they can also cause a NodeJS process to terminate unexpectedly.
Copy file name to clipboardexpand all lines: samples/react-star-ratings/README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ This web part demonstrates *Star Ratings* capabilities to SharePoint News. The "
13
13
| Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.|
14
14
|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |

19
19

20
20
-Incompatible-red.svg"SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
@@ -57,7 +57,8 @@ This web part demonstrates *Star Ratings* capabilities to SharePoint News. The "
57
57
58
58
Version|Date|Comments
59
59
-------|----|--------
60
-
1.4|November 9, 2023|Upgraded* to SPFx v1.18
60
+
1.5|January 23, 2025|Upgraded to SPFx v1.20 and changed to React Fluent UI v9.
61
+
1.4|November 9, 2023|Upgraded to SPFx v1.18
61
62
1.3|April 27, 2022|Changed to show averages with stars instead of user ratings.
62
63
1.2|March 28, 2022|Upgraded to SPFx v1.14
63
64
1.1|January 12, 2022|Updated to retrieve values from API
0 commit comments