mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 23:48:26 +00:00
28 lines
826 B
Plaintext
28 lines
826 B
Plaintext
{
|
|
"plugins": ["react-hooks", "@typescript-eslint/eslint-plugin", "import"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"rules": {
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"warn",
|
|
{
|
|
// the "type" annotation can get tangled and cause syntax errors
|
|
// during some autofixes, so easier to just turn it off
|
|
"prefer": "type-imports",
|
|
"disallowTypeAnnotations": true,
|
|
"fixStyle": "inline-type-imports"
|
|
}
|
|
],
|
|
|
|
"import/no-duplicates": ["warn", { "prefer-inline": true }],
|
|
// lots of undeclared vars, enable this rule if you want to clean them up
|
|
"turbo/no-undeclared-env-vars": "off"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": []
|
|
}
|