-
Notifications
You must be signed in to change notification settings - Fork 27
Description
At
create-adapter/src/lib/core/questions.ts
Line 632 in 4e14103
{ message: "ESLint", hint: "(recommended)" }, |
If a dev chooses to use eslint, it should either use the centralized eslint config automatically or ask like Dou you want to configure eslint by yourself or use the official ioBroker eslint config?
. In the end the ioBroker config can also be overriden and should be a good base. For React and ESM there are some extra options which can also be found in the README.md. Also a Migration guide is available that can be used here to see the changes needed in the templates. Enhance tests to have both variants depending on the new choice.
The new project and how it is added can be found at https://github.com/ioBroker/ioBroker.eslint-config
The above mentioned additional question should also contain "receommended" and should auto select the use of the new package
Additional information when the eslint-config package is used:
All dependencies to eslint(-) and prettier(-) should be removed.
Config fiels shoudl be adapted
The extension
"esbenp.prettier-vscode"
should be added to vscode extensions for typescript adapters (or ev. for all repositories).
Otherwise issues reported by standard @iobroker/eslint-config are not visible / reported directly inside vscode editor