From Configuration file format in the docs.

  1. .eslintrc.js
  2. .eslintrc.yaml or .eslintrc.yml
  3. .eslintrc.json
  4. .eslintrc - DEPRECATED, as it can be JSON or YAML
  5. package.json - eslintConfig field.