I'm was trying to connect to my Firebase app by following the docs, but ESLint is complaining. I have already checked a related question, but the solutions proposed there doesn't seem to work for me. I have the following .eslint.js file:
module.exports = {
extends: [
'airbnb-typescript/base',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:typescript-sort-keys/recommended',
'plugin:import/recommended',
'prettier'
],
parser : '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
modules: true
},
ecmaVersion: 6,
project : './tsconfig.json',
sourceType : 'module'
},
plugins: ['@typescript-eslint', 'typescript-sort-keys', 'sort-keys-fix'],
rules : { ... }
}
As of Firebase Admin v10 it uses exports
in package.json
for defining entry points. eslint-plugin-import
does not support exports
. Until it does you'll have to disable import/no-unresolved
entirely or for each violation.
// eslint-disable-next-line import/no-unresolved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With