Skip to content

Commit cf71c70

Browse files
committed
[eslint] enable and auto + manually fix spaced-comment
1 parent 2d251e6 commit cf71c70

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"no-param-reassign": 1,
3333
"object-curly-newline": 1,
3434
"object-property-newline": 1,
35-
"spaced-comment": 1,
3635
"no-underscore-dangle": 1,
3736
"no-mixed-operators": 1,
3837
"no-void": 1,

lib/rules/destructuring-assignment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @fileoverview Enforce consistent usage of destructuring assignment of props, state, and context.
3-
**/
3+
*/
44

55
'use strict';
66

lib/util/usedPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function usedPropTypesInstructions(context, components, utils)
6666
/**
6767
* Check if we are in a lifecycle method
6868
* @return {boolean} true if we are in a class constructor, false if not
69-
**/
69+
*/
7070
function inLifeCycleMethod() {
7171
let scope = context.getScope();
7272
while (scope) {

tests/lib/rules/destructuring-assignment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* @fileoverview Rule to forbid or enforce destructuring assignment consistency.
4-
**/
4+
*/
55

66
'use strict';
77

tests/lib/rules/no-direct-mutation-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,6 @@ ruleTester.run('no-direct-mutation-state', rule, {
279279
errors: [{
280280
message: 'Do not mutate state directly. Use setState().'
281281
}]
282-
}*/
282+
} */
283283
]
284284
});

tests/lib/rules/no-unused-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5021,6 +5021,6 @@ ruleTester.run('no-unused-prop-types', rule, {
50215021
errors: [{
50225022
message: '\'foo\' PropType is defined but prop is never used'
50235023
}]
5024-
}*/
5024+
} */
50255025
]
50265026
});

0 commit comments

Comments
 (0)