feat: add custom ESLint rule restrict-import-depth (#110)

This commit is contained in:
doprz
2024-02-27 23:52:45 -06:00
parent 87799d8f02
commit 8c069b7ad3
6 changed files with 65 additions and 1 deletions

View File

@@ -18,7 +18,14 @@
"@unocss",
"prettier",
],
"plugins": ["import", "jsdoc", "react-prefer-function-component", "@typescript-eslint", "simple-import-sort"],
"plugins": [
"import",
"jsdoc",
"react-prefer-function-component",
"@typescript-eslint",
"simple-import-sort",
"restrict-import-depth",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
@@ -201,5 +208,6 @@
"@typescript-eslint/consistent-type-imports": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"restrict-import-depth/restrict-import-depth": "error",
},
}