Skip to content

Commit

Permalink
fix: Resolve TS->JS and JS->TS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mizlan committed Oct 27, 2023
1 parent cb1856e commit 792ece0
Show file tree
Hide file tree
Showing 3 changed files with 1,238 additions and 518 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
'plugin:jest/recommended',
'prettier',
'airbnb',
'plugin:import/typescript',
],
parser: 'babel-eslint',
parserOptions: {
Expand All @@ -56,6 +57,18 @@ module.exports = {
},
plugins: ['import', 'react', 'jest'],
rules: {
// ignore file extensions when importing
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],

'linebreak-style': ['error', 'unix'],

'no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
Expand Down
Loading

0 comments on commit 792ece0

Please sign in to comment.