mirror of
https://github.com/ivuorinen/base-configs-eslint.git
synced 2026-01-25 18:54:04 +00:00
* feat(ci): new release flow, linting * chore: upgrade yarn, regenerate yarn.lock * feat: upgrade packages, publish workflow, lint * chore(lint): prettier default config * chore: remove gitHead from package.json * chore: upgrade workflows * chore: clean packages
29 lines
477 B
JavaScript
29 lines
477 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,
|
|
},
|
|
},
|
|
];
|