* windows: fix editing preferences on bash
* linter: fix the linting error
* cleanCode : move the code to a function
* cleanCode: move the constants to the function
* clean: remove unnecessary eslint comment
* clean: use platform instead of defining it