Skip to content

Commit 65cccbf

Browse files
authored
Throw errors from auth factory functions instead of swallowing (#155)
* throw errors from auth factory functions * update ts-toolkit config, all packages, eslint config, ignore eslint any errors
1 parent 628e181 commit 65cccbf

File tree

9 files changed

+1395
-1681
lines changed

9 files changed

+1395
-1681
lines changed

.eslintignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
6+
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
})
14+
15+
export default [
16+
{
17+
ignores: [
18+
'**/.eslintrc.js',
19+
'**/node_modules',
20+
'**/dist',
21+
'**/build',
22+
'**/coverage',
23+
'**/generated/types.d.ts',
24+
'**/generated/types.ts',
25+
'**/.idea',
26+
'**/.vscode',
27+
],
28+
},
29+
...compat.extends('@makerx/eslint-config'),
30+
{
31+
languageOptions: {
32+
globals: {
33+
...globals.node,
34+
},
35+
},
36+
},
37+
]

0 commit comments

Comments
 (0)