mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
* chore: update postinstall scripts * chore(lint): eslint automated fixes * feat!: drop standard, sonarjs to work with eslint9 - This config allows arrow functions. BREAKING CHANGES: - Switches to eslint-config-eslint from eslint-config-standard. - Also drops eslint-plugins-sonarjs because it doesn't work well with eslint9, and wants eslint8 and related plugins. - Switches from eslint-plugin-prettier to eslint-config-prettier.
29 lines
467 B
JavaScript
29 lines
467 B
JavaScript
'use strict'
|
|
|
|
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
|
|
}
|
|
}
|
|
]
|