mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
BREAKING CHANGE: this changes the configuration format, also adds support for module, and commonjs types
27 lines
453 B
JavaScript
27 lines
453 B
JavaScript
const jest = require('eslint-plugin-jest')
|
|
|
|
/**
|
|
* eslint configuration for jest.
|
|
* @type { import('eslint').Linter.Config[] } config
|
|
*/
|
|
module.exports = [
|
|
{
|
|
files: ['**/*.{js,mjs,cjs}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...jest.globals
|
|
}
|
|
}
|
|
},
|
|
jest.configs['flat/recommended'],
|
|
jest.configs['flat/style'],
|
|
{
|
|
rules: {
|
|
...jest.rules['flat/recommended'].rules
|
|
},
|
|
plugins: {
|
|
jest
|
|
}
|
|
}
|
|
]
|