generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
47 lines (46 loc) · 991 Bytes
/
eslint.config.mjs
File metadata and controls
47 lines (46 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginJest from "eslint-plugin-jest";
export default [
pluginJs.configs.recommended,
{
ignores: [
"build/**",
"coverage/**",
"node_modules/**",
"**/node_modules/**",
"**/__pycache__/**",
".venv/**",
"**/.venv/**",
],
},
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs",
globals: {
...globals.node,
},
},
},
{
files: ["tests/**/*.js"],
...pluginJest.configs['flat/recommended'],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.jest,
},
},
rules: {
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "error",
"jest/valid-expect": "error",
},
},
];