-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
48 lines (47 loc) · 1.09 KB
/
.eslintrc.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
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@inrupt/eslint-config-lib"],
rules: {
"import/prefer-default-export": "off",
},
overrides: [
{
// TODO: Extend to all files, this will soon be the default in eslint configs
files: "src/resource/*.ts",
rules: {
"@typescript-eslint/return-await": ["error", "always"],
},
},
{
files: ["examples/**/*", "e2e/**/*"],
rules: {
"import/no-unresolved": "warn",
},
},
{
files: ["**/*.test.ts"],
rules: {
"no-shadow": [
"warn",
{
allow: [
"describe",
"it",
"jest",
"expect",
"beforeEach",
"beforeAll",
"afterEach",
"afterAll",
],
},
],
// explicit any is currently required for jest module mocking:
"@typescript-eslint/no-explicit-any": "off",
},
},
],
parserOptions: {
project: "./tsconfig.eslint.json",
},
};