forked from httptoolkit/httptoolkit-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
31 lines (31 loc) · 1.06 KB
/
.eslintrc
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
{
"extends": ["next", "prettier", "plugin:@typescript-eslint/recommended", "plugin:import/typescript"],
"plugins": ["@typescript-eslint", "import", "prettier"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"import/no-duplicates": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", ["sibling", "parent"], "index", "internal", "object"],
"pathGroups": [
{
"pattern": "@/**",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": ["builtin", "object"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-duplicate-imports": ["error", { "includeExports": true }],
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"@typescript-eslint/prefer-optional-chain": ["warn"]
}
}