-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55e2990
commit 9a955b5
Showing
29 changed files
with
12,019 additions
and
9,639 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
"plugins": { | ||
"react": require("eslint-plugin-react"), | ||
"jsx-a11y": require("eslint-plugin-jsx-a11y"), | ||
"import": require("eslint-plugin-import") | ||
}, | ||
"rules": { | ||
"func-names": 0, | ||
"global-require": 0, | ||
"prefer-destructuring": 0, | ||
"strict": 0, | ||
// Include rules from airbnb configuration directly here | ||
// Make sure to copy the rules from the airbnb configuration | ||
}, | ||
"languageOptions": { | ||
"globals": { | ||
// Define global variables here for your files | ||
"mocha": true | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
const isReactReduxConnect = require('../isReactReduxConnect'); | ||
|
||
const report = function (context, node) { | ||
context.report({ | ||
message: 'Connect function should have at least 2 arguments.', | ||
node, | ||
}); | ||
}; | ||
const create = function (context) { | ||
const report = function (node) { | ||
context.report({ | ||
message: 'Connect function should have at least 2 arguments.', | ||
node, | ||
}); | ||
}; | ||
|
||
module.exports = function (context) { | ||
return { | ||
CallExpression(node) { | ||
if (isReactReduxConnect(node)) { | ||
if (node.arguments.length < 2) { | ||
report(context, node); | ||
report(node); | ||
} | ||
} | ||
}, | ||
}; | ||
}; | ||
|
||
module.exports = { | ||
create, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.