Shared ESlint config
-
Hey!
Should we create a
eslint-config-nodebb
that will encapsulate the existing ESLint config from core (public and lib)?So we will use this like
{ extends: "eslint-config-nodebb/server" }
or
{ extends: "eslint-config-nodebb/client" }
This will help to unify the code style among plugins and core.
Documentation - https://eslint.org/docs/developer-guide/shareable-configs
P.S. Need to discuss the naming of the packages
-
@baris, so, what are the next steps?
- We need to create https://github.com/nodebb/eslint-config-nodebb repository
- Discuss the naming for server/client side configs (client/server, or lib/public, or smth else)
- Need to copy the existing configs and create a shareable according to docs
- Publish it at npm
Copyright © 2024 NodeBB | Contributors