-
Notifications
You must be signed in to change notification settings - Fork 385
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
Update ESLint configuration #1870
Conversation
"timeago.js": "3.0.2", | ||
"webpack": "4.29.5", | ||
"webpack-cli": "3.2.3" | ||
}, | ||
"main": "blocks/index.js", | ||
"scripts": { | ||
"build": "grunt build && grunt create-build-zip", | ||
"build": "npm-run-all build:*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to be stable? Could it not result in zip
being run before prepare
? Objects in JS do not have ordered keys, unless NPM explicitly sorts them by key when globbing like this. Do you have confirmation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far I have never had any problems with the order being mixed up by npm-run-all
or something.
Objects in JS do not have ordered keys
I thought this changed a bit with ES2015?
Do you have confirmation?
According to the author, it executes tasks in definition order in package.json
. mysticatea/npm-run-all#116 (comment)
I haven't looked at the code of NPM or the package though to see how order is determined.
This PR replaces #1766 since updating ESLint took a bit more effort.
In particular:
eslint
eslint-plugin-react
babel-eslint
so that ESLint is actually able to parse the JSX source fileseslint-plugin-react
doesn't throw a warningAs a bonus, I added the
lint
npm script so that one can just typenpm run lint