Skip to content

Commit 9384e17

Browse files
author
薛定谔的猫
committed
Fix: linting error (no-trailing-spaces).
1 parent e9e33cf commit 9384e17

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,10 @@ module.exports = {
714714

715715
/**
716716
* Marks all props found inside ObjectTypeAnnotaiton as declared.
717-
*
717+
*
718718
* Modifies the declaredProperties object
719-
* @param {ASTNode} propTypes
720-
* @param {Object} declaredPropTypes
719+
* @param {ASTNode} propTypes
720+
* @param {Object} declaredPropTypes
721721
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
722722
*/
723723
function declarePropTypesForObjectTypeAnnotation(propTypes, declaredPropTypes) {
@@ -741,11 +741,11 @@ module.exports = {
741741

742742
/**
743743
* Marks all props found inside IntersectionTypeAnnotation as declared.
744-
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
745-
*
744+
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
745+
*
746746
* Modifies the declaredPropTypes object
747-
* @param {ASTNode} propTypes
748-
* @param {Object} declaredPropTypes
747+
* @param {ASTNode} propTypes
748+
* @param {Object} declaredPropTypes
749749
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
750750
*/
751751
function declarePropTypesForIntersectionTypeAnnotation(propTypes, declaredPropTypes) {

lib/rules/prop-types.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,10 @@ module.exports = {
714714

715715
/**
716716
* Marks all props found inside ObjectTypeAnnotaiton as declared.
717-
*
717+
*
718718
* Modifies the declaredProperties object
719-
* @param {ASTNode} propTypes
720-
* @param {Object} declaredPropTypes
719+
* @param {ASTNode} propTypes
720+
* @param {Object} declaredPropTypes
721721
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
722722
*/
723723
function declarePropTypesForObjectTypeAnnotation(propTypes, declaredPropTypes) {
@@ -737,11 +737,11 @@ module.exports = {
737737

738738
/**
739739
* Marks all props found inside IntersectionTypeAnnotation as declared.
740-
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
741-
*
740+
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
741+
*
742742
* Modifies the declaredPropTypes object
743-
* @param {ASTNode} propTypes
744-
* @param {Object} declaredPropTypes
743+
* @param {ASTNode} propTypes
744+
* @param {Object} declaredPropTypes
745745
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
746746
*/
747747
function declarePropTypesForIntersectionTypeAnnotation(propTypes, declaredPropTypes) {

tests/lib/rules/prefer-stateless-function.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ruleTester.run('prefer-stateless-function', rule, {
100100
}
101101
`
102102
}, {
103-
// Use refs
103+
// Use refs
104104
code: `
105105
class Foo extends React.Component {
106106
doStuff() {
@@ -122,7 +122,7 @@ ruleTester.run('prefer-stateless-function', rule, {
122122
}
123123
`
124124
}, {
125-
// Has an empty (no super) constructor
125+
// Has an empty (no super) constructor
126126
code: `
127127
class Foo extends React.Component {
128128
constructor() {}
@@ -132,7 +132,7 @@ ruleTester.run('prefer-stateless-function', rule, {
132132
}
133133
`
134134
}, {
135-
// Has a constructor
135+
// Has a constructor
136136
code: `
137137
class Foo extends React.Component {
138138
constructor() {
@@ -144,7 +144,7 @@ ruleTester.run('prefer-stateless-function', rule, {
144144
}
145145
`
146146
}, {
147-
// Has a constructor (2)
147+
// Has a constructor (2)
148148
code: `
149149
class Foo extends React.Component {
150150
constructor() {
@@ -156,7 +156,7 @@ ruleTester.run('prefer-stateless-function', rule, {
156156
}
157157
`
158158
}, {
159-
// Use this.bar
159+
// Use this.bar
160160
code: `
161161
class Foo extends React.Component {
162162
render() {

0 commit comments

Comments
 (0)