Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ When using a build tool like WebPack, Babel, Rollup or the TypeScript compiler:

```javascript
// Import the Web-eID library
import * as webeid from '@web-eid/web-eid-library/web-eid';
import * as webeid from '@web-eid/web-eid-library';

// ...or only what you need
import {
status,
authenticate,
Action,
ErrorCode
} from '@web-eid/web-eid-library/web-eid';
} from '@web-eid/web-eid-library';


// If you need TypeScript interfaces, they are also available!
Expand Down
23 changes: 11 additions & 12 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import eslint from "@eslint/js";
import globals from "globals";
import stylisticJs from "@stylistic/eslint-plugin-js";
import stylisticTs from "@stylistic/eslint-plugin-ts";
import stylistic from "@stylistic/eslint-plugin";
import tseslint from "typescript-eslint";

const sharedOptions = {
Expand All @@ -10,7 +9,7 @@ const sharedOptions = {

languageOptions: {
sourceType: "module",

globals: {
...globals.browser,
...globals.node,
Expand All @@ -25,16 +24,16 @@ const sharedOptions = {

languageOptions: {
sourceType: "module",

globals: {
...globals.browser,
...globals.node,
...globals.es2021,
...globals.webextensions,
},

parser: tseslint.parser,

parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname,
Expand All @@ -49,11 +48,11 @@ const overrides = {

name: "web-eid/js/override",

plugins: { "@stylistic/js": stylisticJs },
plugins: { "@stylistic/js": stylistic },

rules: {
"sort-imports": ["error", { allowSeparatedGroups: true }],

"@stylistic/js/quotes": "error",
"@stylistic/js/key-spacing": ["error", { "align": "value" }],
"@stylistic/js/comma-dangle": ["error", "always-multiline"],
Expand All @@ -71,9 +70,9 @@ const overrides = {

plugins: {
"@typescript-eslint": tseslint.plugin,
"@stylistic/ts": stylisticTs,
"@stylistic/ts": stylistic,
},

rules: {
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@stylistic/ts/semi": "error",
Expand All @@ -83,7 +82,7 @@ const overrides = {

export default [
{ ignores: ["dist/", "node_modules/"] },

{
name: "eslint/recommended",

Expand Down
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ const config = {
testEnvironment: "jsdom",
};

export default config;
export default config;
Loading
Loading