We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lately we've had more success when using prettier to have a single config at the top then applies consistent formatting in various subfolders.
Also we've been switchiing to *.config.js instead of various JSON formats.
The text was updated successfully, but these errors were encountered:
One note for the future, I went to update to eslint 9 and the new flat config, but it seems that Next isn't compatible yet: vercel/next.js#64409
When it is, we'll want something like this:
// eslint.config.js const next = require('@next/eslint-plugin-next'); const prettier = require('eslint-config-prettier'); const react = require('eslint-plugin-react'); const reactRecommended = require('eslint-plugin-react/configs/recommended'); const globals = require('globals'); module.exports = [ // { // files: ['src/**/*.{js,jsx,ts,tsx}'], // ...reactRecommended, // }, // { // files: ['src/**/*.{js,jsx,ts,tsx}'], // languageOptions: { // globals: { // ...globals.serviceworker, // ...globals.browser, // }, // }, // }, { files: ['src/**/*.{js,jsx,ts,tsx}'], ...next.configs.recommended, }, { files: ['src/**/*.{js,jsx,ts,tsx}'], ...prettier, }, ];
Sorry, something went wrong.
ccorda
Successfully merging a pull request may close this issue.
Lately we've had more success when using prettier to have a single config at the top then applies consistent formatting in various subfolders.
Also we've been switchiing to *.config.js instead of various JSON formats.
The text was updated successfully, but these errors were encountered: