rsnext/test/integration/eslint
Jake Jarvis f308826603
Add .eslintrc.cjs to list of supported next lint config files (#35440)
The logic for finding a user's custom `.eslintrc` config file is missing a check for `.eslintrc.cjs`, which is listed as one of the valid filenames in ESLint's docs:

https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats

...so this PR makes `next lint`'s list of possible config files consistent with ESLint's.

I stumbled upon this when trying to rename my own config file, since I've pretty much moved completely to ESM by now... but [ESLint doesn't support modules yet](https://github.com/eslint/eslint/issues/14137#issuecomment-785421664), so renaming the file to `.cjs` just keeps things cleaner (and VS Code happier). This is my first PR here so even though I've only changed a couple of lines, please let me know if I'm overlooking something! 😊

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-04-07 15:03:40 +00:00
..
config-core-web-vitals Fix eslint config next/core-web-vitals (#27567) 2021-07-28 19:07:54 +00:00
config-in-package-json fix: don't create .eslintrc if package.json contains eslintConfig (#26025) 2021-06-14 15:57:18 -05:00
custom-config [ESLint] Adds --quiet flag, TypeScript resolver and bug fixes (#26280) 2021-06-18 15:17:53 +02:00
custom-directories ESLint Updates (#25895) 2021-06-08 17:46:00 -05:00
empty-directory [ESLint] Remove error when file patterns are unmatched + ESLint setup changes (#27119) 2021-07-16 20:19:08 +02:00
eslint-cache enables eslint caching by default (#28349) 2021-08-23 12:56:21 -05:00
eslint-cache-custom-dir Enable import assertion syntax parsing (#33750) 2022-03-06 20:41:22 +00:00
eslint-ignore [ESLint] Remove error when file patterns are unmatched + ESLint setup changes (#27119) 2021-07-16 20:19:08 +02:00
file-linting [ESLint] Support single-file linting in next lint (necessary for lint-staged) (#28042) 2021-09-06 13:05:40 +02:00
first-time-setup Enable import assertion syntax parsing (#33750) 2022-03-06 20:41:22 +00:00
ignore-during-builds ESLint Updates (#25895) 2021-06-08 17:46:00 -05:00
invalid-eslint-version Fix eslint version check for older versions (#26212) 2021-06-16 14:16:01 -05:00
max-warnings [ESLint] Adds --max-warnings flag to next lint (#26697) 2021-06-29 10:12:23 +00:00
no-config/pages [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
no-eslint-plugin [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
plugin-core-web-vitals-config [eslint] move core-web-vitals config to eslint-plugin-next (#27363) 2021-07-23 17:58:53 +00:00
plugin-recommended-config [eslint] move core-web-vitals config to eslint-plugin-next (#27363) 2021-07-23 17:58:53 +00:00
test Add .eslintrc.cjs to list of supported next lint config files (#35440) 2022-04-07 15:03:40 +00:00