Skip to content

Commit

Permalink
Merge pull request #14 from Automattic/add/no-async-in-foreach
Browse files Browse the repository at this point in the history
Add no-async-foreach rule
  • Loading branch information
mjangda committed Nov 21, 2018
2 parents 1018ca0 + 242e4ae commit 837a9b1
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To add `eslint-config-wpvip` to you project, first install it to `package.json`
And install the required dependencies:

```
npm i --save-dev babel-eslint@10 eslint@4 eslint-plugin-flowtype@3 eslint-plugin-import@2 eslint-plugin-jsx-a11y@6 eslint-plugin-react@7 eslint-plugin-wpcalypso@4 eslint-plugin-json@1
npm i --save-dev babel-eslint@10 eslint@4 eslint-plugin-flowtype@3 eslint-plugin-import@2 eslint-plugin-jsx-a11y@6 eslint-plugin-react@7 eslint-plugin-wpcalypso@4 eslint-plugin-json@1 eslint-plugin-no-async-foreach
```

Then in your `package.json`, add:
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'wpcalypso',
'flowtype',
'json',
'no-async-foreach',
],
globals: {
describe: true,
Expand Down Expand Up @@ -64,6 +65,9 @@ module.exports = {
radix: [
'error',
],
'no-async-foreach/no-async-foreach': [
'error',
],
},
settings: {
react: {
Expand Down
60 changes: 34 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"eslint-plugin-flowtype": "^3.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-no-async-foreach": "^0.1.1",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-wpcalypso": "^4.0.1",
"eslint-plugin-json": "^1.2.1"
Expand All @@ -42,6 +43,7 @@
"eslint-plugin-import": "2.14.0",
"eslint-plugin-json": "1.2.1",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-no-async-foreach": "^0.1.1",
"eslint-plugin-react": "7.11.1",
"eslint-plugin-wpcalypso": "4.0.2"
}
Expand Down

0 comments on commit 837a9b1

Please sign in to comment.