Skip to content

Commit

Permalink
fix: #189 setup eslint to enforce .js file extensions on all imports
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Mar 1, 2023
1 parent 5a92199 commit cf37451
Show file tree
Hide file tree
Showing 60 changed files with 803 additions and 258 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["svelte3", "@typescript-eslint"],
"plugins": ["svelte3", "@typescript-eslint", "import"],
"ignorePatterns": [],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
],
"rules": {
"import/extensions": ["error", "ignorePackages"]
},
"settings": {
"svelte3/typescript": true
},
Expand Down
Loading

0 comments on commit cf37451

Please sign in to comment.