-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
43 lines (40 loc) · 1.03 KB
/
eslint.config.mjs
File metadata and controls
43 lines (40 loc) · 1.03 KB
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
/**
* Copyright (c) 2024-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// @ts-check
import graphqlPlugin from "@graphql-eslint/eslint-plugin";
import config from "eslint-config-ndla";
import tseslint from "typescript-eslint";
export default tseslint.config(
...config,
{
ignores: ["**/schema.d.ts"],
},
{
files: ["**/*.graphql"],
languageOptions: {
parser: graphqlPlugin.parser,
parserOptions: {
graphQLConfig: {
schema: "./src/schema.ts",
documents: "**/*.ts",
},
},
},
plugins: {
"@graphql-eslint": graphqlPlugin,
},
rules: {
...graphqlPlugin.configs["flat/schema-recommended"].rules,
"@graphql-eslint/known-type-names": "error",
"@graphql-eslint/require-description": 0,
"@graphql-eslint/strict-id-in-types": 0,
"@graphql-eslint/no-typename-prefix": 0,
"@graphql-eslint/no-unreachable-types": 0,
},
},
);