2022-01-28 20:20:15 +01:00
|
|
|
{
|
2022-02-23 15:20:23 +01:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-01-28 20:20:15 +01:00
|
|
|
"rules": {
|
2022-02-23 15:20:23 +01:00
|
|
|
"prettier/prettier": ["error"],
|
2022-02-22 14:10:39 +01:00
|
|
|
"@next/next/no-css-tags": "off",
|
2022-02-23 15:20:23 +01:00
|
|
|
"no-unused-vars": "off",
|
2022-03-23 14:31:27 +01:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignoreRestSiblings": true
|
|
|
|
}
|
|
|
|
],
|
2022-02-23 15:20:23 +01:00
|
|
|
|
|
|
|
"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": [
|
2022-02-22 14:10:39 +01:00
|
|
|
"warn",
|
|
|
|
{
|
2022-02-23 15:20:23 +01:00
|
|
|
"alphabetize": { "order": "asc", "caseInsensitive": false },
|
|
|
|
"newlines-between": "always",
|
|
|
|
"groups": ["builtin", "external", "parent", "sibling", "index"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"import/no-unused-modules": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"missingExports": true,
|
|
|
|
"ignoreExports": ["./src/pages"]
|
2022-02-22 14:10:39 +01:00
|
|
|
}
|
|
|
|
]
|
2022-02-23 15:20:23 +01:00
|
|
|
}
|
2022-01-28 20:20:15 +01:00
|
|
|
}
|