Refer to the CHANGELOG for all info.
---------
Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com>
Co-authored-by: Josh Munic <jpmunic@gmail.com>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
* Explicitly match file extensions in all globs, thus preventing eslint from trying to run on unsupported file types.
* Include the defaults: `.js`, `.mjs`, and `.cjs`
* Include`.jsx`
* Include `.mustache`, since there are a couple JS template files with that suffix.
* Fix some incorrect globs (`**.js` -> `**/*.js`) which were the source of some unexpected lint failures.
...because it turns out we have a long tail of JS files that can, and do, rely on universal builtins like `console`.
This reverts part of commit efb88bd808fd593413dd6cb6fdc5d9d27b866ba4.
* Remove the site-specific and `packages/new-design`-specific `.eslintrc` files
* Use `eslint-config-next` where appropriate (this fixes linting for sites/shared, bringing it in line with the other sites)
* Be more strict about which envs/globals are allowed in any given JavaScript file; assume none by default.