forked from hsaraujo/lightning-flow-scanner-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
36 lines (35 loc) · 1.14 KB
/
Copy patheslint.config.mjs
File metadata and controls
36 lines (35 loc) · 1.14 KB
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
import deMorgan from "eslint-plugin-de-morgan";
import github from "eslint-plugin-github";
import pluginJest from "eslint-plugin-jest";
import perfectionist from "eslint-plugin-perfectionist";
import sonarjs from "eslint-plugin-sonarjs";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{ languageOptions: { globals: globals.browser } },
...tseslint.configs.recommended,
{
files: ["tests/*.test.ts"],
languageOptions: {
globals: pluginJest.environments.globals.globals,
},
plugins: { jest: pluginJest },
rules: {
"jest/no-alias-methods": "error",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
},
},
{
ignores: ["jest.config.ts", "example-flows/**"],
},
perfectionist.configs["recommended-alphabetical"],
perfectionist.configs["recommended-line-length"],
perfectionist.configs["recommended-natural"],
sonarjs.configs.recommended,
deMorgan.configs.recommended,
...github.getFlatConfigs().typescript,
];