Skip to content

Commit

Permalink
Fix issue with missing file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Jul 21, 2020
1 parent c6f7ee4 commit 97d0e35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rules/import.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
module.exports = {
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".json"],
},
},
},

rules: {
"import/extensions": [
"error",
"ignorePackages",
{
ts: "never",
tsx: "never",
js: "never",
jsx: "never",
},
],
"import/prefer-default-export": "off",
"import/no-anonymous-default-export": "error",
"import/no-extraneous-dependencies": [
Expand Down

0 comments on commit 97d0e35

Please sign in to comment.