-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (35 loc) · 1.02 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
/* Copyright (c) 2021-2023 Nordcloud Oy or its affiliates. All Rights Reserved. */
require("./patch/modern-module-resolution");
/** @type {import("@types/eslint").Linter.Config} */
module.exports = {
ignorePatterns: ["**/*.js"],
overrides: [
{
files: ["src/**/*.ts", "src/**/*.tsx"],
extends: ["./profile/web-app", "./mixins/react"],
parserOptions: { tsconfigRootDir: __dirname },
},
{
files: ["src/node.ts"],
extends: ["./profile/node", "./mixins/vitest", "./mixins/node"],
parserOptions: { tsconfigRootDir: __dirname },
},
{
files: ["src/example.graphql"],
extends: ["./mixins/graphql/operations"],
parserOptions: { schema: "./src/schema.graphql" },
},
{
files: ["src/schema.graphql"],
extends: ["./mixins/graphql/schema"],
},
{
files: ["src/**/*.spec.ts", "src/**/*.spec.tsx"],
extends: ["./mixins/react-testing"],
},
{
files: ["src/playwright.ts"],
extends: ["./mixins/playwright"],
},
],
};