-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
54 lines (54 loc) · 1.49 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
49
50
51
52
53
54
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:hydrogen/recommended",
"plugin:hydrogen/typescript",
],
plugins: ["@typescript-eslint"],
parser: "@typescript-eslint/parser",
overrides: [
{
files: "**/*.ts",
extends: ["plugin:@typescript-eslint/recommended-requiring-type-checking"],
parserOptions: {
tsConfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
},
],
ignorePatterns: ["src/graphql/*.generated.ts"],
settings: {
"import/resolver": {
typescript: {
alwaysTryTypes: true,
},
node: true,
},
},
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/restrict-template-expressions": "off",
"eslint-comments/disable-enable-pair": "off",
"eslint-comments/no-unlimited-disable": "off",
"import/no-named-as-default": "off",
"import/no-unresolved": "off",
"import/order": ["error", {
alphabetize: {
order: "asc",
caseInsensitive: false,
},
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "type", "object"]
}],
"prettier/prettier": "off",
"react-hooks/exhaustive-deps": "off",
"no-console": "off",
},
};