-
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
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
feat!: Switch to flat config format #277
Conversation
No top level dependency changes detected. Learn more about Socket for GitHub ↗︎ |
No problem. If you run into any issues, please reach out. |
eslint.config.js
Outdated
promise, | ||
import: importPlugin | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nzakas why are the plugins in an object of their own, please?
eslint.config.js
Outdated
const promise = require('eslint-plugin-promise') | ||
const globals = require('globals') | ||
|
||
module.exports = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it normal that a flat-config shareable config exports an array? Is it desirable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't working yet. @nzakas feel free to amend this. |
40164f2
to
e86b58c
Compare
BREAKING CHANGE: this package now exports a flat config format See readme for example usage. See here for more information: https://eslint.org/docs/latest/use/configure/configuration-files-new Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
As we are switching to a new config system in ESLint, we are also going around and helping popular packages update to the new format. This PR switches
eslint-config-standard
over to the new flat config format.This is a breaking change. If you merge this, people will not be able to use this package in the
extends
field of eslintrc config files. They'll only be able to use it with flat config. I'm not sure how frequently the config changes, but something to consider before merging.