-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
41 lines (40 loc) · 1.16 KB
/
index.js
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
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import tsParser from "@typescript-eslint/parser";
import vueParser from "vue-eslint-parser";
import pluginCypress from "eslint-plugin-cypress/flat";
import pluginChaiFriendly from "eslint-plugin-chai-friendly";
export default [
pluginCypress.configs.recommended,
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
plugins: { "chai-friendly": pluginChaiFriendly },
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tsParser,
},
globals: {
...globals.node,
...globals.browser,
},
},
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-unused-expressions": "off", // disable original rule
"chai-friendly/no-unused-expressions": "error",
},
},
];