Skip to content

Commit

Permalink
fix: eslint GH action failure (#336)
Browse files Browse the repository at this point in the history
Our project uses optional deps like odbc and idb-connector packages.
Here we disabled the import/no-unresolved rule in our .eslint.js file.

https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md
  • Loading branch information
abmusse committed Jan 31, 2022
1 parent cb5d077 commit 0a7355a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ module.exports = {
'no-console': 'off',
// airbnb config forbids optionalDependencies
// https://github.com/airbnb/javascript/blob/c5bee75b1b358a3749f1a6d38ee6fad73de28e29/packages/eslint-config-airbnb-base/rules/imports.js#L95
"import/no-extraneous-dependencies": [ "error", { "optionalDependencies": true }]
"import/no-extraneous-dependencies": [ "error", { "optionalDependencies": true }],
// Project uses opt deps like odbc and idb-connector which may not exist
"import/no-unresolved": 'off',
},
overrides: [
{
Expand Down

0 comments on commit 0a7355a

Please sign in to comment.