As you may know, the ESLint officially encourages us to give an adequate file extension to
ESLint supports configuration files in several formats:
.eslintrc.jsand export an object containing your configuration.
- YAML - use
.eslintrc.ymlto define the configuration structure.
- JSON - use
- package.json - create an
eslintConfigproperty in your
package.jsonfile and define your configuration there.
- Deprecated - use
.eslintrc, which can be either JSON or YAML.
This deprecation started at https://github.com/eslint/eslint/pull/4406. Yes, almost 2.5 years ago.
.eslintrc as a configuration file for ESLint even in some big projects.
In other words, there are plenty of chances to contribute toward OSS. I started sending a patch for that to some projects.
Do you feel it too nitpicky? I initially felt so when sending a pull request, but the following words from a Gatsby.js maintainer encourage me to make this world better. 🙃
A 1000 nitpicky fixes add up to an amazing project so thanks :-)