-
Notifications
You must be signed in to change notification settings - Fork 6
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
Inherit shower-core ESLint config #18
Comments
Maybe, we will move eslint config in new repository and will be use |
You could do that? :O |
Latest version here. We can also evaluate prettier: it allows 4 spaces and bracket spacing. |
Yes, I’m all for |
If we want to create |
I can create |
Resolution of offline conversation with @pepelsbey: let's hold off with extracting the config and give |
It's a great idea to choose |
I seems to me that the |
Not sure, but eslint is much more powerful. Prettier is designed only for formatting, but it does not replace a full-fledged Linter. |
Hey. I tried the eslint+prettier bundle that the kernel uses. Sometimes she does strange things: Such code: const semver = require('semver');
const pkg = require('../package.json');
if (!semver.satisfies(process.version, pkg.engines.node)) {
/* ... */
} will turn into such: const semver = require('semver');
if (!semver.satisfies(process.version, pkg.engines.node)) {
/* ... */
}
const pkg = require('../package.json'); In automatic mode, there is no guarantee that the code will not be damaged, and the only benefit from prettier — automatic formatting. Now I propose to return to the original version with a common eslint config based on the @shower/core config. |
In the opposite direction, I really want to keep eslint — it is a static analysis tool, it protects against many potential errors. Prettier won't be able to replace it. |
@nikolay-govorov |
@shvaikalesh, Yes, you're right — I don't understand why this is happening yet, but it's not Prettier's fault. |
It would be good to have common JS code style throughout the whole organization.
If you don’t mind, I’d suggest using
;
and 4 spaces, just like we do in .eslintrc.yml of shower-core, the main code base of the Shower project. It’s basicallyairbnb-base
with some extras. The same, but in a form if .editorconfig and .stylelintrc exists in both themes.We can always discuss details, but having a common code style is essential for a project like this.
The text was updated successfully, but these errors were encountered: