2021-08-29 17:16:47 +00:00
|
|
|
{
|
2022-03-16 06:26:15 +00:00
|
|
|
"rules": {
|
|
|
|
"no-console": "error",
|
2023-02-20 06:36:43 +00:00
|
|
|
"camelcase": "warn",
|
2024-06-08 00:49:40 +00:00
|
|
|
"no-restricted-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"patterns": ["..*"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"simple-import-sort/imports": "error",
|
2022-03-16 06:26:15 +00:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "warn"
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"react-app",
|
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
2023-02-10 15:10:13 +00:00
|
|
|
],
|
2024-06-08 00:49:40 +00:00
|
|
|
"plugins": ["testing-library", "simple-import-sort"],
|
2023-02-10 15:10:13 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"**/__tests__/**/*.[jt]s?(x)",
|
|
|
|
"**/?(*.)+(spec|test).[jt]s?(x)"
|
|
|
|
],
|
|
|
|
"extends": ["plugin:testing-library/react"]
|
2024-06-08 00:49:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
"rules": {
|
|
|
|
"simple-import-sort/imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"groups": [
|
|
|
|
[
|
|
|
|
// React Packages
|
|
|
|
"^react",
|
|
|
|
// Mantine Packages
|
|
|
|
"^@mantine/",
|
|
|
|
// Vendor Packages
|
|
|
|
"^(\\w|@\\w)",
|
|
|
|
// Side Effect Imports
|
|
|
|
"^\\u0000",
|
|
|
|
// Internal Packages
|
|
|
|
"^@/\\w",
|
|
|
|
// Parent Imports
|
|
|
|
"^\\.\\.(?!/?$)",
|
|
|
|
"^\\.\\./?$",
|
|
|
|
// Relative Imports
|
|
|
|
"^\\./(?=.*/)(?!/?$)",
|
|
|
|
"^\\.(?!/?$)",
|
|
|
|
"^\\./?$",
|
|
|
|
// Style Imports
|
|
|
|
"^.+\\.?(css)$"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-02-10 15:10:13 +00:00
|
|
|
}
|
2024-06-08 00:49:40 +00:00
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaVersion": "latest"
|
|
|
|
}
|
2021-08-29 17:16:47 +00:00
|
|
|
}
|