mirror of
https://github.com/dstotijn/hetty
synced 2024-11-13 23:47:09 +00:00
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"root": true,
|
|
"extends": ["next/core-web-vitals", "prettier", "plugin:@typescript-eslint/recommended", "plugin:import/typescript"],
|
|
"plugins": ["prettier", "@typescript-eslint", "import"],
|
|
"ignorePatterns": ["next*", "src/lib/graphql/generated.tsx"],
|
|
"settings": {
|
|
"import/parsers": {
|
|
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
},
|
|
"import/resolver": {
|
|
"typescript": {
|
|
"alwaysTryTypes": true
|
|
}
|
|
}
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": ["error"],
|
|
"@next/next/no-css-tags": "off",
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"ignoreRestSiblings": true
|
|
}
|
|
],
|
|
|
|
"import/default": "off",
|
|
|
|
"import/no-unresolved": "error",
|
|
"import/named": "error",
|
|
"import/namespace": "error",
|
|
"import/export": "error",
|
|
"import/no-deprecated": "error",
|
|
"import/no-cycle": "error",
|
|
|
|
"import/no-named-as-default": "warn",
|
|
"import/no-named-as-default-member": "warn",
|
|
"import/no-duplicates": "warn",
|
|
"import/newline-after-import": "warn",
|
|
"import/order": [
|
|
"warn",
|
|
{
|
|
"alphabetize": { "order": "asc", "caseInsensitive": false },
|
|
"newlines-between": "always",
|
|
"groups": ["builtin", "external", "parent", "sibling", "index"]
|
|
}
|
|
],
|
|
"import/no-unused-modules": [
|
|
"error",
|
|
{
|
|
"missingExports": true,
|
|
"ignoreExports": ["./src/pages"]
|
|
}
|
|
]
|
|
}
|
|
}
|