Skip to content

Commit

Permalink
Remove eslint-plugin-import to prevent false errors
Browse files Browse the repository at this point in the history
To fix this [issue](#36)
  • Loading branch information
Metehan-Altuntekin committed Feb 2, 2023
1 parent 068b091 commit d53f13b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 631 deletions.
27 changes: 5 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,27 @@
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3",
"rules": {
"import/no-unresolved": "warn"
}
"processor": "svelte3/svelte3"
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "svelte3", "import"],
"plugins": ["@typescript-eslint", "prettier", "svelte3"],
"rules": {
"prettier/prettier": "warn",
"no-empty-function": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-function": "warn",
"import/no-unresolved": "error"
"@typescript-eslint/no-empty-function": "warn"
},
"settings": {
"svelte3/typescript": true,
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"@typescript-eslint/consistent-type-imports": "error",
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["**/*/tsconfig.json"]
}
}
"@typescript-eslint/consistent-type-imports": "error"
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint": "^8.31.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-svelte3": "^4.0.0",
"install": "^0.13.0",
Expand Down
Loading

0 comments on commit d53f13b

Please sign in to comment.