kriasoft / web-auth-library

Authentication library for the browser environment using Web Crypto API
https://developer.mozilla.org/docs/Web/API/Web_Crypto_API
MIT License
102 stars 9 forks source link

eslint support #16

Open Kostanos opened 1 year ago

Kostanos commented 1 year ago

Hey, it seems eslint won't detect web-auth-library, meanwhile other modules works well.

my eslint config (simplified for the issue):

module.exports = {
  env: {
    browser: true,
    es2021: true,
  },
  extends: [
    'airbnb',
  ],
  plugins: [
  ],
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
  },
  rules: {
  },
};

image

As you may see in my screenshot, other modules works as expected . And yes, I installed the module. Here is a snap from may package-lock.json

...
    "node_modules/web-auth-library": {
      "version": "1.0.3",
      "resolved": "https://registry.npmjs.org/web-auth-library/-/web-auth-library-1.0.3.tgz",
      "integrity": "sha512-fBmEjJSrbmbD9EREwVlewyfSVkb3IzgTXEF0fzXo3miDywsxES1vwG4aJGNpuSSUorZAGBJNyyz5VFq2VFgudw==",
      "funding": [
        {
          "type": "github",
          "url": "https://github.com/sponsors/kriasoft"
        },
        {
          "type": "patreon",
          "url": "https://www.patreon.com/koistya"
        }
      ],
      "dependencies": {
        "jose": ">= 4.12.0 < 5.0.0",
        "rfc4648": "^1.5.2"
      }
    },
...

Any clue?