forked from svrjs/svrjs
30 lines
652 B
JavaScript
30 lines
652 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
import jest from "eslint-plugin-jest";
|
|
|
|
export default [
|
|
{
|
|
files: ["**/*.js"],
|
|
languageOptions: {
|
|
sourceType: "commonjs"
|
|
}
|
|
},
|
|
{
|
|
files: ["tests/**/*.test.js"],
|
|
...jest.configs['flat/recommended'],
|
|
rules: {
|
|
...jest.configs['flat/recommended'].rules,
|
|
'jest/prefer-expect-assertions': 'off',
|
|
}
|
|
},
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
pluginJs.configs.recommended,
|
|
eslintPluginPrettierRecommended,
|
|
];
|