summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eslint.config.js27
-rw-r--r--examples/tsconfig.json9
-rw-r--r--package.json2
3 files changed, 37 insertions, 1 deletions
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..63e7097
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,27 @@
+import js from '@eslint/js';
+import tseslint from '@typescript-eslint/eslint-plugin';
+import tseslintParser from '@typescript-eslint/parser';
+import prettier from 'eslint-config-prettier';
+
+export default [
+ js.configs.recommended,
+ {
+ ignores: ['dist/**/*'],
+ files: ['**/*.ts'],
+ languageOptions: {
+ parser: tseslintParser,
+ parserOptions: {
+ project: ['./tsconfig.json', './examples/tsconfig.json'],
+ tsconfigRootDir: '.',
+ },
+ },
+ plugins: {
+ '@typescript-eslint': tseslint,
+ },
+ rules: {
+ ...tseslint.configs.recommended.rules,
+ ...prettier.rules,
+ '@typescript-eslint/no-explicit-any': 'warn',
+ },
+ },
+]; \ No newline at end of file
diff --git a/examples/tsconfig.json b/examples/tsconfig.json
new file mode 100644
index 0000000..9788494
--- /dev/null
+++ b/examples/tsconfig.json
@@ -0,0 +1,9 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "rootDir": "..",
+ "outDir": "../dist"
+ },
+ "include": ["./**/*.ts"],
+ "references": [{ "path": "../" }]
+} \ No newline at end of file
diff --git a/package.json b/package.json
index be2e691..58ae19c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "digiid-ts",
- "version": "0.1.0",
+ "version": "1.0.0",
"description": "A modern TypeScript implementation of the DigiID authentication protocol.",
"main": "dist/digiid-ts.umd.js",
"module": "dist/digiid-ts.es.js",