-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.cjs
48 lines (48 loc) · 1.63 KB
/
.eslintrc.cjs
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
module.exports = {
extends: "@gadgetinc/eslint-config",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.test.json"],
},
ignorePatterns: [".eslintrc.cjs", "spec/fixtures/**/*"],
rules: {
"lodash/import-scope": "off",
// Disable all Jest-related ESLint rules
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "off",
"jest/no-conditional-expect": "off",
"jest/no-deprecated-functions": "off",
"jest/no-disabled-tests": "off",
"jest/no-done-callback": "off",
"jest/no-duplicate-hooks": "off",
"jest/no-export": "off",
"jest/no-focused-tests": "off",
"jest/no-hooks": "off",
"jest/no-identical-title": "off",
"jest/no-if": "off",
"jest/no-interpolation-in-snapshots": "off",
"jest/no-jasmine-globals": "off",
"jest/no-jest-import": "off",
"jest/no-large-snapshots": "off",
"jest/no-mocks-import": "off",
"jest/no-restricted-matchers": "off",
"jest/no-standalone-expect": "off",
"jest/no-test-prefixes": "off",
"jest/no-test-return-statement": "off",
"jest/prefer-called-with": "off",
"jest/prefer-expect-assertions": "off",
"jest/prefer-hooks-on-top": "off",
"jest/prefer-spy-on": "off",
"jest/prefer-strict-equal": "off",
"jest/prefer-to-be": "off",
"jest/prefer-to-contain": "off",
"jest/prefer-to-have-length": "off",
"jest/prefer-todo": "off",
"jest/require-to-throw-message": "off",
"jest/require-top-level-describe": "off",
"jest/valid-describe-callback": "off",
"jest/valid-expect": "off",
"jest/valid-expect-in-promise": "off",
"jest/valid-title": "off"
},
};