-
Notifications
You must be signed in to change notification settings - Fork 76
/
index.js
56 lines (56 loc) · 1.71 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
extends: [
"eslint:recommended",
"turbo",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react", "react-hooks", "prettier"],
ignorePatterns: ["*.d.ts"],
rules: {
"no-case-declarations": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-empty-interface": "off",
"react/no-unescaped-entities": "off",
"import/no-named-as-default-member": "off",
"import/no-extraneous-dependencies": "error",
"prettier/prettier": "error",
"@typescript-eslint/no-require-imports": "error",
"import/no-unresolved": "off",
"prettier/prettier": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": "error",
"import/default": "off",
eqeqeq: ["error", "always"],
"no-restricted-syntax": [
"error",
{
selector:
"CallExpression[callee.name='describe'] MemberExpression[object.type='ThisExpression'][property.name='timeout']",
message: "Manual timeouts in Mocha tests are not allowed."
}
],
"no-restricted-globals": ["error", "origin"]
},
settings: {
"import/resolver": {
typescript: true,
node: true
}
}
};