-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.79 KB
/
.eslintrc.json
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
55
56
{
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:@next/next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/all",
"plugin:tailwindcss/recommended",
"plugin:typescript-sort-keys/recommended",
"prettier"
],
"overrides": [
{
"extends": ["plugin:@graphql-eslint/schema-all", "plugin:@graphql-eslint/operations-all"],
"files": ["*.graphql"],
"parser": "@graphql-eslint/eslint-plugin",
"plugins": ["@graphql-eslint"],
"rules": {
"@graphql-eslint/match-document-filename": "off"
}
}
],
"rules": {
"@next/next/no-html-link-for-pages": ["error", ["packages/client/pages"]],
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/order": ["error", { "alphabetize": { "order": "asc" }, "groups": [], "newlines-between": "never" }],
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-autofocus": "off",
"no-console": "error",
"no-restricted-exports": "off",
"no-restricted-syntax": "off",
"react/boolean-prop-naming": "off",
"react/function-component-definition": ["error", { "namedComponents": "arrow-function" }],
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"react/jsx-max-depth": "off",
"react/jsx-no-literals": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"sort-keys": "error",
"sort-imports": ["error", { "ignoreDeclarationSort": true }]
},
"settings": {
"import/resolver": {
"typescript": true
},
"tailwindcss": {
"config": "packages/client/tailwind.config.js"
}
}
}