Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: fix linting errors (no-trailing-spaces). #1500

Merged
merged 1 commit into from
Oct 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/rules/no-unused-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ module.exports = {

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

/**
* Marks all props found inside IntersectionTypeAnnotation as declared.
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
*
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
*
* Modifies the declaredPropTypes object
* @param {ASTNode} propTypes
* @param {Object} declaredPropTypes
* @param {ASTNode} propTypes
* @param {Object} declaredPropTypes
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
*/
function declarePropTypesForIntersectionTypeAnnotation(propTypes, declaredPropTypes) {
Expand Down
14 changes: 7 additions & 7 deletions lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ module.exports = {

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

/**
* Marks all props found inside IntersectionTypeAnnotation as declared.
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
*
* Since InterSectionTypeAnnotations can be nested, this handles recursively.
*
* Modifies the declaredPropTypes object
* @param {ASTNode} propTypes
* @param {Object} declaredPropTypes
* @param {ASTNode} propTypes
* @param {Object} declaredPropTypes
* @returns {Boolean} True if propTypes should be ignored (e.g. when a type can't be resolved, when it is imported)
*/
function declarePropTypesForIntersectionTypeAnnotation(propTypes, declaredPropTypes) {
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/rules/prefer-stateless-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ruleTester.run('prefer-stateless-function', rule, {
}
`
}, {
// Use refs
// Use refs
code: `
class Foo extends React.Component {
doStuff() {
Expand All @@ -122,7 +122,7 @@ ruleTester.run('prefer-stateless-function', rule, {
}
`
}, {
// Has an empty (no super) constructor
// Has an empty (no super) constructor
code: `
class Foo extends React.Component {
constructor() {}
Expand All @@ -132,7 +132,7 @@ ruleTester.run('prefer-stateless-function', rule, {
}
`
}, {
// Has a constructor
// Has a constructor
code: `
class Foo extends React.Component {
constructor() {
Expand All @@ -144,7 +144,7 @@ ruleTester.run('prefer-stateless-function', rule, {
}
`
}, {
// Has a constructor (2)
// Has a constructor (2)
code: `
class Foo extends React.Component {
constructor() {
Expand All @@ -156,7 +156,7 @@ ruleTester.run('prefer-stateless-function', rule, {
}
`
}, {
// Use this.bar
// Use this.bar
code: `
class Foo extends React.Component {
render() {
Expand Down