1 | module.exports = {
|
2 | env: {
|
3 | node: true,
|
4 | browser: true,
|
5 | "shared-node-browser": true,
|
6 | "cypress/globals": true,
|
7 | },
|
8 | extends: [
|
9 | "./index.js",
|
10 | "plugin:react/recommended",
|
11 | "plugin:react-hooks/recommended",
|
12 | "plugin:testing-library/react",
|
13 | "plugin:cypress/recommended",
|
14 | "prettier/react",
|
15 | ],
|
16 | plugins: ["react", "testing-library", "cypress"],
|
17 | settings: {
|
18 | react: {
|
19 | version: "detect",
|
20 | },
|
21 | },
|
22 | overrides: [
|
23 | {
|
24 | files: ["tailwind.config.js"],
|
25 | parser: "@typescript-eslint/parser",
|
26 | },
|
27 | {
|
28 | files: ["**/cypress/**/*"],
|
29 | rules: {
|
30 | "jest/expect-expect": "off",
|
31 | "jest/valid-expect-in-promise": "off",
|
32 | "jest/valid-expect": "off",
|
33 | "jest/no-standalone-expect": "off",
|
34 | "testing-library/await-async-query": "off",
|
35 | },
|
36 | },
|
37 | {
|
38 | files: ["*.tsx"],
|
39 | parser: "@typescript-eslint/parser",
|
40 | parserOptions: {
|
41 | project: "tsconfig.json",
|
42 | },
|
43 | },
|
44 | {
|
45 | files: ["**/components/**/*.test.tsx", "**/components/**/*.test.jsx"],
|
46 | rules: {
|
47 |
|
48 | "jest/valid-expect": "off",
|
49 | "jest/expect-expect": "off",
|
50 | },
|
51 | },
|
52 | ],
|
53 | rules: {
|
54 | "react/prop-types": "off",
|
55 | "react/display-name": "off",
|
56 | "react-hooks/exhaustive-deps": "off",
|
57 | "import/no-internal-modules": [
|
58 | "error",
|
59 | {
|
60 |
|
61 | allow: require("./shared.js").whitelistedImports,
|
62 | },
|
63 | ],
|
64 | },
|
65 | }
|