Is flat config ready to use? #16240
Replies: 5 comments 9 replies
-
As noted in the docs:
Watch this pull request for updates: |
Beta Was this translation helpful? Give feedback.
-
Following up on this, I cannot seem to get the new export default [
{
ignores: ["/node_modules/*", "/.next/*"],
languageOptions: {
browser: true,
ecmaVersion: "latest",
jest: true,
mocha: true,
mongo: true,
node: true,
sourceType: "module",
},
linterOptions: { reportUnusedDisableDirectives: true },
plugins: ["react"],
rules: {},
},
]; and in the
I'm using a standard Next.js project generated through
If I run
This does not change anything though. I get the same warning messages in the Output and How would I get the new For reference, here is my {
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "jest --watch"
},
"dependencies": {
"eslint-config-next": "13.4.19",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^14.0.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4"
}
}
|
Beta Was this translation helpful? Give feedback.
-
For the VSCode ESlint plugin to work with flat config, you'll need to enable {
"eslint.experimental.useFlatConfig": true
}
https://github.com/microsoft/vscode-eslint#vs-code-eslint-extension:
|
Beta Was this translation helpful? Give feedback.
-
Hi, just started a new project following the suggested |
Beta Was this translation helpful? Give feedback.
-
Yes for simple projects. |
Beta Was this translation helpful? Give feedback.
-
Hi there! I've created a eslint.config.js instead of eslintrc file, but running
npx eslint .
ends withWhat should I do to make it work?
Beta Was this translation helpful? Give feedback.
All reactions