I was wondering is there any downside or positive side when creating eslint or stylelint etc files to add the JS prefix to it.
I have noticed you can do it in multiple ways:
a stylelint property in package.json
a .stylelintrc file
a stylelint.config.js file exporting a JS object
.eslintrc
.eslintrc.js
Is there any speed benefit or is one better then the other or is it just personal preference? is one faster or not?
Adding an extension makes it easier for editors, like VS Code, to select the correct language for syntax highlighting, autocompletion etc.
.stylelintrcfile can contain JSON, YAML or JavaScript..eslintrcfile can contain JSON or YAML.This ambiguity isn't good, and the reason that extensionless
.eslintrcfiles are now deprecated in ESLint.The difference between
.stylelintrc.jsandstylelint.config.jsis purely preference, as is.stylelintrc.jsonand using astylelintproperty inpackage.json.