Standard style Flat Config for ESLint v9
Based on Standard via neostandard
npm i -D @sequencemedia/eslint-config-standard
In your eslint.config.*
either:
export { default } from '@sequencemedia/eslint-config-standard'
Or:
import { configs } from '@sequencemedia/eslint-config-standard'
export default [
configs.recommended
]
You can merge changes in the default configuration using the merge
utility:
import merge from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
export default (
merge({
files: [
'**/*.{mjs,cjs}'
],
ignores: [
'lib'
]
})
)
Which is equivalent to:
import { configs } from '@sequencemedia/eslint-config-standard'
export default [
{
...configs.recommended,
files: [
'**/*.{mjs,cjs}'
],
ignores: [
'lib'
]
}
]