-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.mjs
35 lines (34 loc) · 1.02 KB
/
eslint.config.mjs
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
import oharagroup from "eslint-config-oharagroup";
import tseslint from "typescript-eslint";
export default tseslint.config(
...oharagroup.ts,
{
name: "loot/base",
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ["*.?(m|c)js", "src/index.test.js"],
maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING: 10,
},
},
},
rules: {
// Disabled for camelcase in Typescript interfaces
camelcase: "off",
// Disabled due to too many any types in 3rd party dependencies
"@typescript-eslint/no-unsafe-call": "off",
// Disabled due to too many any types in 3rd party dependencies
"@typescript-eslint/no-unsafe-member-access": "off",
},
},
{
name: "loot/tests",
files: ["**/*.test.ts", "**/mocks/**/*"],
rules: {
// Disable to allow Chai-as-promised assertions
"@typescript-eslint/no-floating-promises": "off",
// Disable to allow Chai assertions (e.g. `expect(..).to.have.been.called`)
"@typescript-eslint/no-unused-expressions": "off",
},
},
);