28 lines
677 B
JavaScript
28 lines
677 B
JavaScript
module.exports = {
|
|
settings: {
|
|
'import/resolver': {
|
|
parcel: {
|
|
extensions: ['.ts', '.tsx'], // whatever extra extensions you want to look for
|
|
},
|
|
},
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
linkComponents: [{ name: 'Link', linkAttribute: 'to' }],
|
|
},
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/typescript',
|
|
'plugin:react/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
],
|
|
rules: {
|
|
'import/no-unresolved': [2, { ignore: ['url:', 'svg:'] }],
|
|
},
|
|
};
|