Skip to content

Commit

Permalink
fix: import/extensions error for ts and tsx (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi-toma authored Dec 19, 2019
1 parent 78c8b43 commit 8999650
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ module.exports = {
"@typescript-eslint/explicit-function-return-type": "off",
// React
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
"react/prop-types": ["off", {}]
"react/prop-types": ["off", {}],
// import
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
mjs: "never",
jsx: "never",
ts: "never",
tsx: "never"
}
]
},
settings: {
"import/resolver": {
Expand Down

0 comments on commit 8999650

Please sign in to comment.