Add support for absolute imports

This commit is contained in:
Bill Thornton 2023-05-02 09:52:08 -04:00
parent 5da08475cc
commit c4f5f18812
3 changed files with 16 additions and 6 deletions

View file

@ -88,15 +88,23 @@ module.exports = {
react: {
version: 'detect'
},
'import/extensions': [
'.js',
'.ts',
'.jsx',
'.tsx'
],
'import/parsers': {
'@typescript-eslint/parser': [ '.ts', '.tsx' ]
},
'import/resolver': {
node: {
extensions: [
'.js',
'.ts',
'.jsx',
'.tsx'
],
moduleDirectory: [
'node_modules',
'src'
]
}
},
polyfills: [
// Native Promises Only
'Promise',